]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 |
d14a1e28 RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
49 | #define SWIG_PackData SWIG_Python_PackData |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
d14a1e28 RD |
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 | ||
cc6dd355 RD |
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 | |
d14a1e28 | 83 | #else |
cc6dd355 RD |
84 | # define SWIGEXPORT(a) a |
85 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
86 | #endif |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 90 | #else |
cc6dd355 | 91 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
92 | #endif |
93 | ||
d14a1e28 RD |
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 { | |
cc6dd355 | 102 | const char *name; |
d14a1e28 RD |
103 | swig_converter_func converter; |
104 | const char *str; | |
cc6dd355 | 105 | void *clientdata; |
d14a1e28 RD |
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 *); |
d14a1e28 RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
122 | |
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d14a1e28 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 | ||
d14a1e28 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 | ||
d14a1e28 RD |
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) | |
a41e16b6 | 174 | |
d14a1e28 RD |
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) | |
d14a1e28 RD |
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 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
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[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | /* Contract support */ | |
200 | ||
9d1d5697 | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d14a1e28 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] | |
2ef75293 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]; | |
d14a1e28 RD |
329 | |
330 | /* -------- TYPES TABLE (END) -------- */ | |
331 | ||
332 | ||
333 | /*----------------------------------------------- | |
54f9ee45 | 334 | @(target):= _core_.so |
d14a1e28 | 335 | ------------------------------------------------*/ |
54f9ee45 | 336 | #define SWIG_init init_core_ |
d14a1e28 | 337 | |
54f9ee45 | 338 | #define SWIG_name "_core_" |
d14a1e28 | 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 | |
994141e6 | 345 | |
994141e6 | 346 | #ifdef __cplusplus |
15afbcd0 | 347 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 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 | |
15afbcd0 | 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) | |
994141e6 | 357 | |
15afbcd0 RD |
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) | |
15afbcd0 | 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))) | |
15afbcd0 RD |
370 | |
371 | #endif /* __cplusplus */ | |
994141e6 RD |
372 | |
373 | ||
c32bde28 RD |
374 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
375 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
376 | /*@@*/ | |
377 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
378 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
379 | /*@@*/ | |
380 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
381 | #define SWIG_From_short PyInt_FromLong | |
382 | /*@@*/ | |
383 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
384 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
385 | /*@@*/ | |
386 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
387 | #define SWIG_From_int PyInt_FromLong | |
388 | /*@@*/ | |
389 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
390 | #define SWIG_From_long PyInt_FromLong | |
391 | /*@@*/ | |
392 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
393 | #define SWIG_From_float PyFloat_FromDouble | |
394 | /*@@*/ | |
395 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
396 | #define SWIG_From_double PyFloat_FromDouble | |
397 | /*@@*/ | |
994141e6 RD |
398 | |
399 | ||
d14a1e28 RD |
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 | |
e811c8ce | 478 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
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")); |
d14a1e28 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 | |
121b9a67 RD |
517 | // the wx._core_ module and will then have safe access to these functions, |
518 | // even if they are located in another shared library. | |
d14a1e28 RD |
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, |
d14a1e28 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, | |
e3b71cb8 RD |
596 | wxPySwigInstance_Check, |
597 | ||
598 | wxPyCheckForApp | |
d14a1e28 RD |
599 | |
600 | }; | |
601 | ||
602 | #endif | |
603 | ||
604 | ||
d14a1e28 RD |
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 | ||
196addbf | 617 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
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 | ||
994141e6 | 629 | |
15afbcd0 RD |
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) | |
15afbcd0 | 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); | |
15afbcd0 | 649 | } |
c32bde28 | 650 | return 0; |
15afbcd0 | 651 | } |
c32bde28 | 652 | return 1; |
15afbcd0 RD |
653 | } |
654 | ||
655 | ||
c32bde28 RD |
656 | // See my_fragments.i |
657 | SWIGSTATICINLINE(int) | |
658 | SWIG_AsVal_long(PyObject* obj, long* val) | |
15afbcd0 | 659 | { |
c32bde28 RD |
660 | if (PyNumber_Check(obj)) { |
661 | if (val) *val = PyInt_AsLong(obj); | |
662 | return 1; | |
663 | } | |
69223c70 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); | |
69223c70 | 669 | } |
c32bde28 | 670 | return 0; |
15afbcd0 RD |
671 | } |
672 | ||
673 | ||
674 | #if INT_MAX != LONG_MAX | |
675 | SWIGSTATICINLINE(int) | |
c32bde28 | 676 | SWIG_AsVal_int(PyObject *obj, int *val) |
994141e6 | 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; | |
15afbcd0 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 | } | |
15afbcd0 RD |
701 | #endif |
702 | ||
703 | ||
704 | SWIGSTATICINLINE(int) | |
c32bde28 | 705 | SWIG_As_int(PyObject* obj) |
15afbcd0 | 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)); | |
15afbcd0 | 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); | |
994141e6 RD |
724 | } |
725 | ||
e811c8ce | 726 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 727 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 731 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
732 | return tup; |
733 | } | |
994141e6 | 734 | |
c32bde28 RD |
735 | // See my_fragments.i |
736 | SWIGSTATICINLINE(int) | |
737 | SWIG_AsVal_double(PyObject *obj, double* val) | |
994141e6 | 738 | { |
c32bde28 RD |
739 | if (PyNumber_Check(obj)) { |
740 | if (val) *val = PyFloat_AsDouble(obj); | |
741 | return 1; | |
742 | } | |
69223c70 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); | |
69223c70 | 748 | } |
c32bde28 | 749 | return 0; |
15afbcd0 RD |
750 | } |
751 | ||
752 | ||
c32bde28 RD |
753 | SWIGSTATICINLINE(double) |
754 | SWIG_As_double(PyObject* obj) | |
15afbcd0 | 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)); | |
15afbcd0 | 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); | |
994141e6 RD |
773 | } |
774 | ||
d14a1e28 RD |
775 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
776 | self->x = x; | |
777 | self->y = y; | |
778 | } | |
e811c8ce | 779 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 780 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 784 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
785 | return tup; |
786 | } | |
994141e6 | 787 | |
c32bde28 RD |
788 | SWIGSTATICINLINE(long) |
789 | SWIG_As_long(PyObject* obj) | |
994141e6 | 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)); | |
15afbcd0 | 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); | |
994141e6 RD |
808 | } |
809 | ||
d14a1e28 RD |
810 | void wxPoint_Set(wxPoint *self,long x,long y){ |
811 | self->x = x; | |
812 | self->y = y; | |
813 | } | |
e811c8ce | 814 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 815 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 819 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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 | } | |
e811c8ce | 828 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 829 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 835 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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)) { | |
4f89f6a3 | 849 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 850 | wxRect* newRect = new wxRect(dest); |
ae8162c8 | 851 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
4f89f6a3 | 852 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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) { |
d14a1e28 RD |
861 | PyObject* o2; |
862 | PyObject* o3; | |
c32bde28 | 863 | |
d14a1e28 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 | } | |
d14a1e28 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 | } |
d14a1e28 | 885 | |
c32bde28 | 886 | |
d14a1e28 RD |
887 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ |
888 | self->m_x = x; | |
889 | self->m_y = y; | |
890 | } | |
e811c8ce | 891 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 892 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 896 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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 | } | |
994141e6 | 909 | |
15afbcd0 | 910 | SWIGSTATICINLINE(PyObject*) |
c32bde28 | 911 | SWIG_From_char(char c) |
994141e6 RD |
912 | { |
913 | return PyString_FromStringAndSize(&c,1); | |
914 | } | |
915 | ||
916 | ||
15afbcd0 | 917 | SWIGSTATICINLINE(PyObject* ) |
c32bde28 | 918 | SWIG_From_unsigned_SS_long(unsigned long value) |
15afbcd0 RD |
919 | { |
920 | return (value > LONG_MAX) ? | |
921 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 922 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
15afbcd0 RD |
923 | } |
924 | ||
925 | ||
c32bde28 | 926 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
15afbcd0 | 927 | SWIGSTATIC(int) |
c32bde28 | 928 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
994141e6 | 929 | { |
15afbcd0 | 930 | static swig_type_info* pchar_info = 0; |
c32bde28 | 931 | char* vptr = 0; |
15afbcd0 | 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; | |
15afbcd0 | 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 | } | |
15afbcd0 | 947 | } |
c32bde28 RD |
948 | if (cptr) { |
949 | PyErr_SetString(PyExc_TypeError, "a string is expected"); | |
950 | } | |
951 | return 0; | |
994141e6 RD |
952 | } |
953 | ||
954 | ||
c32bde28 RD |
955 | SWIGSTATIC(int) |
956 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) | |
15afbcd0 RD |
957 | { |
958 | char* cptr; size_t csize; | |
c32bde28 RD |
959 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
960 | /* in C you can do: | |
961 | ||
15afbcd0 RD |
962 | char x[5] = "hello"; |
963 | ||
964 | ie, assing the array using an extra '0' char. | |
965 | */ | |
15afbcd0 | 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; | |
15afbcd0 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; | |
15afbcd0 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 | ||
15afbcd0 | 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)); | |
994141e6 | 1014 | } |
c32bde28 | 1015 | return v; |
994141e6 RD |
1016 | } |
1017 | ||
c32bde28 | 1018 | |
15afbcd0 | 1019 | SWIGSTATICINLINE(int) |
c32bde28 | 1020 | SWIG_Check_char(PyObject* obj) |
15afbcd0 | 1021 | { |
c32bde28 | 1022 | return SWIG_AsVal_char(obj, (char*)0); |
15afbcd0 RD |
1023 | } |
1024 | ||
d14a1e28 RD |
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) | |
994141e6 | 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; | |
994141e6 RD |
1101 | } |
1102 | ||
1103 | ||
c32bde28 RD |
1104 | SWIGSTATICINLINE(bool) |
1105 | SWIG_As_bool(PyObject* obj) | |
15afbcd0 | 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)); | |
15afbcd0 | 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); | |
15afbcd0 RD |
1124 | } |
1125 | ||
2ef75293 RD |
1126 | wxString FileSystem_URLToFileName(wxString const &url){ |
1127 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1128 | return fname.GetFullPath(); | |
1129 | } | |
d14a1e28 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) { | |
2ef75293 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); | |
d14a1e28 RD |
1157 | } |
1158 | ||
1159 | ||
1160 | #include "wx/wxPython/pyistream.h" | |
1161 | ||
994141e6 | 1162 | |
c32bde28 RD |
1163 | // See my_fragments.i |
1164 | SWIGSTATICINLINE(int) | |
1165 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
15afbcd0 | 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; | |
15afbcd0 | 1171 | } |
c32bde28 RD |
1172 | else if (val) |
1173 | *val = (unsigned long)v; | |
1174 | return 1; | |
15afbcd0 RD |
1175 | } |
1176 | ||
1177 | ||
c32bde28 RD |
1178 | SWIGSTATICINLINE(int) |
1179 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1180 | unsigned long max_value, | |
1181 | const char *errmsg) | |
15afbcd0 | 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); | |
15afbcd0 | 1188 | } |
c32bde28 | 1189 | return 0; |
15afbcd0 | 1190 | } |
c32bde28 RD |
1191 | return 1; |
1192 | } | |
15afbcd0 RD |
1193 | |
1194 | ||
c32bde28 RD |
1195 | SWIGSTATICINLINE(int) |
1196 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
994141e6 | 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; | |
15afbcd0 RD |
1214 | } |
1215 | ||
1216 | ||
c32bde28 RD |
1217 | SWIGSTATICINLINE(unsigned char) |
1218 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
15afbcd0 | 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)); | |
15afbcd0 | 1228 | } |
c32bde28 | 1229 | return v; |
994141e6 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 | ||
66c033b4 | 1240 | wxImage *new_wxImage(int width,int height,bool clear){ |
d14a1e28 RD |
1241 | if (width > 0 && height > 0) |
1242 | return new wxImage(width, height, clear); | |
1243 | else | |
1244 | return new wxImage; | |
1245 | } | |
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); |
d14a1e28 | 1258 | } |
1823fbb4 RD |
1259 | wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){ |
1260 | // Copy the source data so the wxImage can clean it up later | |
1261 | unsigned char* dcopy = (unsigned char*)malloc(width*height*3); | |
1262 | if (dcopy == NULL) { | |
1263 | PyErr_NoMemory(); | |
1264 | return NULL; | |
1265 | } | |
1266 | memcpy(dcopy, data, width*height*3); | |
1267 | unsigned char* acopy = (unsigned char*)malloc(width*height); | |
1268 | if (acopy == NULL) { | |
1269 | PyErr_NoMemory(); | |
1270 | return NULL; | |
1271 | } | |
1272 | memcpy(acopy, alpha, width*height); | |
1273 | ||
1274 | return new wxImage(width, height, dcopy, acopy, false); | |
1275 | } | |
b2df227b RD |
1276 | wxSize wxImage_GetSize(wxImage *self){ |
1277 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1278 | return size; | |
1279 | } | |
d14a1e28 RD |
1280 | PyObject *wxImage_GetData(wxImage *self){ |
1281 | unsigned char* data = self->GetData(); | |
1282 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1283 | PyObject* rv; | |
1284 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1285 | return rv; | |
1286 | } | |
1287 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1288 | unsigned char* dataPtr; | |
1289 | ||
1290 | if (! PyString_Check(data)) { | |
2ef75293 RD |
1291 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1292 | "Expected string object")); | |
d14a1e28 RD |
1293 | return /* NULL */ ; |
1294 | } | |
1295 | ||
1296 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1297 | dataPtr = (unsigned char*) malloc(len); | |
1298 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1299 | self->SetData(dataPtr); | |
1300 | // wxImage takes ownership of dataPtr... | |
1301 | } | |
1302 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1303 | unsigned char* data = self->GetData(); | |
1304 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1305 | PyObject* rv; | |
1306 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1307 | return rv; | |
1308 | } | |
1309 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1310 | unsigned char* buffer; | |
1311 | int size; | |
1312 | ||
4f89f6a3 | 1313 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1314 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1315 | goto done; | |
1316 | ||
1317 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1318 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1319 | goto done; | |
1320 | } | |
1321 | self->SetData(buffer); | |
1322 | done: | |
4f89f6a3 | 1323 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1324 | } |
1325 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1326 | unsigned char* data = self->GetAlpha(); | |
1327 | if (! data) { | |
1328 | RETURN_NONE(); | |
1329 | } else { | |
1330 | int len = self->GetWidth() * self->GetHeight(); | |
1331 | PyObject* rv; | |
1332 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1333 | return rv; | |
1334 | } | |
1335 | } | |
1336 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1337 | unsigned char* dataPtr; | |
1338 | ||
1339 | if (! PyString_Check(data)) { | |
1340 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1341 | return /* NULL */ ; | |
1342 | } | |
1343 | ||
1344 | size_t len = self->GetWidth() * self->GetHeight(); | |
1345 | dataPtr = (unsigned char*) malloc(len); | |
1346 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1347 | self->SetAlpha(dataPtr); | |
1348 | // wxImage takes ownership of dataPtr... | |
1349 | } | |
1350 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1351 | unsigned char* data = self->GetAlpha(); | |
1352 | int len = self->GetWidth() * self->GetHeight(); | |
1353 | PyObject* rv; | |
1354 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1355 | return rv; | |
1356 | } | |
1357 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1358 | unsigned char* buffer; | |
1359 | int size; | |
1360 | ||
4f89f6a3 | 1361 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1362 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1363 | goto done; | |
1364 | ||
1365 | if (size != self->GetWidth() * self->GetHeight()) { | |
1366 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1367 | goto done; | |
1368 | } | |
1369 | self->SetAlpha(buffer); | |
1370 | done: | |
4f89f6a3 | 1371 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1372 | } |
15afbcd0 | 1373 | |
c32bde28 RD |
1374 | SWIGSTATICINLINE(unsigned long) |
1375 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
15afbcd0 | 1376 | { |
c32bde28 RD |
1377 | unsigned long v; |
1378 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1379 | /* | |
1380 | this is needed to make valgrind/purify happier. the other | |
1381 | solution is throw an exception, but since this code should work | |
1382 | with plain C .... | |
1383 | */ | |
1384 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 1385 | } |
c32bde28 RD |
1386 | return v; |
1387 | } | |
1388 | ||
1389 | ||
1390 | SWIGSTATICINLINE(int) | |
1391 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1392 | { | |
1393 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
1394 | } |
1395 | ||
1fbf26be RD |
1396 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1397 | wxBitmap bitmap(*self, depth); | |
d14a1e28 RD |
1398 | return bitmap; |
1399 | } | |
1400 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1401 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1402 | wxBitmap bitmap( mono, 1 ); | |
1403 | return bitmap; | |
1404 | } | |
1405 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1406 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1407 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1408 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1409 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1410 | |
1411 | #include <wx/quantize.h> | |
1412 | ||
1413 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1414 | return wxQuantize::Quantize(src, dest, | |
1415 | //NULL, // palette | |
1416 | desiredNoColours, | |
1417 | NULL, // eightBitData | |
1418 | flags); | |
1419 | } | |
d14a1e28 RD |
1420 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1421 | if (PyCallable_Check(func)) { | |
1422 | self->Connect(id, lastId, eventType, | |
1423 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1424 | new wxPyCallback(func)); | |
1425 | } | |
1426 | else if (func == Py_None) { | |
1427 | self->Disconnect(id, lastId, eventType, | |
1428 | (wxObjectEventFunction) | |
1429 | &wxPyCallback::EventThunker); | |
1430 | } | |
1431 | else { | |
a95a7133 RD |
1432 | wxPyBLOCK_THREADS( |
1433 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
d14a1e28 RD |
1434 | } |
1435 | } | |
1436 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1437 | return self->Disconnect(id, lastId, eventType, | |
1438 | (wxObjectEventFunction) | |
1439 | &wxPyCallback::EventThunker); | |
1440 | } | |
1441 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1442 | if (_self && _self != Py_None) { | |
1443 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1444 | } | |
1445 | else { | |
1446 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1447 | if (data) { | |
1448 | self->SetClientObject(NULL); // This will delete it too | |
1449 | } | |
1450 | } | |
1451 | } | |
c32bde28 | 1452 | |
19272049 | 1453 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
3b7224dc | 1454 | #if wxUSE_UNICODE |
19272049 | 1455 | return self->GetUnicodeKey(); |
3b7224dc | 1456 | #else |
d14a1e28 | 1457 | return 0; |
3b7224dc | 1458 | #endif |
d14a1e28 | 1459 | } |
994141e6 | 1460 | |
15afbcd0 | 1461 | #if UINT_MAX < LONG_MAX |
c32bde28 RD |
1462 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1463 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1464 | /*@@*/ | |
15afbcd0 | 1465 | #else |
c32bde28 RD |
1466 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1467 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1468 | /*@@*/ | |
15afbcd0 | 1469 | #endif |
994141e6 RD |
1470 | |
1471 | ||
15afbcd0 | 1472 | #if UINT_MAX != ULONG_MAX |
c32bde28 RD |
1473 | SWIGSTATICINLINE(int) |
1474 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
994141e6 | 1475 | { |
c32bde28 RD |
1476 | const char* errmsg = val ? "unsigned int" : 0; |
1477 | unsigned long v; | |
1478 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1479 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1480 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1481 | return 1; | |
1482 | } | |
1483 | } else { | |
1484 | PyErr_Clear(); | |
1485 | } | |
1486 | if (val) { | |
1487 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1488 | } | |
1489 | return 0; | |
15afbcd0 RD |
1490 | } |
1491 | #else | |
c32bde28 RD |
1492 | SWIGSTATICINLINE(unsigned int) |
1493 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1494 | { | |
1495 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1496 | } | |
15afbcd0 RD |
1497 | #endif |
1498 | ||
1499 | ||
c32bde28 RD |
1500 | SWIGSTATICINLINE(unsigned int) |
1501 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
15afbcd0 | 1502 | { |
c32bde28 RD |
1503 | unsigned int v; |
1504 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1505 | /* | |
1506 | this is needed to make valgrind/purify happier. the other | |
1507 | solution is throw an exception, but since this code should work | |
1508 | with plain C .... | |
1509 | */ | |
1510 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 1511 | } |
c32bde28 RD |
1512 | return v; |
1513 | } | |
1514 | ||
1515 | ||
1516 | SWIGSTATICINLINE(int) | |
1517 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1518 | { | |
1519 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
1520 | } |
1521 | ||
d14a1e28 RD |
1522 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1523 | self->m_size = size; | |
1524 | } | |
1525 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1526 | self->m_pos = pos; | |
1527 | } | |
1528 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1529 | int count = self->GetNumberOfFiles(); | |
1530 | wxString* files = self->GetFiles(); | |
1531 | PyObject* list = PyList_New(count); | |
1532 | ||
1533 | if (!list) { | |
1534 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1535 | return NULL; | |
1536 | } | |
1537 | ||
1538 | for (int i=0; i<count; i++) { | |
1fc9204a | 1539 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1540 | } |
1541 | return list; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | wxPyApp *new_wxPyApp(){ | |
1546 | wxPythonApp = new wxPyApp(); | |
1547 | return wxPythonApp; | |
1548 | } | |
39f61e25 | 1549 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1550 | |
1551 | void wxApp_CleanUp() { | |
1552 | __wxPyCleanup(); | |
1553 | } | |
1554 | ||
1555 | ||
db3e571a | 1556 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d14a1e28 RD |
1557 | |
1558 | ||
ae8162c8 RD |
1559 | #ifdef __WXMAC__ |
1560 | ||
1561 | // A dummy class that raises an exception if used... | |
1562 | class wxEventLoop | |
1563 | { | |
1564 | public: | |
1565 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1566 | int Run() { return 0; } | |
1567 | void Exit(int rc = 0) {} | |
1568 | bool Pending() const { return false; } | |
1569 | bool Dispatch() { return false; } | |
1570 | bool IsRunning() const { return false; } | |
1571 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1572 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1573 | }; | |
1574 | ||
1575 | #else | |
1576 | ||
2ef75293 RD |
1577 | #include <wx/evtloop.h> |
1578 | ||
ae8162c8 RD |
1579 | #endif |
1580 | ||
2ef75293 | 1581 | |
d14a1e28 | 1582 | |
e811c8ce | 1583 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
74a57fcd | 1584 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
22bfe96c | 1585 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d14a1e28 RD |
1586 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1587 | wxWindowList& list = self->GetChildren(); | |
1588 | return wxPy_ConvertList(&list); | |
1589 | } | |
1590 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
74a57fcd RD |
1591 | #if wxUSE_HOTKEY |
1592 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1593 | #else | |
ae8162c8 | 1594 | return false; |
74a57fcd | 1595 | #endif |
d14a1e28 RD |
1596 | } |
1597 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1598 | ||
1599 | ||
1600 | ||
ae8162c8 | 1601 | return false; |
d14a1e28 RD |
1602 | |
1603 | } | |
1604 | long wxWindow_GetHandle(wxWindow *self){ | |
1605 | return wxPyGetWinHandle(self); | |
1606 | } | |
7e63a440 RD |
1607 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1608 | self->AssociateHandle((WXWidget)handle); | |
1609 | } | |
d14a1e28 RD |
1610 | |
1611 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1612 | return wxWindow::FindWindowById(id, parent); | |
1613 | } | |
1614 | ||
1615 | wxWindow* wxFindWindowByName( const wxString& name, | |
1616 | const wxWindow *parent = NULL ) { | |
1617 | return wxWindow::FindWindowByName(name, parent); | |
1618 | } | |
1619 | ||
1620 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1621 | const wxWindow *parent = NULL ) { | |
1622 | return wxWindow::FindWindowByLabel(label, parent); | |
1623 | } | |
1624 | ||
1625 | ||
d14a1e28 | 1626 | #ifdef __WXMSW__ |
4276dc52 RD |
1627 | #include <wx/msw/private.h> // to get wxGetWindowId |
1628 | #endif | |
1629 | ||
1630 | ||
1631 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1632 | #ifdef __WXMSW__ | |
1633 | WXHWND hWnd = (WXHWND)_hWnd; | |
1634 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1635 | wxWindow* win = new wxWindow; |
4276dc52 RD |
1636 | parent->AddChild(win); |
1637 | win->SetEventHandler(win); | |
1638 | win->SetHWND(hWnd); | |
1639 | win->SetId(id); | |
1640 | win->SubclassWin(hWnd); | |
1641 | win->AdoptAttributesFromHWND(); | |
1642 | win->SetupColours(); | |
d14a1e28 RD |
1643 | return win; |
1644 | #else | |
39f61e25 | 1645 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1646 | return NULL; |
1647 | #endif | |
1648 | } | |
1649 | ||
1650 | ||
1651 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1652 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1653 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1654 | ||
1655 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1656 | ||
1657 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1658 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1659 | wxMenuItemList& list = self->GetMenuItems(); | |
1660 | return wxPy_ConvertList(&list); | |
1661 | } | |
1662 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1663 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1664 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1665 | if (clientData) { | |
1666 | wxPyClientData* data = new wxPyClientData(clientData); | |
1667 | return self->Append(item, data); | |
1668 | } else | |
1669 | return self->Append(item); | |
1670 | } | |
1671 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1672 | if (clientData) { | |
1673 | wxPyClientData* data = new wxPyClientData(clientData); | |
1674 | return self->Insert(item, pos, data); | |
1675 | } else | |
1676 | return self->Insert(item, pos); | |
1677 | } | |
1678 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1679 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1680 | if (data) { | |
1681 | Py_INCREF(data->m_obj); | |
1682 | return data->m_obj; | |
1683 | } else { | |
1684 | Py_INCREF(Py_None); | |
1685 | return Py_None; | |
1686 | } | |
1687 | } | |
1688 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1689 | wxPyClientData* data = new wxPyClientData(clientData); | |
1690 | self->SetClientObject(n, data); | |
1691 | } | |
1692 | ||
1693 | ||
248ed943 RD |
1694 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1695 | wxPyUserData* data = NULL; | |
1696 | if ( userData ) { | |
1697 | bool blocked = wxPyBeginBlockThreads(); | |
1698 | data = new wxPyUserData(userData); | |
1699 | wxPyEndBlockThreads(blocked); | |
1700 | } | |
1701 | return new wxSizerItem(window, proportion, flag, border, data); | |
1702 | } | |
1703 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1704 | wxPyUserData* data = NULL; | |
1705 | if ( userData ) { | |
1706 | bool blocked = wxPyBeginBlockThreads(); | |
1707 | data = new wxPyUserData(userData); | |
1708 | wxPyEndBlockThreads(blocked); | |
1709 | } | |
1710 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1711 | } | |
1712 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1713 | wxPyUserData* data = NULL; | |
1714 | if ( userData ) { | |
1715 | bool blocked = wxPyBeginBlockThreads(); | |
1716 | data = new wxPyUserData(userData); | |
1717 | wxPyEndBlockThreads(blocked); | |
1718 | } | |
1719 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1720 | } | |
994141e6 | 1721 | |
15afbcd0 | 1722 | #include <float.h> |
c32bde28 RD |
1723 | SWIGSTATICINLINE(int) |
1724 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1725 | double max_value, const char* errmsg) | |
1726 | { | |
1727 | if (value < min_value) { | |
1728 | if (errmsg) { | |
1729 | PyErr_Format(PyExc_OverflowError, | |
1730 | "value %g is less than %s minimum %g", | |
1731 | value, errmsg, min_value); | |
1732 | } | |
1733 | return 0; | |
1734 | } else if (value > max_value) { | |
1735 | if (errmsg) { | |
1736 | PyErr_Format(PyExc_OverflowError, | |
1737 | "value %g is greater than %s maximum %g", | |
1738 | value, errmsg, max_value); | |
1739 | } | |
1740 | return 0; | |
1741 | } | |
1742 | return 1; | |
1743 | } | |
1744 | ||
15afbcd0 | 1745 | |
c32bde28 RD |
1746 | SWIGSTATICINLINE(int) |
1747 | SWIG_AsVal_float(PyObject *obj, float *val) | |
15afbcd0 | 1748 | { |
c32bde28 RD |
1749 | const char* errmsg = val ? "float" : 0; |
1750 | double v; | |
1751 | if (SWIG_AsVal_double(obj, &v)) { | |
1752 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1753 | if (val) *val = v; | |
1754 | return 1; | |
15afbcd0 | 1755 | } else { |
c32bde28 | 1756 | return 0; |
15afbcd0 | 1757 | } |
c32bde28 RD |
1758 | } else { |
1759 | PyErr_Clear(); | |
15afbcd0 | 1760 | } |
c32bde28 RD |
1761 | if (val) { |
1762 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1763 | } | |
1764 | return 0; | |
15afbcd0 RD |
1765 | } |
1766 | ||
1767 | ||
1768 | SWIGSTATICINLINE(float) | |
c32bde28 | 1769 | SWIG_As_float(PyObject* obj) |
994141e6 | 1770 | { |
c32bde28 RD |
1771 | float v; |
1772 | if (!SWIG_AsVal_float(obj, &v)) { | |
1773 | /* | |
1774 | this is needed to make valgrind/purify happier. the other | |
1775 | solution is throw an exception, but since this code should work | |
1776 | with plain C .... | |
1777 | */ | |
1778 | memset((void*)&v, 0, sizeof(float)); | |
1779 | } | |
1780 | return v; | |
15afbcd0 RD |
1781 | } |
1782 | ||
c32bde28 | 1783 | |
15afbcd0 | 1784 | SWIGSTATICINLINE(int) |
c32bde28 | 1785 | SWIG_Check_float(PyObject* obj) |
15afbcd0 | 1786 | { |
c32bde28 | 1787 | return SWIG_AsVal_float(obj, (float*)0); |
994141e6 RD |
1788 | } |
1789 | ||
d14a1e28 RD |
1790 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1791 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1792 | if (data) { | |
1793 | Py_INCREF(data->m_obj); | |
1794 | return data->m_obj; | |
1795 | } else { | |
1796 | Py_INCREF(Py_None); | |
1797 | return Py_None; | |
1798 | } | |
1799 | } | |
1800 | ||
1801 | // Figure out the type of the sizer item | |
1802 | ||
1803 | struct wxPySizerItemInfo { | |
1804 | wxPySizerItemInfo() | |
ae8162c8 RD |
1805 | : window(NULL), sizer(NULL), gotSize(false), |
1806 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d14a1e28 RD |
1807 | {} |
1808 | ||
1809 | wxWindow* window; | |
1810 | wxSizer* sizer; | |
1811 | bool gotSize; | |
1812 | wxSize size; | |
1813 | bool gotPos; | |
1814 | int pos; | |
1815 | }; | |
1816 | ||
1817 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1818 | ||
1819 | wxPySizerItemInfo info; | |
1820 | wxSize size; | |
1821 | wxSize* sizePtr = &size; | |
1822 | ||
1823 | // Find out what the type of the item is | |
1824 | // try wxWindow | |
1825 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1826 | PyErr_Clear(); | |
1827 | info.window = NULL; | |
1828 | ||
1829 | // try wxSizer | |
1830 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1831 | PyErr_Clear(); | |
1832 | info.sizer = NULL; | |
1833 | ||
1834 | // try wxSize or (w,h) | |
1835 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1836 | info.size = *sizePtr; | |
ae8162c8 | 1837 | info.gotSize = true; |
d14a1e28 RD |
1838 | } |
1839 | ||
1840 | // or a single int | |
1841 | if (checkIdx && PyInt_Check(item)) { | |
1842 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 1843 | info.gotPos = true; |
d14a1e28 RD |
1844 | } |
1845 | } | |
1846 | } | |
1847 | ||
1848 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1849 | // no expected type, figure out what kind of error message to generate | |
1850 | if ( !checkSize && !checkIdx ) | |
1851 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1852 | else if ( checkSize && !checkIdx ) | |
1853 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1854 | else if ( !checkSize && checkIdx) | |
1855 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1856 | else | |
1857 | // can this one happen? | |
1858 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1859 | } | |
1860 | ||
1861 | return info; | |
1862 | } | |
1863 | ||
1864 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1865 | if (!self->GetClientObject()) |
1866 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 | 1867 | } |
d3b6e4ff | 1868 | wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d14a1e28 RD |
1869 | |
1870 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1871 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1872 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
1873 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1874 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1875 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1876 | |
1877 | // Now call the real Add method if a valid item type was found | |
1878 | if ( info.window ) | |
d3b6e4ff | 1879 | return self->Add(info.window, proportion, flag, border, data); |
d14a1e28 | 1880 | else if ( info.sizer ) |
d3b6e4ff | 1881 | return self->Add(info.sizer, proportion, flag, border, data); |
d14a1e28 | 1882 | else if (info.gotSize) |
d3b6e4ff RD |
1883 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
1884 | proportion, flag, border, data); | |
1885 | else | |
1886 | return NULL; | |
d14a1e28 | 1887 | } |
d3b6e4ff | 1888 | wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d14a1e28 RD |
1889 | |
1890 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1891 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1892 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
1893 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1894 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1895 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1896 | |
1897 | // Now call the real Insert method if a valid item type was found | |
1898 | if ( info.window ) | |
d3b6e4ff | 1899 | return self->Insert(before, info.window, proportion, flag, border, data); |
d14a1e28 | 1900 | else if ( info.sizer ) |
d3b6e4ff | 1901 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d14a1e28 | 1902 | else if (info.gotSize) |
d3b6e4ff RD |
1903 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
1904 | proportion, flag, border, data); | |
1905 | else | |
1906 | return NULL; | |
d14a1e28 | 1907 | } |
d3b6e4ff | 1908 | wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d14a1e28 RD |
1909 | |
1910 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1911 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1912 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
1913 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1914 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1915 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1916 | |
1917 | // Now call the real Prepend method if a valid item type was found | |
1918 | if ( info.window ) | |
d3b6e4ff | 1919 | return self->Prepend(info.window, proportion, flag, border, data); |
d14a1e28 | 1920 | else if ( info.sizer ) |
d3b6e4ff | 1921 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d14a1e28 | 1922 | else if (info.gotSize) |
d3b6e4ff RD |
1923 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
1924 | proportion, flag, border, data); | |
1925 | else | |
1926 | return NULL; | |
d14a1e28 RD |
1927 | } |
1928 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1929 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1930 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
4f89f6a3 | 1931 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1932 | if ( info.window ) |
1933 | return self->Remove(info.window); | |
1934 | else if ( info.sizer ) | |
1935 | return self->Remove(info.sizer); | |
1936 | else if ( info.gotPos ) | |
1937 | return self->Remove(info.pos); | |
1938 | else | |
ae8162c8 | 1939 | return false; |
d14a1e28 | 1940 | } |
1c0f361b RD |
1941 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1942 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1943 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1c0f361b RD |
1944 | wxPyEndBlockThreads(blocked); |
1945 | if ( info.window ) | |
1946 | return self->Detach(info.window); | |
1947 | else if ( info.sizer ) | |
1948 | return self->Detach(info.sizer); | |
1949 | else if ( info.gotPos ) | |
1950 | return self->Detach(info.pos); | |
1951 | else | |
ae8162c8 | 1952 | return false; |
1c0f361b | 1953 | } |
d3b6e4ff RD |
1954 | wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
1955 | bool blocked = wxPyBeginBlockThreads(); | |
1956 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1957 | wxPyEndBlockThreads(blocked); | |
1958 | if ( info.window ) | |
1959 | return self->GetItem(info.window); | |
1960 | else if ( info.sizer ) | |
1961 | return self->GetItem(info.sizer); | |
1962 | else if ( info.gotPos ) | |
1963 | return self->GetItem(info.pos); | |
1964 | else | |
1965 | return NULL; | |
1966 | } | |
e811c8ce | 1967 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1968 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1969 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
4f89f6a3 | 1970 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1971 | if ( info.window ) |
1972 | self->SetItemMinSize(info.window, size); | |
1973 | else if ( info.sizer ) | |
1974 | self->SetItemMinSize(info.sizer, size); | |
1975 | else if ( info.gotPos ) | |
1976 | self->SetItemMinSize(info.pos, size); | |
1977 | } | |
1978 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1979 | wxSizerItemList& list = self->GetChildren(); | |
1980 | return wxPy_ConvertList(&list); | |
1981 | } | |
7e63a440 | 1982 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
03e37cd5 | 1983 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1984 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
03e37cd5 | 1985 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1986 | if ( info.window ) |
7e63a440 | 1987 | return self->Show(info.window, show, recursive); |
d14a1e28 | 1988 | else if ( info.sizer ) |
7e63a440 | 1989 | return self->Show(info.sizer, show, recursive); |
248ed943 | 1990 | else if ( info.gotPos ) |
7e63a440 | 1991 | return self->Show(info.pos, show); |
ae8162c8 RD |
1992 | else |
1993 | return false; | |
d14a1e28 RD |
1994 | } |
1995 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
03e37cd5 | 1996 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1997 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
03e37cd5 | 1998 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1999 | if ( info.window ) |
2000 | return self->IsShown(info.window); | |
2001 | else if ( info.sizer ) | |
2002 | return self->IsShown(info.sizer); | |
248ed943 RD |
2003 | else if ( info.gotPos ) |
2004 | return self->IsShown(info.pos); | |
d14a1e28 | 2005 | else |
ae8162c8 | 2006 | return false; |
d14a1e28 RD |
2007 | } |
2008 | ||
2009 | // See pyclasses.h | |
2010 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
2011 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
2012 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
2018 | { | |
4f89f6a3 RD |
2019 | if (source == Py_None) { |
2020 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 2021 | return true; |
4f89f6a3 | 2022 | } |
d14a1e28 RD |
2023 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
2024 | } | |
2025 | ||
2026 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
2027 | { | |
4f89f6a3 RD |
2028 | if (source == Py_None) { |
2029 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 2030 | return true; |
4f89f6a3 | 2031 | } |
d14a1e28 RD |
2032 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
2033 | } | |
2034 | ||
2035 | ||
e811c8ce RD |
2036 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
2037 | self->SetRow(row); | |
2038 | self->SetCol(col); | |
2039 | } | |
2040 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 2041 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2042 | PyObject* tup = PyTuple_New(2); |
2043 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2044 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 2045 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2046 | return tup; |
2047 | } | |
e811c8ce RD |
2048 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
2049 | self->SetRowspan(rowspan); | |
2050 | self->SetColspan(colspan); | |
2051 | } | |
2052 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 2053 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2054 | PyObject* tup = PyTuple_New(2); |
2055 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2056 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 2057 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2058 | return tup; |
2059 | } | |
248ed943 RD |
2060 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2061 | wxPyUserData* data = NULL; | |
2062 | if ( userData ) { | |
2063 | bool blocked = wxPyBeginBlockThreads(); | |
2064 | data = new wxPyUserData(userData); | |
2065 | wxPyEndBlockThreads(blocked); | |
2066 | } | |
2067 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2068 | } | |
2069 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2070 | wxPyUserData* data = NULL; | |
2071 | if ( userData ) { | |
2072 | bool blocked = wxPyBeginBlockThreads(); | |
2073 | data = new wxPyUserData(userData); | |
2074 | wxPyEndBlockThreads(blocked); | |
2075 | } | |
2076 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2077 | } | |
2078 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2079 | wxPyUserData* data = NULL; | |
2080 | if ( userData ) { | |
2081 | bool blocked = wxPyBeginBlockThreads(); | |
2082 | data = new wxPyUserData(userData); | |
2083 | wxPyEndBlockThreads(blocked); | |
2084 | } | |
2085 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2086 | } | |
2087 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2088 | int row, col; | |
2089 | self->GetEndPos(row, col); | |
2090 | return wxGBPosition(row, col); | |
2091 | } | |
d3b6e4ff | 2092 | wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
d14a1e28 RD |
2093 | |
2094 | wxPyUserData* data = NULL; | |
4f89f6a3 | 2095 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 2096 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
2097 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2098 | data = new wxPyUserData(userData); | |
4f89f6a3 | 2099 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2100 | |
2101 | // Now call the real Add method if a valid item type was found | |
2102 | if ( info.window ) | |
d3b6e4ff | 2103 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d14a1e28 | 2104 | else if ( info.sizer ) |
d3b6e4ff | 2105 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d14a1e28 | 2106 | else if (info.gotSize) |
d3b6e4ff RD |
2107 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2108 | pos, span, flag, border, data); | |
2109 | return NULL; | |
d14a1e28 RD |
2110 | } |
2111 | ||
2112 | ||
2113 | #ifdef __cplusplus | |
2114 | extern "C" { | |
2115 | #endif | |
c32bde28 | 2116 | static int _wrap_EmptyString_set(PyObject *) { |
196addbf RD |
2117 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2118 | return 1; | |
2119 | } | |
2120 | ||
2121 | ||
2122 | static PyObject *_wrap_EmptyString_get() { | |
2123 | PyObject *pyobj; | |
2124 | ||
2125 | { | |
2126 | #if wxUSE_UNICODE | |
2127 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2128 | #else | |
2129 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2130 | #endif | |
2131 | } | |
2132 | return pyobj; | |
2133 | } | |
2134 | ||
2135 | ||
c32bde28 | 2136 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2137 | PyObject *resultobj; |
2138 | wxObject *arg1 = (wxObject *) 0 ; | |
2139 | wxString result; | |
2140 | PyObject * obj0 = 0 ; | |
2141 | char *kwnames[] = { | |
2142 | (char *) "self", NULL | |
2143 | }; | |
2144 | ||
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
2147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2148 | { |
2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2150 | result = wxObject_GetClassName(arg1); | |
2151 | ||
2152 | wxPyEndAllowThreads(__tstate); | |
2153 | if (PyErr_Occurred()) SWIG_fail; | |
2154 | } | |
2155 | { | |
2156 | #if wxUSE_UNICODE | |
2157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2158 | #else | |
2159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2160 | #endif | |
2161 | } | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
c32bde28 | 2168 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2169 | PyObject *resultobj; |
2170 | wxObject *arg1 = (wxObject *) 0 ; | |
2171 | PyObject * obj0 = 0 ; | |
2172 | char *kwnames[] = { | |
2173 | (char *) "self", NULL | |
2174 | }; | |
2175 | ||
2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
2178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2179 | { |
2180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2181 | wxObject_Destroy(arg1); | |
2182 | ||
2183 | wxPyEndAllowThreads(__tstate); | |
2184 | if (PyErr_Occurred()) SWIG_fail; | |
2185 | } | |
2186 | Py_INCREF(Py_None); resultobj = Py_None; | |
2187 | return resultobj; | |
2188 | fail: | |
2189 | return NULL; | |
2190 | } | |
2191 | ||
2192 | ||
c32bde28 | 2193 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2194 | PyObject *obj; |
2195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2196 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2197 | Py_INCREF(obj); | |
2198 | return Py_BuildValue((char *)""); | |
2199 | } | |
c32bde28 | 2200 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2201 | PyObject *resultobj; |
2202 | wxSize *arg1 = (wxSize *) 0 ; | |
2203 | int arg2 ; | |
2204 | PyObject * obj0 = 0 ; | |
994141e6 | 2205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2206 | char *kwnames[] = { |
2207 | (char *) "self",(char *) "x", NULL | |
2208 | }; | |
2209 | ||
994141e6 | 2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2213 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2214 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2215 | if (arg1) (arg1)->x = arg2; |
2216 | ||
2217 | Py_INCREF(Py_None); resultobj = Py_None; | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
c32bde28 | 2224 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2225 | PyObject *resultobj; |
2226 | wxSize *arg1 = (wxSize *) 0 ; | |
2227 | int result; | |
2228 | PyObject * obj0 = 0 ; | |
2229 | char *kwnames[] = { | |
2230 | (char *) "self", NULL | |
2231 | }; | |
2232 | ||
2233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2236 | result = (int) ((arg1)->x); |
2237 | ||
c32bde28 | 2238 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2239 | return resultobj; |
2240 | fail: | |
2241 | return NULL; | |
2242 | } | |
2243 | ||
2244 | ||
c32bde28 | 2245 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2246 | PyObject *resultobj; |
2247 | wxSize *arg1 = (wxSize *) 0 ; | |
2248 | int arg2 ; | |
2249 | PyObject * obj0 = 0 ; | |
994141e6 | 2250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2251 | char *kwnames[] = { |
2252 | (char *) "self",(char *) "y", NULL | |
2253 | }; | |
2254 | ||
994141e6 | 2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2258 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2259 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2260 | if (arg1) (arg1)->y = arg2; |
2261 | ||
2262 | Py_INCREF(Py_None); resultobj = Py_None; | |
2263 | return resultobj; | |
2264 | fail: | |
2265 | return NULL; | |
2266 | } | |
2267 | ||
2268 | ||
c32bde28 | 2269 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2270 | PyObject *resultobj; |
2271 | wxSize *arg1 = (wxSize *) 0 ; | |
2272 | int result; | |
2273 | PyObject * obj0 = 0 ; | |
2274 | char *kwnames[] = { | |
2275 | (char *) "self", NULL | |
2276 | }; | |
2277 | ||
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2281 | result = (int) ((arg1)->y); |
2282 | ||
c32bde28 | 2283 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2284 | return resultobj; |
2285 | fail: | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
c32bde28 | 2290 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2291 | PyObject *resultobj; |
2292 | int arg1 = (int) 0 ; | |
2293 | int arg2 = (int) 0 ; | |
2294 | wxSize *result; | |
994141e6 RD |
2295 | PyObject * obj0 = 0 ; |
2296 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2297 | char *kwnames[] = { |
2298 | (char *) "w",(char *) "h", NULL | |
2299 | }; | |
2300 | ||
994141e6 RD |
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
2302 | if (obj0) { | |
c32bde28 | 2303 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 2304 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
2305 | } |
2306 | if (obj1) { | |
c32bde28 | 2307 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2308 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2309 | } |
d14a1e28 RD |
2310 | { |
2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2312 | result = (wxSize *)new wxSize(arg1,arg2); | |
2313 | ||
2314 | wxPyEndAllowThreads(__tstate); | |
2315 | if (PyErr_Occurred()) SWIG_fail; | |
2316 | } | |
15afbcd0 | 2317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2318 | return resultobj; |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
c32bde28 | 2324 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2325 | PyObject *resultobj; |
2326 | wxSize *arg1 = (wxSize *) 0 ; | |
2327 | PyObject * obj0 = 0 ; | |
2328 | char *kwnames[] = { | |
2329 | (char *) "self", NULL | |
2330 | }; | |
2331 | ||
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2335 | { |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | delete arg1; | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | Py_INCREF(Py_None); resultobj = Py_None; | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
c32bde28 | 2349 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2350 | PyObject *resultobj; |
2351 | wxSize *arg1 = (wxSize *) 0 ; | |
2352 | wxSize *arg2 = 0 ; | |
2353 | bool result; | |
2354 | wxSize temp2 ; | |
2355 | PyObject * obj0 = 0 ; | |
2356 | PyObject * obj1 = 0 ; | |
2357 | char *kwnames[] = { | |
2358 | (char *) "self",(char *) "sz", NULL | |
2359 | }; | |
2360 | ||
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2364 | { |
2365 | arg2 = &temp2; | |
2366 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2367 | } | |
2368 | { | |
2369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2370 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2371 | |
2372 | wxPyEndAllowThreads(__tstate); | |
2373 | if (PyErr_Occurred()) SWIG_fail; | |
2374 | } | |
4f89f6a3 RD |
2375 | { |
2376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2377 | } | |
d14a1e28 RD |
2378 | return resultobj; |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
c32bde28 | 2384 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2385 | PyObject *resultobj; |
2386 | wxSize *arg1 = (wxSize *) 0 ; | |
2387 | wxSize *arg2 = 0 ; | |
2388 | bool result; | |
2389 | wxSize temp2 ; | |
2390 | PyObject * obj0 = 0 ; | |
2391 | PyObject * obj1 = 0 ; | |
2392 | char *kwnames[] = { | |
2393 | (char *) "self",(char *) "sz", NULL | |
2394 | }; | |
2395 | ||
2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2399 | { |
2400 | arg2 = &temp2; | |
2401 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2402 | } | |
2403 | { | |
2404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2405 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2406 | |
2407 | wxPyEndAllowThreads(__tstate); | |
2408 | if (PyErr_Occurred()) SWIG_fail; | |
2409 | } | |
4f89f6a3 RD |
2410 | { |
2411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2412 | } | |
d14a1e28 RD |
2413 | return resultobj; |
2414 | fail: | |
2415 | return NULL; | |
2416 | } | |
2417 | ||
2418 | ||
c32bde28 | 2419 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2420 | PyObject *resultobj; |
2421 | wxSize *arg1 = (wxSize *) 0 ; | |
2422 | wxSize *arg2 = 0 ; | |
2423 | wxSize result; | |
2424 | wxSize temp2 ; | |
2425 | PyObject * obj0 = 0 ; | |
2426 | PyObject * obj1 = 0 ; | |
2427 | char *kwnames[] = { | |
2428 | (char *) "self",(char *) "sz", NULL | |
2429 | }; | |
2430 | ||
2431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2434 | { |
2435 | arg2 = &temp2; | |
2436 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2437 | } | |
2438 | { | |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2440 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2441 | ||
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
2445 | { | |
2446 | wxSize * resultptr; | |
2447 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2449 | } |
2450 | return resultobj; | |
2451 | fail: | |
2452 | return NULL; | |
2453 | } | |
2454 | ||
2455 | ||
c32bde28 | 2456 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2457 | PyObject *resultobj; |
2458 | wxSize *arg1 = (wxSize *) 0 ; | |
2459 | wxSize *arg2 = 0 ; | |
2460 | wxSize result; | |
2461 | wxSize temp2 ; | |
2462 | PyObject * obj0 = 0 ; | |
2463 | PyObject * obj1 = 0 ; | |
2464 | char *kwnames[] = { | |
2465 | (char *) "self",(char *) "sz", NULL | |
2466 | }; | |
2467 | ||
2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2471 | { |
2472 | arg2 = &temp2; | |
2473 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2474 | } | |
2475 | { | |
2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2477 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2478 | ||
2479 | wxPyEndAllowThreads(__tstate); | |
2480 | if (PyErr_Occurred()) SWIG_fail; | |
2481 | } | |
2482 | { | |
2483 | wxSize * resultptr; | |
2484 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2486 | } |
2487 | return resultobj; | |
2488 | fail: | |
2489 | return NULL; | |
2490 | } | |
2491 | ||
2492 | ||
c32bde28 | 2493 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2494 | PyObject *resultobj; |
2495 | wxSize *arg1 = (wxSize *) 0 ; | |
2496 | wxSize *arg2 = 0 ; | |
2497 | wxSize temp2 ; | |
2498 | PyObject * obj0 = 0 ; | |
2499 | PyObject * obj1 = 0 ; | |
2500 | char *kwnames[] = { | |
2501 | (char *) "self",(char *) "sz", NULL | |
2502 | }; | |
2503 | ||
2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2507 | { |
2508 | arg2 = &temp2; | |
2509 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2510 | } | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | (arg1)->IncTo((wxSize const &)*arg2); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | Py_INCREF(Py_None); resultobj = Py_None; | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
c32bde28 | 2525 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2526 | PyObject *resultobj; |
2527 | wxSize *arg1 = (wxSize *) 0 ; | |
2528 | wxSize *arg2 = 0 ; | |
2529 | wxSize temp2 ; | |
2530 | PyObject * obj0 = 0 ; | |
2531 | PyObject * obj1 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "self",(char *) "sz", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2539 | { |
2540 | arg2 = &temp2; | |
2541 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2542 | } | |
2543 | { | |
2544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2545 | (arg1)->DecTo((wxSize const &)*arg2); | |
2546 | ||
2547 | wxPyEndAllowThreads(__tstate); | |
2548 | if (PyErr_Occurred()) SWIG_fail; | |
2549 | } | |
2550 | Py_INCREF(Py_None); resultobj = Py_None; | |
2551 | return resultobj; | |
2552 | fail: | |
2553 | return NULL; | |
2554 | } | |
2555 | ||
2556 | ||
c32bde28 | 2557 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2558 | PyObject *resultobj; |
2559 | wxSize *arg1 = (wxSize *) 0 ; | |
2560 | int arg2 ; | |
2561 | int arg3 ; | |
2562 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2563 | PyObject * obj1 = 0 ; |
2564 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2565 | char *kwnames[] = { |
e811c8ce | 2566 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2567 | }; |
2568 | ||
994141e6 | 2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2572 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2573 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2574 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2575 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2576 | { |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2578 | (arg1)->Set(arg2,arg3); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
2581 | if (PyErr_Occurred()) SWIG_fail; | |
2582 | } | |
2583 | Py_INCREF(Py_None); resultobj = Py_None; | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
c32bde28 | 2590 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2591 | PyObject *resultobj; |
2592 | wxSize *arg1 = (wxSize *) 0 ; | |
2593 | int arg2 ; | |
2594 | PyObject * obj0 = 0 ; | |
994141e6 | 2595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2596 | char *kwnames[] = { |
2597 | (char *) "self",(char *) "w", NULL | |
2598 | }; | |
2599 | ||
994141e6 | 2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2603 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2604 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2605 | { |
2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2607 | (arg1)->SetWidth(arg2); | |
2608 | ||
2609 | wxPyEndAllowThreads(__tstate); | |
2610 | if (PyErr_Occurred()) SWIG_fail; | |
2611 | } | |
2612 | Py_INCREF(Py_None); resultobj = Py_None; | |
2613 | return resultobj; | |
2614 | fail: | |
2615 | return NULL; | |
2616 | } | |
2617 | ||
2618 | ||
c32bde28 | 2619 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2620 | PyObject *resultobj; |
2621 | wxSize *arg1 = (wxSize *) 0 ; | |
2622 | int arg2 ; | |
2623 | PyObject * obj0 = 0 ; | |
994141e6 | 2624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2625 | char *kwnames[] = { |
2626 | (char *) "self",(char *) "h", NULL | |
2627 | }; | |
2628 | ||
994141e6 | 2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2632 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2633 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2634 | { |
2635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2636 | (arg1)->SetHeight(arg2); | |
2637 | ||
2638 | wxPyEndAllowThreads(__tstate); | |
2639 | if (PyErr_Occurred()) SWIG_fail; | |
2640 | } | |
2641 | Py_INCREF(Py_None); resultobj = Py_None; | |
2642 | return resultobj; | |
2643 | fail: | |
2644 | return NULL; | |
2645 | } | |
2646 | ||
2647 | ||
c32bde28 | 2648 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2649 | PyObject *resultobj; |
2650 | wxSize *arg1 = (wxSize *) 0 ; | |
2651 | int result; | |
2652 | PyObject * obj0 = 0 ; | |
2653 | char *kwnames[] = { | |
2654 | (char *) "self", NULL | |
2655 | }; | |
2656 | ||
2657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2660 | { |
2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2662 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2663 | ||
2664 | wxPyEndAllowThreads(__tstate); | |
2665 | if (PyErr_Occurred()) SWIG_fail; | |
2666 | } | |
c32bde28 | 2667 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2668 | return resultobj; |
2669 | fail: | |
2670 | return NULL; | |
2671 | } | |
2672 | ||
2673 | ||
c32bde28 | 2674 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2675 | PyObject *resultobj; |
2676 | wxSize *arg1 = (wxSize *) 0 ; | |
2677 | int result; | |
2678 | PyObject * obj0 = 0 ; | |
2679 | char *kwnames[] = { | |
2680 | (char *) "self", NULL | |
2681 | }; | |
2682 | ||
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2686 | { |
2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2688 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2689 | ||
2690 | wxPyEndAllowThreads(__tstate); | |
2691 | if (PyErr_Occurred()) SWIG_fail; | |
2692 | } | |
c32bde28 | 2693 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2694 | return resultobj; |
2695 | fail: | |
2696 | return NULL; | |
2697 | } | |
2698 | ||
2699 | ||
c32bde28 | 2700 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
2701 | PyObject *resultobj; |
2702 | wxSize *arg1 = (wxSize *) 0 ; | |
2703 | bool result; | |
2704 | PyObject * obj0 = 0 ; | |
2705 | char *kwnames[] = { | |
2706 | (char *) "self", NULL | |
2707 | }; | |
2708 | ||
2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2712 | { | |
2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2714 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2715 | ||
2716 | wxPyEndAllowThreads(__tstate); | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
2719 | { | |
2720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2721 | } | |
2722 | return resultobj; | |
2723 | fail: | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
c32bde28 | 2728 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
2729 | PyObject *resultobj; |
2730 | wxSize *arg1 = (wxSize *) 0 ; | |
2731 | wxSize *arg2 = 0 ; | |
2732 | wxSize temp2 ; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | char *kwnames[] = { | |
2736 | (char *) "self",(char *) "size", NULL | |
2737 | }; | |
2738 | ||
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2742 | { | |
2743 | arg2 = &temp2; | |
2744 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2745 | } | |
2746 | { | |
2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2748 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2749 | ||
2750 | wxPyEndAllowThreads(__tstate); | |
2751 | if (PyErr_Occurred()) SWIG_fail; | |
2752 | } | |
2753 | Py_INCREF(Py_None); resultobj = Py_None; | |
2754 | return resultobj; | |
2755 | fail: | |
2756 | return NULL; | |
2757 | } | |
2758 | ||
2759 | ||
c32bde28 | 2760 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2761 | PyObject *resultobj; |
2762 | wxSize *arg1 = (wxSize *) 0 ; | |
2763 | PyObject *result; | |
2764 | PyObject * obj0 = 0 ; | |
2765 | char *kwnames[] = { | |
2766 | (char *) "self", NULL | |
2767 | }; | |
2768 | ||
e811c8ce | 2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2772 | { |
2773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2774 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2775 | |
2776 | wxPyEndAllowThreads(__tstate); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
2779 | resultobj = result; | |
2780 | return resultobj; | |
2781 | fail: | |
2782 | return NULL; | |
2783 | } | |
2784 | ||
2785 | ||
c32bde28 | 2786 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2787 | PyObject *obj; |
2788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2789 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2790 | Py_INCREF(obj); | |
2791 | return Py_BuildValue((char *)""); | |
2792 | } | |
c32bde28 | 2793 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2794 | PyObject *resultobj; |
2795 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2796 | double arg2 ; | |
2797 | PyObject * obj0 = 0 ; | |
994141e6 | 2798 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2799 | char *kwnames[] = { |
2800 | (char *) "self",(char *) "x", NULL | |
2801 | }; | |
2802 | ||
994141e6 | 2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2806 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 2807 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2808 | if (arg1) (arg1)->x = arg2; |
2809 | ||
2810 | Py_INCREF(Py_None); resultobj = Py_None; | |
2811 | return resultobj; | |
2812 | fail: | |
2813 | return NULL; | |
2814 | } | |
2815 | ||
2816 | ||
c32bde28 | 2817 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2818 | PyObject *resultobj; |
2819 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2820 | double result; | |
2821 | PyObject * obj0 = 0 ; | |
2822 | char *kwnames[] = { | |
2823 | (char *) "self", NULL | |
2824 | }; | |
2825 | ||
2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2829 | result = (double) ((arg1)->x); |
2830 | ||
c32bde28 | 2831 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
2832 | return resultobj; |
2833 | fail: | |
2834 | return NULL; | |
2835 | } | |
2836 | ||
2837 | ||
c32bde28 | 2838 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2839 | PyObject *resultobj; |
2840 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2841 | double arg2 ; | |
2842 | PyObject * obj0 = 0 ; | |
994141e6 | 2843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2844 | char *kwnames[] = { |
2845 | (char *) "self",(char *) "y", NULL | |
2846 | }; | |
2847 | ||
994141e6 | 2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2851 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 2852 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2853 | if (arg1) (arg1)->y = arg2; |
2854 | ||
2855 | Py_INCREF(Py_None); resultobj = Py_None; | |
2856 | return resultobj; | |
2857 | fail: | |
2858 | return NULL; | |
2859 | } | |
2860 | ||
2861 | ||
c32bde28 | 2862 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2863 | PyObject *resultobj; |
2864 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2865 | double result; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "self", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2874 | result = (double) ((arg1)->y); |
2875 | ||
c32bde28 | 2876 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
2877 | return resultobj; |
2878 | fail: | |
2879 | return NULL; | |
2880 | } | |
2881 | ||
2882 | ||
c32bde28 | 2883 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2884 | PyObject *resultobj; |
2885 | double arg1 = (double) 0.0 ; | |
2886 | double arg2 = (double) 0.0 ; | |
2887 | wxRealPoint *result; | |
994141e6 RD |
2888 | PyObject * obj0 = 0 ; |
2889 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2890 | char *kwnames[] = { |
2891 | (char *) "x",(char *) "y", NULL | |
2892 | }; | |
2893 | ||
994141e6 RD |
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2895 | if (obj0) { | |
c32bde28 | 2896 | arg1 = (double)SWIG_As_double(obj0); |
15afbcd0 | 2897 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
2898 | } |
2899 | if (obj1) { | |
c32bde28 | 2900 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 2901 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2902 | } |
d14a1e28 RD |
2903 | { |
2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2905 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2906 | ||
2907 | wxPyEndAllowThreads(__tstate); | |
2908 | if (PyErr_Occurred()) SWIG_fail; | |
2909 | } | |
15afbcd0 | 2910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2911 | return resultobj; |
2912 | fail: | |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
c32bde28 | 2917 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2918 | PyObject *resultobj; |
2919 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2920 | PyObject * obj0 = 0 ; | |
2921 | char *kwnames[] = { | |
2922 | (char *) "self", NULL | |
2923 | }; | |
2924 | ||
2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2928 | { |
2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2930 | delete arg1; | |
2931 | ||
2932 | wxPyEndAllowThreads(__tstate); | |
2933 | if (PyErr_Occurred()) SWIG_fail; | |
2934 | } | |
2935 | Py_INCREF(Py_None); resultobj = Py_None; | |
2936 | return resultobj; | |
2937 | fail: | |
2938 | return NULL; | |
2939 | } | |
2940 | ||
2941 | ||
c32bde28 | 2942 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2943 | PyObject *resultobj; |
2944 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2945 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2946 | bool result; |
d14a1e28 RD |
2947 | wxRealPoint temp2 ; |
2948 | PyObject * obj0 = 0 ; | |
2949 | PyObject * obj1 = 0 ; | |
2950 | char *kwnames[] = { | |
2951 | (char *) "self",(char *) "pt", NULL | |
2952 | }; | |
2953 | ||
e811c8ce | 2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2957 | { |
2958 | arg2 = &temp2; | |
2959 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2960 | } | |
2961 | { | |
2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2963 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2964 | |
2965 | wxPyEndAllowThreads(__tstate); | |
2966 | if (PyErr_Occurred()) SWIG_fail; | |
2967 | } | |
4f89f6a3 RD |
2968 | { |
2969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2970 | } | |
d14a1e28 RD |
2971 | return resultobj; |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
c32bde28 | 2977 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2978 | PyObject *resultobj; |
2979 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2980 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2981 | bool result; |
d14a1e28 RD |
2982 | wxRealPoint temp2 ; |
2983 | PyObject * obj0 = 0 ; | |
2984 | PyObject * obj1 = 0 ; | |
2985 | char *kwnames[] = { | |
2986 | (char *) "self",(char *) "pt", NULL | |
2987 | }; | |
2988 | ||
e811c8ce | 2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2992 | { |
2993 | arg2 = &temp2; | |
2994 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2995 | } | |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2998 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2999 | |
3000 | wxPyEndAllowThreads(__tstate); | |
3001 | if (PyErr_Occurred()) SWIG_fail; | |
3002 | } | |
4f89f6a3 RD |
3003 | { |
3004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3005 | } | |
d14a1e28 RD |
3006 | return resultobj; |
3007 | fail: | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
c32bde28 | 3012 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3013 | PyObject *resultobj; |
3014 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3015 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 3016 | wxRealPoint result; |
d14a1e28 RD |
3017 | wxRealPoint temp2 ; |
3018 | PyObject * obj0 = 0 ; | |
3019 | PyObject * obj1 = 0 ; | |
3020 | char *kwnames[] = { | |
3021 | (char *) "self",(char *) "pt", NULL | |
3022 | }; | |
3023 | ||
e811c8ce | 3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
3026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3027 | { |
3028 | arg2 = &temp2; | |
3029 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3030 | } | |
3031 | { | |
3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3033 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
3034 | |
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
e811c8ce RD |
3038 | { |
3039 | wxRealPoint * resultptr; | |
3040 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 3041 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 3042 | } |
d14a1e28 RD |
3043 | return resultobj; |
3044 | fail: | |
3045 | return NULL; | |
3046 | } | |
3047 | ||
3048 | ||
c32bde28 | 3049 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3050 | PyObject *resultobj; |
3051 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3052 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 3053 | wxRealPoint result; |
d14a1e28 RD |
3054 | wxRealPoint temp2 ; |
3055 | PyObject * obj0 = 0 ; | |
3056 | PyObject * obj1 = 0 ; | |
3057 | char *kwnames[] = { | |
3058 | (char *) "self",(char *) "pt", NULL | |
3059 | }; | |
3060 | ||
e811c8ce | 3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
3063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3064 | { |
3065 | arg2 = &temp2; | |
3066 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3067 | } | |
3068 | { | |
3069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3070 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
3071 | |
3072 | wxPyEndAllowThreads(__tstate); | |
3073 | if (PyErr_Occurred()) SWIG_fail; | |
3074 | } | |
e811c8ce RD |
3075 | { |
3076 | wxRealPoint * resultptr; | |
3077 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 3078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 3079 | } |
d14a1e28 RD |
3080 | return resultobj; |
3081 | fail: | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
c32bde28 | 3086 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3087 | PyObject *resultobj; |
3088 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3089 | double arg2 ; | |
3090 | double arg3 ; | |
3091 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3092 | PyObject * obj1 = 0 ; |
3093 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3094 | char *kwnames[] = { |
3095 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3096 | }; | |
3097 | ||
994141e6 | 3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
3100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3101 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 3102 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3103 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 3104 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3105 | { |
3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3107 | wxRealPoint_Set(arg1,arg2,arg3); | |
3108 | ||
3109 | wxPyEndAllowThreads(__tstate); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
3112 | Py_INCREF(Py_None); resultobj = Py_None; | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | return NULL; | |
3116 | } | |
3117 | ||
3118 | ||
c32bde28 | 3119 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3120 | PyObject *resultobj; |
3121 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3122 | PyObject *result; | |
3123 | PyObject * obj0 = 0 ; | |
3124 | char *kwnames[] = { | |
3125 | (char *) "self", NULL | |
3126 | }; | |
3127 | ||
e811c8ce | 3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
3130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3131 | { |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3133 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
3134 | |
3135 | wxPyEndAllowThreads(__tstate); | |
3136 | if (PyErr_Occurred()) SWIG_fail; | |
3137 | } | |
3138 | resultobj = result; | |
3139 | return resultobj; | |
3140 | fail: | |
3141 | return NULL; | |
3142 | } | |
3143 | ||
3144 | ||
c32bde28 | 3145 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3146 | PyObject *obj; |
3147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3148 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3149 | Py_INCREF(obj); | |
3150 | return Py_BuildValue((char *)""); | |
3151 | } | |
c32bde28 | 3152 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3153 | PyObject *resultobj; |
3154 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3155 | int arg2 ; | |
3156 | PyObject * obj0 = 0 ; | |
994141e6 | 3157 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3158 | char *kwnames[] = { |
3159 | (char *) "self",(char *) "x", NULL | |
3160 | }; | |
3161 | ||
994141e6 | 3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3165 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3166 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3167 | if (arg1) (arg1)->x = arg2; |
3168 | ||
3169 | Py_INCREF(Py_None); resultobj = Py_None; | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | return NULL; | |
3173 | } | |
3174 | ||
3175 | ||
c32bde28 | 3176 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3177 | PyObject *resultobj; |
3178 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3179 | int result; | |
3180 | PyObject * obj0 = 0 ; | |
3181 | char *kwnames[] = { | |
3182 | (char *) "self", NULL | |
3183 | }; | |
3184 | ||
3185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3188 | result = (int) ((arg1)->x); |
3189 | ||
c32bde28 | 3190 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3191 | return resultobj; |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
c32bde28 | 3197 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3198 | PyObject *resultobj; |
3199 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3200 | int arg2 ; | |
3201 | PyObject * obj0 = 0 ; | |
994141e6 | 3202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3203 | char *kwnames[] = { |
3204 | (char *) "self",(char *) "y", NULL | |
3205 | }; | |
3206 | ||
994141e6 | 3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3210 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3211 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3212 | if (arg1) (arg1)->y = arg2; |
3213 | ||
3214 | Py_INCREF(Py_None); resultobj = Py_None; | |
3215 | return resultobj; | |
3216 | fail: | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
c32bde28 | 3221 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3222 | PyObject *resultobj; |
3223 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3224 | int result; | |
3225 | PyObject * obj0 = 0 ; | |
3226 | char *kwnames[] = { | |
3227 | (char *) "self", NULL | |
3228 | }; | |
3229 | ||
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3233 | result = (int) ((arg1)->y); |
3234 | ||
c32bde28 | 3235 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3236 | return resultobj; |
3237 | fail: | |
3238 | return NULL; | |
3239 | } | |
3240 | ||
3241 | ||
c32bde28 | 3242 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3243 | PyObject *resultobj; |
3244 | int arg1 = (int) 0 ; | |
3245 | int arg2 = (int) 0 ; | |
3246 | wxPoint *result; | |
994141e6 RD |
3247 | PyObject * obj0 = 0 ; |
3248 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
3249 | char *kwnames[] = { |
3250 | (char *) "x",(char *) "y", NULL | |
3251 | }; | |
3252 | ||
994141e6 RD |
3253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
3254 | if (obj0) { | |
c32bde28 | 3255 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 3256 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3257 | } |
3258 | if (obj1) { | |
c32bde28 | 3259 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3260 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3261 | } |
d14a1e28 RD |
3262 | { |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
15afbcd0 | 3269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3270 | return resultobj; |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
c32bde28 | 3276 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3277 | PyObject *resultobj; |
3278 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3279 | PyObject * obj0 = 0 ; | |
3280 | char *kwnames[] = { | |
3281 | (char *) "self", NULL | |
3282 | }; | |
3283 | ||
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3287 | { |
3288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3289 | delete arg1; | |
3290 | ||
3291 | wxPyEndAllowThreads(__tstate); | |
3292 | if (PyErr_Occurred()) SWIG_fail; | |
3293 | } | |
3294 | Py_INCREF(Py_None); resultobj = Py_None; | |
3295 | return resultobj; | |
3296 | fail: | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
c32bde28 | 3301 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3302 | PyObject *resultobj; |
3303 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3304 | wxPoint *arg2 = 0 ; | |
3305 | bool result; | |
3306 | wxPoint temp2 ; | |
3307 | PyObject * obj0 = 0 ; | |
3308 | PyObject * obj1 = 0 ; | |
3309 | char *kwnames[] = { | |
e811c8ce | 3310 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3311 | }; |
3312 | ||
3313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3316 | { |
3317 | arg2 = &temp2; | |
3318 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3319 | } | |
3320 | { | |
3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3322 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
3323 | |
3324 | wxPyEndAllowThreads(__tstate); | |
3325 | if (PyErr_Occurred()) SWIG_fail; | |
3326 | } | |
4f89f6a3 RD |
3327 | { |
3328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3329 | } | |
d14a1e28 RD |
3330 | return resultobj; |
3331 | fail: | |
3332 | return NULL; | |
3333 | } | |
3334 | ||
3335 | ||
c32bde28 | 3336 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3337 | PyObject *resultobj; |
3338 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3339 | wxPoint *arg2 = 0 ; | |
3340 | bool result; | |
3341 | wxPoint temp2 ; | |
3342 | PyObject * obj0 = 0 ; | |
3343 | PyObject * obj1 = 0 ; | |
3344 | char *kwnames[] = { | |
e811c8ce | 3345 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3346 | }; |
3347 | ||
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3351 | { |
3352 | arg2 = &temp2; | |
3353 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3354 | } | |
3355 | { | |
3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3357 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
3358 | |
3359 | wxPyEndAllowThreads(__tstate); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
4f89f6a3 RD |
3362 | { |
3363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3364 | } | |
d14a1e28 RD |
3365 | return resultobj; |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
c32bde28 | 3371 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3372 | PyObject *resultobj; |
3373 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3374 | wxPoint *arg2 = 0 ; | |
3375 | wxPoint result; | |
3376 | wxPoint temp2 ; | |
3377 | PyObject * obj0 = 0 ; | |
3378 | PyObject * obj1 = 0 ; | |
3379 | char *kwnames[] = { | |
e811c8ce | 3380 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3381 | }; |
3382 | ||
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3386 | { |
3387 | arg2 = &temp2; | |
3388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3389 | } | |
3390 | { | |
3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3392 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
3393 | |
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
3397 | { | |
3398 | wxPoint * resultptr; | |
3399 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3400 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3401 | } |
3402 | return resultobj; | |
3403 | fail: | |
3404 | return NULL; | |
3405 | } | |
3406 | ||
3407 | ||
c32bde28 | 3408 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3409 | PyObject *resultobj; |
3410 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3411 | wxPoint *arg2 = 0 ; | |
3412 | wxPoint result; | |
3413 | wxPoint temp2 ; | |
3414 | PyObject * obj0 = 0 ; | |
3415 | PyObject * obj1 = 0 ; | |
3416 | char *kwnames[] = { | |
e811c8ce | 3417 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3418 | }; |
3419 | ||
3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3423 | { |
3424 | arg2 = &temp2; | |
3425 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3426 | } | |
3427 | { | |
3428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3429 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3430 | |
3431 | wxPyEndAllowThreads(__tstate); | |
3432 | if (PyErr_Occurred()) SWIG_fail; | |
3433 | } | |
3434 | { | |
3435 | wxPoint * resultptr; | |
3436 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3437 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3438 | } |
3439 | return resultobj; | |
3440 | fail: | |
3441 | return NULL; | |
3442 | } | |
3443 | ||
3444 | ||
c32bde28 | 3445 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3446 | PyObject *resultobj; |
3447 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3448 | wxPoint *arg2 = 0 ; | |
3449 | wxPoint *result; | |
3450 | wxPoint temp2 ; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | PyObject * obj1 = 0 ; | |
3453 | char *kwnames[] = { | |
e811c8ce | 3454 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3455 | }; |
3456 | ||
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 3458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
c32bde28 | 3459 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
3460 | { |
3461 | arg2 = &temp2; | |
3462 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3463 | } | |
3464 | { | |
3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3466 | { | |
3467 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3468 | result = (wxPoint *) &_result_ref; | |
3469 | } | |
3470 | ||
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
c32bde28 | 3474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3475 | return resultobj; |
3476 | fail: | |
3477 | return NULL; | |
3478 | } | |
3479 | ||
3480 | ||
c32bde28 | 3481 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3482 | PyObject *resultobj; |
3483 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3484 | wxPoint *arg2 = 0 ; | |
3485 | wxPoint *result; | |
3486 | wxPoint temp2 ; | |
3487 | PyObject * obj0 = 0 ; | |
3488 | PyObject * obj1 = 0 ; | |
3489 | char *kwnames[] = { | |
e811c8ce | 3490 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3491 | }; |
3492 | ||
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 3494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
c32bde28 | 3495 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
3496 | { |
3497 | arg2 = &temp2; | |
3498 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3499 | } | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | { | |
3503 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3504 | result = (wxPoint *) &_result_ref; | |
3505 | } | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
c32bde28 | 3510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3511 | return resultobj; |
3512 | fail: | |
3513 | return NULL; | |
3514 | } | |
3515 | ||
3516 | ||
c32bde28 | 3517 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3518 | PyObject *resultobj; |
3519 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3520 | long arg2 ; | |
3521 | long arg3 ; | |
3522 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3523 | PyObject * obj1 = 0 ; |
3524 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3525 | char *kwnames[] = { |
3526 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3527 | }; | |
3528 | ||
994141e6 | 3529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3532 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3533 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3534 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3535 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3536 | { |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | wxPoint_Set(arg1,arg2,arg3); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | Py_INCREF(Py_None); resultobj = Py_None; | |
3544 | return resultobj; | |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
c32bde28 | 3550 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3551 | PyObject *resultobj; |
3552 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3553 | PyObject *result; | |
3554 | PyObject * obj0 = 0 ; | |
3555 | char *kwnames[] = { | |
3556 | (char *) "self", NULL | |
3557 | }; | |
3558 | ||
e811c8ce | 3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3562 | { |
3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3564 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3565 | |
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
3569 | resultobj = result; | |
3570 | return resultobj; | |
3571 | fail: | |
3572 | return NULL; | |
3573 | } | |
3574 | ||
3575 | ||
c32bde28 | 3576 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3577 | PyObject *obj; |
3578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3579 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3580 | Py_INCREF(obj); | |
3581 | return Py_BuildValue((char *)""); | |
3582 | } | |
c32bde28 | 3583 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3584 | PyObject *resultobj; |
3585 | int arg1 = (int) 0 ; | |
3586 | int arg2 = (int) 0 ; | |
3587 | int arg3 = (int) 0 ; | |
3588 | int arg4 = (int) 0 ; | |
3589 | wxRect *result; | |
994141e6 RD |
3590 | PyObject * obj0 = 0 ; |
3591 | PyObject * obj1 = 0 ; | |
3592 | PyObject * obj2 = 0 ; | |
3593 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3594 | char *kwnames[] = { |
3595 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3596 | }; | |
3597 | ||
994141e6 RD |
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3599 | if (obj0) { | |
c32bde28 | 3600 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 3601 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3602 | } |
3603 | if (obj1) { | |
c32bde28 | 3604 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3605 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3606 | } |
3607 | if (obj2) { | |
c32bde28 | 3608 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 3609 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
3610 | } |
3611 | if (obj3) { | |
c32bde28 | 3612 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 3613 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3614 | } |
d14a1e28 RD |
3615 | { |
3616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3617 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3618 | ||
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
15afbcd0 | 3622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3623 | return resultobj; |
3624 | fail: | |
3625 | return NULL; | |
3626 | } | |
3627 | ||
3628 | ||
c32bde28 | 3629 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3630 | PyObject *resultobj; |
3631 | wxPoint *arg1 = 0 ; | |
3632 | wxPoint *arg2 = 0 ; | |
3633 | wxRect *result; | |
3634 | wxPoint temp1 ; | |
3635 | wxPoint temp2 ; | |
3636 | PyObject * obj0 = 0 ; | |
3637 | PyObject * obj1 = 0 ; | |
3638 | char *kwnames[] = { | |
3639 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3640 | }; | |
3641 | ||
3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3643 | { | |
3644 | arg1 = &temp1; | |
3645 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3646 | } | |
3647 | { | |
3648 | arg2 = &temp2; | |
3649 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3654 | ||
3655 | wxPyEndAllowThreads(__tstate); | |
3656 | if (PyErr_Occurred()) SWIG_fail; | |
3657 | } | |
15afbcd0 | 3658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3659 | return resultobj; |
3660 | fail: | |
3661 | return NULL; | |
3662 | } | |
3663 | ||
3664 | ||
c32bde28 | 3665 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3666 | PyObject *resultobj; |
3667 | wxPoint *arg1 = 0 ; | |
3668 | wxSize *arg2 = 0 ; | |
3669 | wxRect *result; | |
3670 | wxPoint temp1 ; | |
3671 | wxSize temp2 ; | |
3672 | PyObject * obj0 = 0 ; | |
3673 | PyObject * obj1 = 0 ; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "pos",(char *) "size", NULL | |
3676 | }; | |
3677 | ||
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3679 | { | |
3680 | arg1 = &temp1; | |
3681 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3682 | } | |
3683 | { | |
3684 | arg2 = &temp2; | |
3685 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3686 | } | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
15afbcd0 | 3694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3695 | return resultobj; |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
d3b6e4ff RD |
3701 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
3702 | PyObject *resultobj; | |
3703 | wxSize *arg1 = 0 ; | |
3704 | wxRect *result; | |
3705 | wxSize temp1 ; | |
3706 | PyObject * obj0 = 0 ; | |
3707 | char *kwnames[] = { | |
3708 | (char *) "size", NULL | |
3709 | }; | |
3710 | ||
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
3712 | { | |
3713 | arg1 = &temp1; | |
3714 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
3715 | } | |
3716 | { | |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
c32bde28 | 3730 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3731 | PyObject *resultobj; |
3732 | wxRect *arg1 = (wxRect *) 0 ; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3741 | { |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | delete arg1; | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | Py_INCREF(Py_None); resultobj = Py_None; | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
c32bde28 | 3755 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3756 | PyObject *resultobj; |
3757 | wxRect *arg1 = (wxRect *) 0 ; | |
3758 | int result; | |
3759 | PyObject * obj0 = 0 ; | |
3760 | char *kwnames[] = { | |
3761 | (char *) "self", NULL | |
3762 | }; | |
3763 | ||
3764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3767 | { |
3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3769 | result = (int)((wxRect const *)arg1)->GetX(); | |
3770 | ||
3771 | wxPyEndAllowThreads(__tstate); | |
3772 | if (PyErr_Occurred()) SWIG_fail; | |
3773 | } | |
c32bde28 | 3774 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3775 | return resultobj; |
3776 | fail: | |
3777 | return NULL; | |
3778 | } | |
3779 | ||
3780 | ||
c32bde28 | 3781 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3782 | PyObject *resultobj; |
3783 | wxRect *arg1 = (wxRect *) 0 ; | |
3784 | int arg2 ; | |
3785 | PyObject * obj0 = 0 ; | |
994141e6 | 3786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3787 | char *kwnames[] = { |
3788 | (char *) "self",(char *) "x", NULL | |
3789 | }; | |
3790 | ||
994141e6 | 3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3794 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3795 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3796 | { |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | (arg1)->SetX(arg2); | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | Py_INCREF(Py_None); resultobj = Py_None; | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
c32bde28 | 3810 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3811 | PyObject *resultobj; |
3812 | wxRect *arg1 = (wxRect *) 0 ; | |
3813 | int result; | |
3814 | PyObject * obj0 = 0 ; | |
3815 | char *kwnames[] = { | |
3816 | (char *) "self", NULL | |
3817 | }; | |
3818 | ||
3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3822 | { |
3823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3824 | result = (int)(arg1)->GetY(); | |
3825 | ||
3826 | wxPyEndAllowThreads(__tstate); | |
3827 | if (PyErr_Occurred()) SWIG_fail; | |
3828 | } | |
c32bde28 | 3829 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3830 | return resultobj; |
3831 | fail: | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
c32bde28 | 3836 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3837 | PyObject *resultobj; |
3838 | wxRect *arg1 = (wxRect *) 0 ; | |
3839 | int arg2 ; | |
3840 | PyObject * obj0 = 0 ; | |
994141e6 | 3841 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3842 | char *kwnames[] = { |
3843 | (char *) "self",(char *) "y", NULL | |
3844 | }; | |
3845 | ||
994141e6 | 3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3849 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3850 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3851 | { |
3852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3853 | (arg1)->SetY(arg2); | |
3854 | ||
3855 | wxPyEndAllowThreads(__tstate); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
3857 | } | |
3858 | Py_INCREF(Py_None); resultobj = Py_None; | |
3859 | return resultobj; | |
3860 | fail: | |
3861 | return NULL; | |
3862 | } | |
3863 | ||
3864 | ||
c32bde28 | 3865 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3866 | PyObject *resultobj; |
3867 | wxRect *arg1 = (wxRect *) 0 ; | |
3868 | int result; | |
3869 | PyObject * obj0 = 0 ; | |
3870 | char *kwnames[] = { | |
3871 | (char *) "self", NULL | |
3872 | }; | |
3873 | ||
3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3877 | { |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
c32bde28 | 3884 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3885 | return resultobj; |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
c32bde28 | 3891 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3892 | PyObject *resultobj; |
3893 | wxRect *arg1 = (wxRect *) 0 ; | |
3894 | int arg2 ; | |
3895 | PyObject * obj0 = 0 ; | |
994141e6 | 3896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3897 | char *kwnames[] = { |
3898 | (char *) "self",(char *) "w", NULL | |
3899 | }; | |
3900 | ||
994141e6 | 3901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3904 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3905 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3906 | { |
3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3908 | (arg1)->SetWidth(arg2); | |
3909 | ||
3910 | wxPyEndAllowThreads(__tstate); | |
3911 | if (PyErr_Occurred()) SWIG_fail; | |
3912 | } | |
3913 | Py_INCREF(Py_None); resultobj = Py_None; | |
3914 | return resultobj; | |
3915 | fail: | |
3916 | return NULL; | |
3917 | } | |
3918 | ||
3919 | ||
c32bde28 | 3920 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3921 | PyObject *resultobj; |
3922 | wxRect *arg1 = (wxRect *) 0 ; | |
3923 | int result; | |
3924 | PyObject * obj0 = 0 ; | |
3925 | char *kwnames[] = { | |
3926 | (char *) "self", NULL | |
3927 | }; | |
3928 | ||
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3932 | { |
3933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3934 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3935 | ||
3936 | wxPyEndAllowThreads(__tstate); | |
3937 | if (PyErr_Occurred()) SWIG_fail; | |
3938 | } | |
c32bde28 | 3939 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
3940 | return resultobj; |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
c32bde28 | 3946 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3947 | PyObject *resultobj; |
3948 | wxRect *arg1 = (wxRect *) 0 ; | |
3949 | int arg2 ; | |
3950 | PyObject * obj0 = 0 ; | |
994141e6 | 3951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3952 | char *kwnames[] = { |
3953 | (char *) "self",(char *) "h", NULL | |
3954 | }; | |
3955 | ||
994141e6 | 3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3959 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3960 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3961 | { |
3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3963 | (arg1)->SetHeight(arg2); | |
3964 | ||
3965 | wxPyEndAllowThreads(__tstate); | |
3966 | if (PyErr_Occurred()) SWIG_fail; | |
3967 | } | |
3968 | Py_INCREF(Py_None); resultobj = Py_None; | |
3969 | return resultobj; | |
3970 | fail: | |
3971 | return NULL; | |
3972 | } | |
3973 | ||
3974 | ||
c32bde28 | 3975 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3976 | PyObject *resultobj; |
3977 | wxRect *arg1 = (wxRect *) 0 ; | |
3978 | wxPoint result; | |
3979 | PyObject * obj0 = 0 ; | |
3980 | char *kwnames[] = { | |
3981 | (char *) "self", NULL | |
3982 | }; | |
3983 | ||
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3987 | { |
3988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3989 | result = ((wxRect const *)arg1)->GetPosition(); | |
3990 | ||
3991 | wxPyEndAllowThreads(__tstate); | |
3992 | if (PyErr_Occurred()) SWIG_fail; | |
3993 | } | |
3994 | { | |
3995 | wxPoint * resultptr; | |
3996 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3997 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3998 | } |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
c32bde28 | 4005 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4006 | PyObject *resultobj; |
4007 | wxRect *arg1 = (wxRect *) 0 ; | |
4008 | wxPoint *arg2 = 0 ; | |
4009 | wxPoint temp2 ; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | PyObject * obj1 = 0 ; | |
4012 | char *kwnames[] = { | |
4013 | (char *) "self",(char *) "p", NULL | |
4014 | }; | |
4015 | ||
4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4019 | { |
4020 | arg2 = &temp2; | |
4021 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4022 | } | |
4023 | { | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
4026 | ||
4027 | wxPyEndAllowThreads(__tstate); | |
4028 | if (PyErr_Occurred()) SWIG_fail; | |
4029 | } | |
4030 | Py_INCREF(Py_None); resultobj = Py_None; | |
4031 | return resultobj; | |
4032 | fail: | |
4033 | return NULL; | |
4034 | } | |
4035 | ||
4036 | ||
c32bde28 | 4037 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4038 | PyObject *resultobj; |
4039 | wxRect *arg1 = (wxRect *) 0 ; | |
4040 | wxSize result; | |
4041 | PyObject * obj0 = 0 ; | |
4042 | char *kwnames[] = { | |
4043 | (char *) "self", NULL | |
4044 | }; | |
4045 | ||
4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4049 | { |
4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4051 | result = ((wxRect const *)arg1)->GetSize(); | |
4052 | ||
4053 | wxPyEndAllowThreads(__tstate); | |
4054 | if (PyErr_Occurred()) SWIG_fail; | |
4055 | } | |
4056 | { | |
4057 | wxSize * resultptr; | |
4058 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4060 | } |
4061 | return resultobj; | |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
c32bde28 | 4067 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4068 | PyObject *resultobj; |
4069 | wxRect *arg1 = (wxRect *) 0 ; | |
4070 | wxSize *arg2 = 0 ; | |
4071 | wxSize temp2 ; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | PyObject * obj1 = 0 ; | |
4074 | char *kwnames[] = { | |
4075 | (char *) "self",(char *) "s", NULL | |
4076 | }; | |
4077 | ||
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4081 | { |
4082 | arg2 = &temp2; | |
4083 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4084 | } | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | (arg1)->SetSize((wxSize const &)*arg2); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | Py_INCREF(Py_None); resultobj = Py_None; | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
c32bde28 | 4099 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
4100 | PyObject *resultobj; |
4101 | wxRect *arg1 = (wxRect *) 0 ; | |
4102 | wxPoint result; | |
4103 | PyObject * obj0 = 0 ; | |
4104 | char *kwnames[] = { | |
4105 | (char *) "self", NULL | |
4106 | }; | |
4107 | ||
4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
4111 | { |
4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4113 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4114 | ||
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | { | |
4119 | wxPoint * resultptr; | |
4120 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
4122 | } |
4123 | return resultobj; | |
4124 | fail: | |
4125 | return NULL; | |
4126 | } | |
4127 | ||
4128 | ||
c32bde28 | 4129 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
4130 | PyObject *resultobj; |
4131 | wxRect *arg1 = (wxRect *) 0 ; | |
4132 | wxPoint *arg2 = 0 ; | |
4133 | wxPoint temp2 ; | |
4134 | PyObject * obj0 = 0 ; | |
4135 | PyObject * obj1 = 0 ; | |
4136 | char *kwnames[] = { | |
4137 | (char *) "self",(char *) "p", NULL | |
4138 | }; | |
4139 | ||
4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
4143 | { |
4144 | arg2 = &temp2; | |
4145 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4146 | } | |
4147 | { | |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4149 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) SWIG_fail; | |
4153 | } | |
4154 | Py_INCREF(Py_None); resultobj = Py_None; | |
4155 | return resultobj; | |
4156 | fail: | |
4157 | return NULL; | |
4158 | } | |
4159 | ||
4160 | ||
c32bde28 | 4161 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
4162 | PyObject *resultobj; |
4163 | wxRect *arg1 = (wxRect *) 0 ; | |
4164 | wxPoint result; | |
4165 | PyObject * obj0 = 0 ; | |
4166 | char *kwnames[] = { | |
4167 | (char *) "self", NULL | |
4168 | }; | |
4169 | ||
4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
4173 | { |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4176 | ||
4177 | wxPyEndAllowThreads(__tstate); | |
4178 | if (PyErr_Occurred()) SWIG_fail; | |
4179 | } | |
4180 | { | |
4181 | wxPoint * resultptr; | |
4182 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4183 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
4184 | } |
4185 | return resultobj; | |
4186 | fail: | |
4187 | return NULL; | |
4188 | } | |
4189 | ||
4190 | ||
c32bde28 | 4191 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
4192 | PyObject *resultobj; |
4193 | wxRect *arg1 = (wxRect *) 0 ; | |
4194 | wxPoint *arg2 = 0 ; | |
4195 | wxPoint temp2 ; | |
4196 | PyObject * obj0 = 0 ; | |
4197 | PyObject * obj1 = 0 ; | |
4198 | char *kwnames[] = { | |
4199 | (char *) "self",(char *) "p", NULL | |
4200 | }; | |
4201 | ||
4202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
4205 | { |
4206 | arg2 = &temp2; | |
4207 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4208 | } | |
4209 | { | |
4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4211 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4212 | ||
4213 | wxPyEndAllowThreads(__tstate); | |
4214 | if (PyErr_Occurred()) SWIG_fail; | |
4215 | } | |
4216 | Py_INCREF(Py_None); resultobj = Py_None; | |
4217 | return resultobj; | |
4218 | fail: | |
4219 | return NULL; | |
4220 | } | |
4221 | ||
4222 | ||
c32bde28 | 4223 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4224 | PyObject *resultobj; |
4225 | wxRect *arg1 = (wxRect *) 0 ; | |
4226 | int result; | |
4227 | PyObject * obj0 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4235 | { |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4237 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4238 | ||
4239 | wxPyEndAllowThreads(__tstate); | |
4240 | if (PyErr_Occurred()) SWIG_fail; | |
4241 | } | |
c32bde28 | 4242 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4243 | return resultobj; |
4244 | fail: | |
4245 | return NULL; | |
4246 | } | |
4247 | ||
4248 | ||
c32bde28 | 4249 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4250 | PyObject *resultobj; |
4251 | wxRect *arg1 = (wxRect *) 0 ; | |
4252 | int result; | |
4253 | PyObject * obj0 = 0 ; | |
4254 | char *kwnames[] = { | |
4255 | (char *) "self", NULL | |
4256 | }; | |
4257 | ||
4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4261 | { |
4262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4263 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4264 | ||
4265 | wxPyEndAllowThreads(__tstate); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
c32bde28 | 4268 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4269 | return resultobj; |
4270 | fail: | |
4271 | return NULL; | |
4272 | } | |
4273 | ||
4274 | ||
c32bde28 | 4275 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4276 | PyObject *resultobj; |
4277 | wxRect *arg1 = (wxRect *) 0 ; | |
4278 | int result; | |
4279 | PyObject * obj0 = 0 ; | |
4280 | char *kwnames[] = { | |
4281 | (char *) "self", NULL | |
4282 | }; | |
4283 | ||
4284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4287 | { |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4290 | ||
4291 | wxPyEndAllowThreads(__tstate); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
c32bde28 | 4294 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4295 | return resultobj; |
4296 | fail: | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
c32bde28 | 4301 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4302 | PyObject *resultobj; |
4303 | wxRect *arg1 = (wxRect *) 0 ; | |
4304 | int result; | |
4305 | PyObject * obj0 = 0 ; | |
4306 | char *kwnames[] = { | |
4307 | (char *) "self", NULL | |
4308 | }; | |
4309 | ||
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4313 | { |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4315 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4316 | ||
4317 | wxPyEndAllowThreads(__tstate); | |
4318 | if (PyErr_Occurred()) SWIG_fail; | |
4319 | } | |
c32bde28 | 4320 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4321 | return resultobj; |
4322 | fail: | |
4323 | return NULL; | |
4324 | } | |
4325 | ||
4326 | ||
c32bde28 | 4327 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4328 | PyObject *resultobj; |
4329 | wxRect *arg1 = (wxRect *) 0 ; | |
4330 | int arg2 ; | |
4331 | PyObject * obj0 = 0 ; | |
994141e6 | 4332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4333 | char *kwnames[] = { |
4334 | (char *) "self",(char *) "left", NULL | |
4335 | }; | |
4336 | ||
994141e6 | 4337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4340 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4341 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4342 | { |
4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4344 | (arg1)->SetLeft(arg2); | |
4345 | ||
4346 | wxPyEndAllowThreads(__tstate); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | Py_INCREF(Py_None); resultobj = Py_None; | |
4350 | return resultobj; | |
4351 | fail: | |
4352 | return NULL; | |
4353 | } | |
4354 | ||
4355 | ||
c32bde28 | 4356 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4357 | PyObject *resultobj; |
4358 | wxRect *arg1 = (wxRect *) 0 ; | |
4359 | int arg2 ; | |
4360 | PyObject * obj0 = 0 ; | |
994141e6 | 4361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4362 | char *kwnames[] = { |
4363 | (char *) "self",(char *) "right", NULL | |
4364 | }; | |
4365 | ||
994141e6 | 4366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4369 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4370 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4371 | { |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4373 | (arg1)->SetRight(arg2); | |
4374 | ||
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
4378 | Py_INCREF(Py_None); resultobj = Py_None; | |
4379 | return resultobj; | |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
c32bde28 | 4385 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4386 | PyObject *resultobj; |
4387 | wxRect *arg1 = (wxRect *) 0 ; | |
4388 | int arg2 ; | |
4389 | PyObject * obj0 = 0 ; | |
994141e6 | 4390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4391 | char *kwnames[] = { |
4392 | (char *) "self",(char *) "top", NULL | |
4393 | }; | |
4394 | ||
994141e6 | 4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4398 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4399 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4400 | { |
4401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4402 | (arg1)->SetTop(arg2); | |
4403 | ||
4404 | wxPyEndAllowThreads(__tstate); | |
4405 | if (PyErr_Occurred()) SWIG_fail; | |
4406 | } | |
4407 | Py_INCREF(Py_None); resultobj = Py_None; | |
4408 | return resultobj; | |
4409 | fail: | |
4410 | return NULL; | |
4411 | } | |
4412 | ||
4413 | ||
c32bde28 | 4414 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4415 | PyObject *resultobj; |
4416 | wxRect *arg1 = (wxRect *) 0 ; | |
4417 | int arg2 ; | |
4418 | PyObject * obj0 = 0 ; | |
994141e6 | 4419 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4420 | char *kwnames[] = { |
4421 | (char *) "self",(char *) "bottom", NULL | |
4422 | }; | |
4423 | ||
994141e6 | 4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4427 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4428 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4429 | { |
4430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4431 | (arg1)->SetBottom(arg2); | |
4432 | ||
4433 | wxPyEndAllowThreads(__tstate); | |
4434 | if (PyErr_Occurred()) SWIG_fail; | |
4435 | } | |
4436 | Py_INCREF(Py_None); resultobj = Py_None; | |
4437 | return resultobj; | |
4438 | fail: | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
c32bde28 | 4443 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4444 | PyObject *resultobj; |
4445 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4446 | int arg2 ; |
4447 | int arg3 ; | |
d14a1e28 RD |
4448 | wxRect *result; |
4449 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4450 | PyObject * obj1 = 0 ; |
4451 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4452 | char *kwnames[] = { |
4453 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4454 | }; | |
4455 | ||
994141e6 | 4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4459 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4460 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4461 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4462 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4463 | { |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | { | |
4466 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4467 | result = (wxRect *) &_result_ref; | |
4468 | } | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
15afbcd0 | 4473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4474 | return resultobj; |
4475 | fail: | |
4476 | return NULL; | |
4477 | } | |
4478 | ||
4479 | ||
c32bde28 | 4480 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4481 | PyObject *resultobj; |
4482 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4483 | int arg2 ; |
4484 | int arg3 ; | |
d14a1e28 RD |
4485 | wxRect *result; |
4486 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4487 | PyObject * obj1 = 0 ; |
4488 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4489 | char *kwnames[] = { |
4490 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4491 | }; | |
4492 | ||
994141e6 | 4493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4496 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4497 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4498 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4499 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4500 | { |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | { | |
4503 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4504 | result = (wxRect *) &_result_ref; | |
4505 | } | |
4506 | ||
4507 | wxPyEndAllowThreads(__tstate); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
15afbcd0 | 4510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4511 | return resultobj; |
4512 | fail: | |
4513 | return NULL; | |
4514 | } | |
4515 | ||
4516 | ||
c32bde28 | 4517 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4518 | PyObject *resultobj; |
4519 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4520 | int arg2 ; |
4521 | int arg3 ; | |
d14a1e28 | 4522 | PyObject * obj0 = 0 ; |
994141e6 RD |
4523 | PyObject * obj1 = 0 ; |
4524 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4525 | char *kwnames[] = { |
4526 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4527 | }; | |
4528 | ||
994141e6 | 4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4532 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4533 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4534 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4535 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4536 | { |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4538 | (arg1)->Offset(arg2,arg3); | |
4539 | ||
4540 | wxPyEndAllowThreads(__tstate); | |
4541 | if (PyErr_Occurred()) SWIG_fail; | |
4542 | } | |
4543 | Py_INCREF(Py_None); resultobj = Py_None; | |
4544 | return resultobj; | |
4545 | fail: | |
4546 | return NULL; | |
4547 | } | |
4548 | ||
4549 | ||
c32bde28 | 4550 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4551 | PyObject *resultobj; |
4552 | wxRect *arg1 = (wxRect *) 0 ; | |
4553 | wxPoint *arg2 = 0 ; | |
4554 | wxPoint temp2 ; | |
4555 | PyObject * obj0 = 0 ; | |
4556 | PyObject * obj1 = 0 ; | |
4557 | char *kwnames[] = { | |
4558 | (char *) "self",(char *) "pt", NULL | |
4559 | }; | |
4560 | ||
4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4564 | { |
4565 | arg2 = &temp2; | |
4566 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4567 | } | |
4568 | { | |
4569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4570 | (arg1)->Offset((wxPoint const &)*arg2); | |
4571 | ||
4572 | wxPyEndAllowThreads(__tstate); | |
4573 | if (PyErr_Occurred()) SWIG_fail; | |
4574 | } | |
4575 | Py_INCREF(Py_None); resultobj = Py_None; | |
4576 | return resultobj; | |
4577 | fail: | |
4578 | return NULL; | |
4579 | } | |
4580 | ||
4581 | ||
c32bde28 | 4582 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4583 | PyObject *resultobj; |
4584 | wxRect *arg1 = (wxRect *) 0 ; | |
4585 | wxRect *arg2 = 0 ; | |
4586 | wxRect *result; | |
4587 | wxRect temp2 ; | |
4588 | PyObject * obj0 = 0 ; | |
4589 | PyObject * obj1 = 0 ; | |
4590 | char *kwnames[] = { | |
4591 | (char *) "self",(char *) "rect", NULL | |
4592 | }; | |
4593 | ||
4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4597 | { |
4598 | arg2 = &temp2; | |
4599 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4600 | } | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | { | |
4604 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4605 | result = (wxRect *) &_result_ref; | |
4606 | } | |
4607 | ||
4608 | wxPyEndAllowThreads(__tstate); | |
4609 | if (PyErr_Occurred()) SWIG_fail; | |
4610 | } | |
15afbcd0 | 4611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4612 | return resultobj; |
4613 | fail: | |
4614 | return NULL; | |
4615 | } | |
4616 | ||
4617 | ||
c32bde28 | 4618 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4619 | PyObject *resultobj; |
4620 | wxRect *arg1 = (wxRect *) 0 ; | |
4621 | wxRect *arg2 = 0 ; | |
4622 | wxRect result; | |
4623 | wxRect temp2 ; | |
4624 | PyObject * obj0 = 0 ; | |
4625 | PyObject * obj1 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "self",(char *) "rect", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4633 | { |
4634 | arg2 = &temp2; | |
4635 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4636 | } | |
4637 | { | |
4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4639 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4640 | ||
4641 | wxPyEndAllowThreads(__tstate); | |
4642 | if (PyErr_Occurred()) SWIG_fail; | |
4643 | } | |
4644 | { | |
4645 | wxRect * resultptr; | |
4646 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4648 | } |
4649 | return resultobj; | |
4650 | fail: | |
4651 | return NULL; | |
4652 | } | |
4653 | ||
4654 | ||
c32bde28 | 4655 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4656 | PyObject *resultobj; |
4657 | wxRect *arg1 = (wxRect *) 0 ; | |
4658 | wxRect *arg2 = 0 ; | |
4659 | wxRect *result; | |
4660 | wxRect temp2 ; | |
4661 | PyObject * obj0 = 0 ; | |
4662 | PyObject * obj1 = 0 ; | |
4663 | char *kwnames[] = { | |
4664 | (char *) "self",(char *) "rect", NULL | |
4665 | }; | |
4666 | ||
4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 4668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
c32bde28 | 4669 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
4670 | { |
4671 | arg2 = &temp2; | |
4672 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4673 | } | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | { | |
4677 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4678 | result = (wxRect *) &_result_ref; | |
4679 | } | |
4680 | ||
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
c32bde28 | 4684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4685 | return resultobj; |
4686 | fail: | |
4687 | return NULL; | |
4688 | } | |
4689 | ||
4690 | ||
c32bde28 | 4691 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4692 | PyObject *resultobj; |
4693 | wxRect *arg1 = (wxRect *) 0 ; | |
4694 | wxRect *arg2 = 0 ; | |
4695 | bool result; | |
4696 | wxRect temp2 ; | |
4697 | PyObject * obj0 = 0 ; | |
4698 | PyObject * obj1 = 0 ; | |
4699 | char *kwnames[] = { | |
4700 | (char *) "self",(char *) "rect", NULL | |
4701 | }; | |
4702 | ||
4703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4706 | { |
4707 | arg2 = &temp2; | |
4708 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4709 | } | |
4710 | { | |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4712 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4713 | ||
4714 | wxPyEndAllowThreads(__tstate); | |
4715 | if (PyErr_Occurred()) SWIG_fail; | |
4716 | } | |
4f89f6a3 RD |
4717 | { |
4718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4719 | } | |
d14a1e28 RD |
4720 | return resultobj; |
4721 | fail: | |
4722 | return NULL; | |
4723 | } | |
4724 | ||
4725 | ||
c32bde28 | 4726 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4727 | PyObject *resultobj; |
4728 | wxRect *arg1 = (wxRect *) 0 ; | |
4729 | wxRect *arg2 = 0 ; | |
4730 | bool result; | |
4731 | wxRect temp2 ; | |
4732 | PyObject * obj0 = 0 ; | |
4733 | PyObject * obj1 = 0 ; | |
4734 | char *kwnames[] = { | |
4735 | (char *) "self",(char *) "rect", NULL | |
4736 | }; | |
4737 | ||
4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4741 | { |
4742 | arg2 = &temp2; | |
4743 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4744 | } | |
4745 | { | |
4746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4747 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4748 | ||
4749 | wxPyEndAllowThreads(__tstate); | |
4750 | if (PyErr_Occurred()) SWIG_fail; | |
4751 | } | |
4f89f6a3 RD |
4752 | { |
4753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4754 | } | |
d14a1e28 RD |
4755 | return resultobj; |
4756 | fail: | |
4757 | return NULL; | |
4758 | } | |
4759 | ||
4760 | ||
c32bde28 | 4761 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4762 | PyObject *resultobj; |
4763 | wxRect *arg1 = (wxRect *) 0 ; | |
4764 | int arg2 ; | |
4765 | int arg3 ; | |
4766 | bool result; | |
4767 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4768 | PyObject * obj1 = 0 ; |
4769 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4770 | char *kwnames[] = { |
4771 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4772 | }; | |
4773 | ||
994141e6 | 4774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4777 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4778 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4779 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 4780 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4781 | { |
4782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4783 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4784 | ||
4785 | wxPyEndAllowThreads(__tstate); | |
4786 | if (PyErr_Occurred()) SWIG_fail; | |
4787 | } | |
4f89f6a3 RD |
4788 | { |
4789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4790 | } | |
d14a1e28 RD |
4791 | return resultobj; |
4792 | fail: | |
4793 | return NULL; | |
4794 | } | |
4795 | ||
4796 | ||
c32bde28 | 4797 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4798 | PyObject *resultobj; |
4799 | wxRect *arg1 = (wxRect *) 0 ; | |
4800 | wxPoint *arg2 = 0 ; | |
4801 | bool result; | |
4802 | wxPoint temp2 ; | |
4803 | PyObject * obj0 = 0 ; | |
4804 | PyObject * obj1 = 0 ; | |
4805 | char *kwnames[] = { | |
4806 | (char *) "self",(char *) "pt", NULL | |
4807 | }; | |
4808 | ||
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4812 | { |
4813 | arg2 = &temp2; | |
4814 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4815 | } | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4819 | ||
4820 | wxPyEndAllowThreads(__tstate); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
4f89f6a3 RD |
4823 | { |
4824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4825 | } | |
d14a1e28 RD |
4826 | return resultobj; |
4827 | fail: | |
4828 | return NULL; | |
4829 | } | |
4830 | ||
4831 | ||
c32bde28 | 4832 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4833 | PyObject *resultobj; |
4834 | wxRect *arg1 = (wxRect *) 0 ; | |
4835 | wxRect *arg2 = 0 ; | |
4836 | bool result; | |
4837 | wxRect temp2 ; | |
4838 | PyObject * obj0 = 0 ; | |
4839 | PyObject * obj1 = 0 ; | |
4840 | char *kwnames[] = { | |
4841 | (char *) "self",(char *) "rect", NULL | |
4842 | }; | |
4843 | ||
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4847 | { |
4848 | arg2 = &temp2; | |
4849 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4850 | } | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4854 | ||
4855 | wxPyEndAllowThreads(__tstate); | |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
4857 | } | |
4f89f6a3 RD |
4858 | { |
4859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4860 | } | |
d14a1e28 RD |
4861 | return resultobj; |
4862 | fail: | |
4863 | return NULL; | |
4864 | } | |
4865 | ||
4866 | ||
c32bde28 | 4867 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4868 | PyObject *resultobj; |
4869 | wxRect *arg1 = (wxRect *) 0 ; | |
4870 | int arg2 ; | |
4871 | PyObject * obj0 = 0 ; | |
994141e6 | 4872 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4873 | char *kwnames[] = { |
4874 | (char *) "self",(char *) "x", NULL | |
4875 | }; | |
4876 | ||
994141e6 | 4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4880 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4881 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4882 | if (arg1) (arg1)->x = arg2; |
4883 | ||
4884 | Py_INCREF(Py_None); resultobj = Py_None; | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
c32bde28 | 4891 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4892 | PyObject *resultobj; |
4893 | wxRect *arg1 = (wxRect *) 0 ; | |
4894 | int result; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4903 | result = (int) ((arg1)->x); |
4904 | ||
c32bde28 | 4905 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4906 | return resultobj; |
4907 | fail: | |
4908 | return NULL; | |
4909 | } | |
4910 | ||
4911 | ||
c32bde28 | 4912 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4913 | PyObject *resultobj; |
4914 | wxRect *arg1 = (wxRect *) 0 ; | |
4915 | int arg2 ; | |
4916 | PyObject * obj0 = 0 ; | |
994141e6 | 4917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4918 | char *kwnames[] = { |
4919 | (char *) "self",(char *) "y", NULL | |
4920 | }; | |
4921 | ||
994141e6 | 4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4925 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4926 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4927 | if (arg1) (arg1)->y = arg2; |
4928 | ||
4929 | Py_INCREF(Py_None); resultobj = Py_None; | |
4930 | return resultobj; | |
4931 | fail: | |
4932 | return NULL; | |
4933 | } | |
4934 | ||
4935 | ||
c32bde28 | 4936 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4937 | PyObject *resultobj; |
4938 | wxRect *arg1 = (wxRect *) 0 ; | |
4939 | int result; | |
4940 | PyObject * obj0 = 0 ; | |
4941 | char *kwnames[] = { | |
4942 | (char *) "self", NULL | |
4943 | }; | |
4944 | ||
4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4948 | result = (int) ((arg1)->y); |
4949 | ||
c32bde28 | 4950 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4951 | return resultobj; |
4952 | fail: | |
4953 | return NULL; | |
4954 | } | |
4955 | ||
4956 | ||
c32bde28 | 4957 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4958 | PyObject *resultobj; |
4959 | wxRect *arg1 = (wxRect *) 0 ; | |
4960 | int arg2 ; | |
4961 | PyObject * obj0 = 0 ; | |
994141e6 | 4962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4963 | char *kwnames[] = { |
4964 | (char *) "self",(char *) "width", NULL | |
4965 | }; | |
4966 | ||
994141e6 | 4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4970 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4971 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4972 | if (arg1) (arg1)->width = arg2; |
4973 | ||
4974 | Py_INCREF(Py_None); resultobj = Py_None; | |
4975 | return resultobj; | |
4976 | fail: | |
4977 | return NULL; | |
4978 | } | |
4979 | ||
4980 | ||
c32bde28 | 4981 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4982 | PyObject *resultobj; |
4983 | wxRect *arg1 = (wxRect *) 0 ; | |
4984 | int result; | |
4985 | PyObject * obj0 = 0 ; | |
4986 | char *kwnames[] = { | |
4987 | (char *) "self", NULL | |
4988 | }; | |
4989 | ||
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4993 | result = (int) ((arg1)->width); |
4994 | ||
c32bde28 | 4995 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4996 | return resultobj; |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
c32bde28 | 5002 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5003 | PyObject *resultobj; |
5004 | wxRect *arg1 = (wxRect *) 0 ; | |
5005 | int arg2 ; | |
5006 | PyObject * obj0 = 0 ; | |
994141e6 | 5007 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5008 | char *kwnames[] = { |
5009 | (char *) "self",(char *) "height", NULL | |
5010 | }; | |
5011 | ||
994141e6 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
5014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5015 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5016 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5017 | if (arg1) (arg1)->height = arg2; |
5018 | ||
5019 | Py_INCREF(Py_None); resultobj = Py_None; | |
5020 | return resultobj; | |
5021 | fail: | |
5022 | return NULL; | |
5023 | } | |
5024 | ||
5025 | ||
c32bde28 | 5026 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5027 | PyObject *resultobj; |
5028 | wxRect *arg1 = (wxRect *) 0 ; | |
5029 | int result; | |
5030 | PyObject * obj0 = 0 ; | |
5031 | char *kwnames[] = { | |
5032 | (char *) "self", NULL | |
5033 | }; | |
5034 | ||
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
5037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5038 | result = (int) ((arg1)->height); |
5039 | ||
c32bde28 | 5040 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5041 | return resultobj; |
5042 | fail: | |
5043 | return NULL; | |
5044 | } | |
5045 | ||
5046 | ||
c32bde28 | 5047 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5048 | PyObject *resultobj; |
5049 | wxRect *arg1 = (wxRect *) 0 ; | |
5050 | int arg2 = (int) 0 ; | |
5051 | int arg3 = (int) 0 ; | |
5052 | int arg4 = (int) 0 ; | |
5053 | int arg5 = (int) 0 ; | |
5054 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5055 | PyObject * obj1 = 0 ; |
5056 | PyObject * obj2 = 0 ; | |
5057 | PyObject * obj3 = 0 ; | |
5058 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5059 | char *kwnames[] = { |
5060 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5061 | }; | |
5062 | ||
994141e6 | 5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
5065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5066 | if (obj1) { |
c32bde28 | 5067 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 5068 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
5069 | } |
5070 | if (obj2) { | |
c32bde28 | 5071 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5072 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
5073 | } |
5074 | if (obj3) { | |
c32bde28 | 5075 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 5076 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
5077 | } |
5078 | if (obj4) { | |
c32bde28 | 5079 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 5080 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5081 | } |
d14a1e28 RD |
5082 | { |
5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5084 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5085 | ||
5086 | wxPyEndAllowThreads(__tstate); | |
5087 | if (PyErr_Occurred()) SWIG_fail; | |
5088 | } | |
5089 | Py_INCREF(Py_None); resultobj = Py_None; | |
5090 | return resultobj; | |
5091 | fail: | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
c32bde28 | 5096 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5097 | PyObject *resultobj; |
5098 | wxRect *arg1 = (wxRect *) 0 ; | |
5099 | PyObject *result; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | char *kwnames[] = { | |
5102 | (char *) "self", NULL | |
5103 | }; | |
5104 | ||
e811c8ce | 5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
5107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5108 | { |
5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5110 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
5111 | |
5112 | wxPyEndAllowThreads(__tstate); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
5115 | resultobj = result; | |
5116 | return resultobj; | |
5117 | fail: | |
5118 | return NULL; | |
5119 | } | |
5120 | ||
5121 | ||
c32bde28 | 5122 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5123 | PyObject *obj; |
5124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5125 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5126 | Py_INCREF(obj); | |
5127 | return Py_BuildValue((char *)""); | |
5128 | } | |
c32bde28 | 5129 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5130 | PyObject *resultobj; |
5131 | wxRect *arg1 = (wxRect *) 0 ; | |
5132 | wxRect *arg2 = (wxRect *) 0 ; | |
5133 | PyObject *result; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | PyObject * obj1 = 0 ; | |
5136 | char *kwnames[] = { | |
5137 | (char *) "r1",(char *) "r2", NULL | |
5138 | }; | |
5139 | ||
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
5142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 5145 | { |
e3b71cb8 | 5146 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5148 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5149 | ||
5150 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5151 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5152 | } |
5153 | resultobj = result; | |
5154 | return resultobj; | |
5155 | fail: | |
5156 | return NULL; | |
5157 | } | |
5158 | ||
5159 | ||
c32bde28 | 5160 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5161 | PyObject *resultobj; |
5162 | double arg1 = (double) 0.0 ; | |
5163 | double arg2 = (double) 0.0 ; | |
5164 | wxPoint2D *result; | |
994141e6 RD |
5165 | PyObject * obj0 = 0 ; |
5166 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
5167 | char *kwnames[] = { |
5168 | (char *) "x",(char *) "y", NULL | |
5169 | }; | |
5170 | ||
994141e6 RD |
5171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
5172 | if (obj0) { | |
c32bde28 | 5173 | arg1 = (double)SWIG_As_double(obj0); |
15afbcd0 | 5174 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
5175 | } |
5176 | if (obj1) { | |
c32bde28 | 5177 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5178 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5179 | } |
d14a1e28 RD |
5180 | { |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5183 | ||
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
15afbcd0 | 5187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5188 | return resultobj; |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
c32bde28 | 5194 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5195 | PyObject *resultobj; |
5196 | wxPoint2D *arg1 = 0 ; | |
5197 | wxPoint2D *result; | |
5198 | wxPoint2D temp1 ; | |
5199 | PyObject * obj0 = 0 ; | |
5200 | char *kwnames[] = { | |
5201 | (char *) "pt", NULL | |
5202 | }; | |
5203 | ||
5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5205 | { | |
5206 | arg1 = &temp1; | |
5207 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5208 | } | |
5209 | { | |
5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5211 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5212 | ||
5213 | wxPyEndAllowThreads(__tstate); | |
5214 | if (PyErr_Occurred()) SWIG_fail; | |
5215 | } | |
15afbcd0 | 5216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5217 | return resultobj; |
5218 | fail: | |
5219 | return NULL; | |
5220 | } | |
5221 | ||
5222 | ||
c32bde28 | 5223 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5224 | PyObject *resultobj; |
5225 | wxPoint *arg1 = 0 ; | |
5226 | wxPoint2D *result; | |
5227 | wxPoint temp1 ; | |
5228 | PyObject * obj0 = 0 ; | |
5229 | char *kwnames[] = { | |
5230 | (char *) "pt", NULL | |
5231 | }; | |
5232 | ||
5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5234 | { | |
5235 | arg1 = &temp1; | |
5236 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5237 | } | |
5238 | { | |
5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5240 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
15afbcd0 | 5245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5246 | return resultobj; |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
c32bde28 | 5252 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5253 | PyObject *resultobj; |
5254 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5255 | int *arg2 = (int *) 0 ; | |
5256 | int *arg3 = (int *) 0 ; | |
5257 | int temp2 ; | |
c32bde28 | 5258 | int res2 = 0 ; |
d14a1e28 | 5259 | int temp3 ; |
c32bde28 | 5260 | int res3 = 0 ; |
d14a1e28 RD |
5261 | PyObject * obj0 = 0 ; |
5262 | char *kwnames[] = { | |
5263 | (char *) "self", NULL | |
5264 | }; | |
5265 | ||
c32bde28 RD |
5266 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5267 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5271 | { |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | } | |
5278 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5279 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5280 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5281 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5282 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
5283 | return resultobj; |
5284 | fail: | |
5285 | return NULL; | |
5286 | } | |
5287 | ||
5288 | ||
c32bde28 | 5289 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5290 | PyObject *resultobj; |
5291 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5292 | int *arg2 = (int *) 0 ; | |
5293 | int *arg3 = (int *) 0 ; | |
5294 | int temp2 ; | |
c32bde28 | 5295 | int res2 = 0 ; |
d14a1e28 | 5296 | int temp3 ; |
c32bde28 | 5297 | int res3 = 0 ; |
d14a1e28 RD |
5298 | PyObject * obj0 = 0 ; |
5299 | char *kwnames[] = { | |
5300 | (char *) "self", NULL | |
5301 | }; | |
5302 | ||
c32bde28 RD |
5303 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5304 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5308 | { |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5311 | ||
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5316 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5317 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5318 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5319 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
5320 | return resultobj; |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
c32bde28 | 5326 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5327 | PyObject *resultobj; |
5328 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5329 | double result; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5338 | { |
5339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5340 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5341 | ||
5342 | wxPyEndAllowThreads(__tstate); | |
5343 | if (PyErr_Occurred()) SWIG_fail; | |
5344 | } | |
c32bde28 | 5345 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5346 | return resultobj; |
5347 | fail: | |
5348 | return NULL; | |
5349 | } | |
5350 | ||
5351 | ||
c32bde28 | 5352 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5353 | PyObject *resultobj; |
5354 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5355 | double result; | |
5356 | PyObject * obj0 = 0 ; | |
5357 | char *kwnames[] = { | |
5358 | (char *) "self", NULL | |
5359 | }; | |
5360 | ||
5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5364 | { |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
c32bde28 | 5371 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5372 | return resultobj; |
5373 | fail: | |
5374 | return NULL; | |
5375 | } | |
5376 | ||
5377 | ||
c32bde28 | 5378 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5379 | PyObject *resultobj; |
5380 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5381 | double arg2 ; | |
5382 | PyObject * obj0 = 0 ; | |
994141e6 | 5383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5384 | char *kwnames[] = { |
5385 | (char *) "self",(char *) "length", NULL | |
5386 | }; | |
5387 | ||
994141e6 | 5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5391 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5392 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5393 | { |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | (arg1)->SetVectorLength(arg2); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | Py_INCREF(Py_None); resultobj = Py_None; | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
c32bde28 | 5407 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5408 | PyObject *resultobj; |
5409 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5410 | double arg2 ; | |
5411 | PyObject * obj0 = 0 ; | |
994141e6 | 5412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5413 | char *kwnames[] = { |
5414 | (char *) "self",(char *) "degrees", NULL | |
5415 | }; | |
5416 | ||
994141e6 | 5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5420 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5421 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5422 | { |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | (arg1)->SetVectorAngle(arg2); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | Py_INCREF(Py_None); resultobj = Py_None; | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
c32bde28 | 5436 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5437 | PyObject *resultobj; |
5438 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5439 | wxPoint2D *arg2 = 0 ; | |
5440 | double result; | |
5441 | wxPoint2D temp2 ; | |
5442 | PyObject * obj0 = 0 ; | |
5443 | PyObject * obj1 = 0 ; | |
5444 | char *kwnames[] = { | |
5445 | (char *) "self",(char *) "pt", NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5451 | { |
5452 | arg2 = &temp2; | |
5453 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5454 | } | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5458 | ||
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
c32bde28 | 5462 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5463 | return resultobj; |
5464 | fail: | |
5465 | return NULL; | |
5466 | } | |
5467 | ||
5468 | ||
c32bde28 | 5469 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5470 | PyObject *resultobj; |
5471 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5472 | wxPoint2D *arg2 = 0 ; | |
5473 | double result; | |
5474 | wxPoint2D temp2 ; | |
5475 | PyObject * obj0 = 0 ; | |
5476 | PyObject * obj1 = 0 ; | |
5477 | char *kwnames[] = { | |
5478 | (char *) "self",(char *) "pt", NULL | |
5479 | }; | |
5480 | ||
5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5484 | { |
5485 | arg2 = &temp2; | |
5486 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5487 | } | |
5488 | { | |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5491 | ||
5492 | wxPyEndAllowThreads(__tstate); | |
5493 | if (PyErr_Occurred()) SWIG_fail; | |
5494 | } | |
c32bde28 | 5495 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5496 | return resultobj; |
5497 | fail: | |
5498 | return NULL; | |
5499 | } | |
5500 | ||
5501 | ||
c32bde28 | 5502 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5503 | PyObject *resultobj; |
5504 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5505 | wxPoint2D *arg2 = 0 ; | |
5506 | double result; | |
5507 | wxPoint2D temp2 ; | |
5508 | PyObject * obj0 = 0 ; | |
5509 | PyObject * obj1 = 0 ; | |
5510 | char *kwnames[] = { | |
5511 | (char *) "self",(char *) "vec", NULL | |
5512 | }; | |
5513 | ||
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5517 | { |
5518 | arg2 = &temp2; | |
5519 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5520 | } | |
5521 | { | |
5522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5523 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5524 | ||
5525 | wxPyEndAllowThreads(__tstate); | |
5526 | if (PyErr_Occurred()) SWIG_fail; | |
5527 | } | |
c32bde28 | 5528 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5529 | return resultobj; |
5530 | fail: | |
5531 | return NULL; | |
5532 | } | |
5533 | ||
5534 | ||
c32bde28 | 5535 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5536 | PyObject *resultobj; |
5537 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5538 | wxPoint2D *arg2 = 0 ; | |
5539 | double result; | |
5540 | wxPoint2D temp2 ; | |
5541 | PyObject * obj0 = 0 ; | |
5542 | PyObject * obj1 = 0 ; | |
5543 | char *kwnames[] = { | |
5544 | (char *) "self",(char *) "vec", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5550 | { |
5551 | arg2 = &temp2; | |
5552 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5553 | } | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5557 | ||
5558 | wxPyEndAllowThreads(__tstate); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
c32bde28 | 5561 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5562 | return resultobj; |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
c32bde28 | 5568 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5569 | PyObject *resultobj; |
5570 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5571 | wxPoint2D result; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | char *kwnames[] = { | |
5574 | (char *) "self", NULL | |
5575 | }; | |
5576 | ||
5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5580 | { |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | result = (arg1)->operator -(); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
5587 | { | |
5588 | wxPoint2D * resultptr; | |
5589 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
15afbcd0 | 5590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5591 | } |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
c32bde28 | 5598 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5599 | PyObject *resultobj; |
5600 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5601 | wxPoint2D *arg2 = 0 ; | |
5602 | wxPoint2D *result; | |
5603 | wxPoint2D temp2 ; | |
5604 | PyObject * obj0 = 0 ; | |
5605 | PyObject * obj1 = 0 ; | |
5606 | char *kwnames[] = { | |
5607 | (char *) "self",(char *) "pt", NULL | |
5608 | }; | |
5609 | ||
5610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 5611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
c32bde28 | 5612 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
5613 | { |
5614 | arg2 = &temp2; | |
5615 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5616 | } | |
5617 | { | |
5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5619 | { | |
5620 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5621 | result = (wxPoint2D *) &_result_ref; | |
5622 | } | |
5623 | ||
5624 | wxPyEndAllowThreads(__tstate); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
c32bde28 | 5627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5628 | return resultobj; |
5629 | fail: | |
5630 | return NULL; | |
5631 | } | |
5632 | ||
5633 | ||
c32bde28 | 5634 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5635 | PyObject *resultobj; |
5636 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5637 | wxPoint2D *arg2 = 0 ; | |
5638 | wxPoint2D *result; | |
5639 | wxPoint2D temp2 ; | |
5640 | PyObject * obj0 = 0 ; | |
5641 | PyObject * obj1 = 0 ; | |
5642 | char *kwnames[] = { | |
5643 | (char *) "self",(char *) "pt", NULL | |
5644 | }; | |
5645 | ||
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 5647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
c32bde28 | 5648 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
5649 | { |
5650 | arg2 = &temp2; | |
5651 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5652 | } | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | { | |
5656 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5657 | result = (wxPoint2D *) &_result_ref; | |
5658 | } | |
5659 | ||
5660 | wxPyEndAllowThreads(__tstate); | |
5661 | if (PyErr_Occurred()) SWIG_fail; | |
5662 | } | |
c32bde28 | 5663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5664 | return resultobj; |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
c32bde28 | 5670 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5671 | PyObject *resultobj; |
5672 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5673 | wxPoint2D *arg2 = 0 ; | |
5674 | wxPoint2D *result; | |
5675 | wxPoint2D temp2 ; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | PyObject * obj1 = 0 ; | |
5678 | char *kwnames[] = { | |
5679 | (char *) "self",(char *) "pt", NULL | |
5680 | }; | |
5681 | ||
5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 5683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
c32bde28 | 5684 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
5685 | { |
5686 | arg2 = &temp2; | |
5687 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5688 | } | |
5689 | { | |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | { | |
5692 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5693 | result = (wxPoint2D *) &_result_ref; | |
5694 | } | |
5695 | ||
5696 | wxPyEndAllowThreads(__tstate); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
c32bde28 | 5699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5700 | return resultobj; |
5701 | fail: | |
5702 | return NULL; | |
5703 | } | |
5704 | ||
5705 | ||
c32bde28 | 5706 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5707 | PyObject *resultobj; |
5708 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5709 | wxPoint2D *arg2 = 0 ; | |
5710 | wxPoint2D *result; | |
5711 | wxPoint2D temp2 ; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | PyObject * obj1 = 0 ; | |
5714 | char *kwnames[] = { | |
5715 | (char *) "self",(char *) "pt", NULL | |
5716 | }; | |
5717 | ||
5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 | 5719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
c32bde28 | 5720 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d14a1e28 RD |
5721 | { |
5722 | arg2 = &temp2; | |
5723 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5724 | } | |
5725 | { | |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5727 | { | |
5728 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5729 | result = (wxPoint2D *) &_result_ref; | |
5730 | } | |
5731 | ||
5732 | wxPyEndAllowThreads(__tstate); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
c32bde28 | 5735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5736 | return resultobj; |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
c32bde28 | 5742 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5743 | PyObject *resultobj; |
5744 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5745 | wxPoint2D *arg2 = 0 ; | |
5746 | bool result; | |
5747 | wxPoint2D temp2 ; | |
5748 | PyObject * obj0 = 0 ; | |
5749 | PyObject * obj1 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self",(char *) "pt", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5757 | { |
5758 | arg2 = &temp2; | |
5759 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5760 | } | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5764 | ||
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
4f89f6a3 RD |
5768 | { |
5769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5770 | } | |
d14a1e28 RD |
5771 | return resultobj; |
5772 | fail: | |
5773 | return NULL; | |
5774 | } | |
5775 | ||
5776 | ||
c32bde28 | 5777 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5778 | PyObject *resultobj; |
5779 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5780 | wxPoint2D *arg2 = 0 ; | |
5781 | bool result; | |
5782 | wxPoint2D temp2 ; | |
5783 | PyObject * obj0 = 0 ; | |
5784 | PyObject * obj1 = 0 ; | |
5785 | char *kwnames[] = { | |
5786 | (char *) "self",(char *) "pt", NULL | |
5787 | }; | |
5788 | ||
5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5792 | { |
5793 | arg2 = &temp2; | |
5794 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5795 | } | |
5796 | { | |
5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5798 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5799 | ||
5800 | wxPyEndAllowThreads(__tstate); | |
5801 | if (PyErr_Occurred()) SWIG_fail; | |
5802 | } | |
4f89f6a3 RD |
5803 | { |
5804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5805 | } | |
d14a1e28 RD |
5806 | return resultobj; |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
c32bde28 | 5812 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5813 | PyObject *resultobj; |
5814 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5815 | double arg2 ; | |
5816 | PyObject * obj0 = 0 ; | |
994141e6 | 5817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5818 | char *kwnames[] = { |
5819 | (char *) "self",(char *) "m_x", NULL | |
5820 | }; | |
5821 | ||
994141e6 | 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5825 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5826 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5827 | if (arg1) (arg1)->m_x = arg2; |
5828 | ||
5829 | Py_INCREF(Py_None); resultobj = Py_None; | |
5830 | return resultobj; | |
5831 | fail: | |
5832 | return NULL; | |
5833 | } | |
5834 | ||
5835 | ||
c32bde28 | 5836 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5837 | PyObject *resultobj; |
5838 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5839 | double result; | |
5840 | PyObject * obj0 = 0 ; | |
5841 | char *kwnames[] = { | |
5842 | (char *) "self", NULL | |
5843 | }; | |
5844 | ||
5845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5848 | result = (double) ((arg1)->m_x); |
5849 | ||
c32bde28 | 5850 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5851 | return resultobj; |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
c32bde28 | 5857 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5858 | PyObject *resultobj; |
5859 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5860 | double arg2 ; | |
5861 | PyObject * obj0 = 0 ; | |
994141e6 | 5862 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5863 | char *kwnames[] = { |
5864 | (char *) "self",(char *) "m_y", NULL | |
5865 | }; | |
5866 | ||
994141e6 | 5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5870 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5871 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5872 | if (arg1) (arg1)->m_y = arg2; |
5873 | ||
5874 | Py_INCREF(Py_None); resultobj = Py_None; | |
5875 | return resultobj; | |
5876 | fail: | |
5877 | return NULL; | |
5878 | } | |
5879 | ||
5880 | ||
c32bde28 | 5881 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5882 | PyObject *resultobj; |
5883 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5884 | double result; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5893 | result = (double) ((arg1)->m_y); |
5894 | ||
c32bde28 | 5895 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5896 | return resultobj; |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
c32bde28 | 5902 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5903 | PyObject *resultobj; |
5904 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5905 | double arg2 = (double) 0 ; | |
5906 | double arg3 = (double) 0 ; | |
5907 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5908 | PyObject * obj1 = 0 ; |
5909 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5910 | char *kwnames[] = { |
5911 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5912 | }; | |
5913 | ||
994141e6 | 5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5917 | if (obj1) { |
c32bde28 | 5918 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 5919 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
5920 | } |
5921 | if (obj2) { | |
c32bde28 | 5922 | arg3 = (double)SWIG_As_double(obj2); |
15afbcd0 | 5923 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5924 | } |
d14a1e28 RD |
5925 | { |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5927 | wxPoint2D_Set(arg1,arg2,arg3); | |
5928 | ||
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
5932 | Py_INCREF(Py_None); resultobj = Py_None; | |
5933 | return resultobj; | |
5934 | fail: | |
5935 | return NULL; | |
5936 | } | |
5937 | ||
5938 | ||
c32bde28 | 5939 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5940 | PyObject *resultobj; |
5941 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5942 | PyObject *result; | |
5943 | PyObject * obj0 = 0 ; | |
5944 | char *kwnames[] = { | |
5945 | (char *) "self", NULL | |
5946 | }; | |
5947 | ||
e811c8ce | 5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5951 | { |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5953 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5954 | |
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | resultobj = result; | |
5959 | return resultobj; | |
5960 | fail: | |
5961 | return NULL; | |
5962 | } | |
5963 | ||
5964 | ||
c32bde28 | 5965 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5966 | PyObject *obj; |
5967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5968 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5969 | Py_INCREF(obj); | |
5970 | return Py_BuildValue((char *)""); | |
5971 | } | |
c32bde28 | 5972 | static int _wrap_DefaultPosition_set(PyObject *) { |
d14a1e28 RD |
5973 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5974 | return 1; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | static PyObject *_wrap_DefaultPosition_get() { | |
5979 | PyObject *pyobj; | |
5980 | ||
15afbcd0 | 5981 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5982 | return pyobj; |
5983 | } | |
5984 | ||
5985 | ||
c32bde28 | 5986 | static int _wrap_DefaultSize_set(PyObject *) { |
d14a1e28 RD |
5987 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5988 | return 1; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_DefaultSize_get() { | |
5993 | PyObject *pyobj; | |
5994 | ||
15afbcd0 | 5995 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5996 | return pyobj; |
5997 | } | |
5998 | ||
5999 | ||
c32bde28 | 6000 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6001 | PyObject *resultobj; |
6002 | PyObject *arg1 = (PyObject *) 0 ; | |
6003 | wxPyInputStream *result; | |
6004 | PyObject * obj0 = 0 ; | |
6005 | char *kwnames[] = { | |
6006 | (char *) "p", NULL | |
6007 | }; | |
6008 | ||
6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
6010 | arg1 = obj0; | |
6011 | { | |
6012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6013 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
6014 | ||
6015 | wxPyEndAllowThreads(__tstate); | |
6016 | if (PyErr_Occurred()) SWIG_fail; | |
6017 | } | |
15afbcd0 | 6018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
6019 | return resultobj; |
6020 | fail: | |
6021 | return NULL; | |
6022 | } | |
6023 | ||
6024 | ||
8fb0e70a RD |
6025 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
6026 | PyObject *resultobj; | |
6027 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6028 | PyObject * obj0 = 0 ; | |
6029 | char *kwnames[] = { | |
6030 | (char *) "self", NULL | |
6031 | }; | |
6032 | ||
6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
6034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | delete arg1; | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | Py_INCREF(Py_None); resultobj = Py_None; | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
c32bde28 | 6050 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6051 | PyObject *resultobj; |
6052 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6053 | PyObject * obj0 = 0 ; | |
6054 | char *kwnames[] = { | |
6055 | (char *) "self", NULL | |
6056 | }; | |
6057 | ||
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6061 | { |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | (arg1)->close(); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | Py_INCREF(Py_None); resultobj = Py_None; | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
c32bde28 | 6075 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6076 | PyObject *resultobj; |
6077 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6078 | PyObject * obj0 = 0 ; | |
6079 | char *kwnames[] = { | |
6080 | (char *) "self", NULL | |
6081 | }; | |
6082 | ||
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6086 | { |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | (arg1)->flush(); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | Py_INCREF(Py_None); resultobj = Py_None; | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
c32bde28 | 6100 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6101 | PyObject *resultobj; |
6102 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6103 | bool result; | |
6104 | PyObject * obj0 = 0 ; | |
6105 | char *kwnames[] = { | |
6106 | (char *) "self", NULL | |
6107 | }; | |
6108 | ||
6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6112 | { |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6114 | result = (bool)(arg1)->eof(); | |
6115 | ||
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
4f89f6a3 RD |
6119 | { |
6120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6121 | } | |
d14a1e28 RD |
6122 | return resultobj; |
6123 | fail: | |
6124 | return NULL; | |
6125 | } | |
6126 | ||
6127 | ||
c32bde28 | 6128 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6129 | PyObject *resultobj; |
6130 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6131 | int arg2 = (int) -1 ; | |
6132 | PyObject *result; | |
6133 | PyObject * obj0 = 0 ; | |
994141e6 | 6134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6135 | char *kwnames[] = { |
6136 | (char *) "self",(char *) "size", NULL | |
6137 | }; | |
6138 | ||
994141e6 | 6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6142 | if (obj1) { |
c32bde28 | 6143 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6144 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6145 | } |
d14a1e28 RD |
6146 | { |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | result = (PyObject *)(arg1)->read(arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | resultobj = result; | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
c32bde28 | 6160 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6161 | PyObject *resultobj; |
6162 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6163 | int arg2 = (int) -1 ; | |
6164 | PyObject *result; | |
6165 | PyObject * obj0 = 0 ; | |
994141e6 | 6166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6167 | char *kwnames[] = { |
6168 | (char *) "self",(char *) "size", NULL | |
6169 | }; | |
6170 | ||
994141e6 | 6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6174 | if (obj1) { |
c32bde28 | 6175 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6176 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6177 | } |
d14a1e28 RD |
6178 | { |
6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6180 | result = (PyObject *)(arg1)->readline(arg2); | |
6181 | ||
6182 | wxPyEndAllowThreads(__tstate); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | } | |
6185 | resultobj = result; | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
c32bde28 | 6192 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6193 | PyObject *resultobj; |
6194 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6195 | int arg2 = (int) -1 ; | |
6196 | PyObject *result; | |
6197 | PyObject * obj0 = 0 ; | |
994141e6 | 6198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6199 | char *kwnames[] = { |
6200 | (char *) "self",(char *) "sizehint", NULL | |
6201 | }; | |
6202 | ||
994141e6 | 6203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6206 | if (obj1) { |
c32bde28 | 6207 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6208 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6209 | } |
d14a1e28 RD |
6210 | { |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | result = (PyObject *)(arg1)->readlines(arg2); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | resultobj = result; | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
c32bde28 | 6224 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6225 | PyObject *resultobj; |
6226 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6227 | int arg2 ; | |
6228 | int arg3 = (int) 0 ; | |
6229 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6230 | PyObject * obj1 = 0 ; |
6231 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6232 | char *kwnames[] = { |
6233 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6234 | }; | |
6235 | ||
994141e6 | 6236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6239 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6240 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6241 | if (obj2) { |
c32bde28 | 6242 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6243 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6244 | } |
d14a1e28 RD |
6245 | { |
6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6247 | (arg1)->seek(arg2,arg3); | |
6248 | ||
6249 | wxPyEndAllowThreads(__tstate); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
6251 | } | |
6252 | Py_INCREF(Py_None); resultobj = Py_None; | |
6253 | return resultobj; | |
6254 | fail: | |
6255 | return NULL; | |
6256 | } | |
6257 | ||
6258 | ||
c32bde28 | 6259 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6260 | PyObject *resultobj; |
6261 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6262 | int result; | |
6263 | PyObject * obj0 = 0 ; | |
6264 | char *kwnames[] = { | |
6265 | (char *) "self", NULL | |
6266 | }; | |
6267 | ||
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6271 | { |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | result = (int)(arg1)->tell(); | |
6274 | ||
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
c32bde28 | 6278 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
6279 | return resultobj; |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
c32bde28 | 6285 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6286 | PyObject *resultobj; |
6287 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6288 | char result; | |
6289 | PyObject * obj0 = 0 ; | |
6290 | char *kwnames[] = { | |
6291 | (char *) "self", NULL | |
6292 | }; | |
6293 | ||
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6297 | { |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | result = (char)(arg1)->Peek(); | |
6300 | ||
6301 | wxPyEndAllowThreads(__tstate); | |
6302 | if (PyErr_Occurred()) SWIG_fail; | |
6303 | } | |
c32bde28 | 6304 | resultobj = SWIG_From_char((char)result); |
d14a1e28 RD |
6305 | return resultobj; |
6306 | fail: | |
6307 | return NULL; | |
6308 | } | |
6309 | ||
6310 | ||
c32bde28 | 6311 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6312 | PyObject *resultobj; |
6313 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6314 | char result; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | char *kwnames[] = { | |
6317 | (char *) "self", NULL | |
6318 | }; | |
6319 | ||
6320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6323 | { |
6324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6325 | result = (char)(arg1)->GetC(); | |
6326 | ||
6327 | wxPyEndAllowThreads(__tstate); | |
6328 | if (PyErr_Occurred()) SWIG_fail; | |
6329 | } | |
c32bde28 | 6330 | resultobj = SWIG_From_char((char)result); |
d14a1e28 RD |
6331 | return resultobj; |
6332 | fail: | |
6333 | return NULL; | |
6334 | } | |
6335 | ||
6336 | ||
c32bde28 | 6337 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6338 | PyObject *resultobj; |
6339 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6340 | size_t result; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6349 | { |
6350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6351 | result = (size_t)(arg1)->LastRead(); | |
6352 | ||
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
c32bde28 | 6356 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
6357 | return resultobj; |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
c32bde28 | 6363 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6364 | PyObject *resultobj; |
6365 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6366 | bool result; | |
6367 | PyObject * obj0 = 0 ; | |
6368 | char *kwnames[] = { | |
6369 | (char *) "self", NULL | |
6370 | }; | |
6371 | ||
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6375 | { |
6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6377 | result = (bool)(arg1)->CanRead(); | |
6378 | ||
6379 | wxPyEndAllowThreads(__tstate); | |
6380 | if (PyErr_Occurred()) SWIG_fail; | |
6381 | } | |
4f89f6a3 RD |
6382 | { |
6383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6384 | } | |
d14a1e28 RD |
6385 | return resultobj; |
6386 | fail: | |
6387 | return NULL; | |
6388 | } | |
6389 | ||
6390 | ||
c32bde28 | 6391 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6392 | PyObject *resultobj; |
6393 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6394 | bool result; | |
6395 | PyObject * obj0 = 0 ; | |
6396 | char *kwnames[] = { | |
6397 | (char *) "self", NULL | |
6398 | }; | |
6399 | ||
6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6403 | { |
6404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6405 | result = (bool)(arg1)->Eof(); | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) SWIG_fail; | |
6409 | } | |
4f89f6a3 RD |
6410 | { |
6411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6412 | } | |
d14a1e28 RD |
6413 | return resultobj; |
6414 | fail: | |
6415 | return NULL; | |
6416 | } | |
6417 | ||
6418 | ||
c32bde28 | 6419 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6420 | PyObject *resultobj; |
6421 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6422 | char arg2 ; | |
6423 | bool result; | |
6424 | PyObject * obj0 = 0 ; | |
994141e6 | 6425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6426 | char *kwnames[] = { |
6427 | (char *) "self",(char *) "c", NULL | |
6428 | }; | |
6429 | ||
994141e6 | 6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6433 | arg2 = (char)SWIG_As_char(obj1); |
15afbcd0 | 6434 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6435 | { |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6437 | result = (bool)(arg1)->Ungetch(arg2); | |
6438 | ||
6439 | wxPyEndAllowThreads(__tstate); | |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
6441 | } | |
4f89f6a3 RD |
6442 | { |
6443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6444 | } | |
d14a1e28 RD |
6445 | return resultobj; |
6446 | fail: | |
6447 | return NULL; | |
6448 | } | |
6449 | ||
6450 | ||
c32bde28 | 6451 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6452 | PyObject *resultobj; |
6453 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6454 | long arg2 ; | |
6455 | int arg3 = (int) wxFromStart ; | |
6456 | long result; | |
6457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6458 | PyObject * obj1 = 0 ; |
6459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6460 | char *kwnames[] = { |
6461 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6462 | }; | |
6463 | ||
994141e6 | 6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6467 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 6468 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6469 | if (obj2) { |
c32bde28 | 6470 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6471 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6472 | } |
d14a1e28 RD |
6473 | { |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
c32bde28 | 6480 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
6481 | return resultobj; |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
c32bde28 | 6487 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6488 | PyObject *resultobj; |
6489 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6490 | long result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "self", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6499 | { |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (long)(arg1)->TellI(); | |
6502 | ||
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
c32bde28 | 6506 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
6507 | return resultobj; |
6508 | fail: | |
6509 | return NULL; | |
6510 | } | |
6511 | ||
6512 | ||
c32bde28 | 6513 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6514 | PyObject *obj; |
6515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6516 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6517 | Py_INCREF(obj); | |
6518 | return Py_BuildValue((char *)""); | |
6519 | } | |
c32bde28 | 6520 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6521 | PyObject *resultobj; |
6522 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6523 | PyObject *arg2 = (PyObject *) 0 ; | |
6524 | PyObject * obj0 = 0 ; | |
6525 | PyObject * obj1 = 0 ; | |
6526 | char *kwnames[] = { | |
6527 | (char *) "self",(char *) "obj", NULL | |
6528 | }; | |
6529 | ||
6530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6533 | arg2 = obj1; |
6534 | { | |
6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6536 | wxOutputStream_write(arg1,arg2); | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | } | |
6541 | Py_INCREF(Py_None); resultobj = Py_None; | |
6542 | return resultobj; | |
6543 | fail: | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
c32bde28 | 6548 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6549 | PyObject *obj; |
6550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6551 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6552 | Py_INCREF(obj); | |
6553 | return Py_BuildValue((char *)""); | |
6554 | } | |
c32bde28 | 6555 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6556 | PyObject *resultobj; |
6557 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6558 | wxString *arg2 = 0 ; | |
6559 | wxString *arg3 = 0 ; | |
6560 | wxString *arg4 = 0 ; | |
6561 | wxDateTime arg5 ; | |
6562 | wxFSFile *result; | |
6563 | wxPyInputStream *temp1 ; | |
6564 | bool created1 ; | |
ae8162c8 RD |
6565 | bool temp2 = false ; |
6566 | bool temp3 = false ; | |
6567 | bool temp4 = false ; | |
d14a1e28 RD |
6568 | wxDateTime *argp5 ; |
6569 | PyObject * obj0 = 0 ; | |
6570 | PyObject * obj1 = 0 ; | |
6571 | PyObject * obj2 = 0 ; | |
6572 | PyObject * obj3 = 0 ; | |
6573 | PyObject * obj4 = 0 ; | |
6574 | char *kwnames[] = { | |
6575 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6576 | }; | |
6577 | ||
6578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6579 | { | |
6580 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6581 | arg1 = temp1->m_wxis; | |
ae8162c8 | 6582 | created1 = false; |
d14a1e28 RD |
6583 | } else { |
6584 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 6585 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 RD |
6586 | if (arg1 == NULL) { |
6587 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6588 | SWIG_fail; | |
6589 | } | |
ae8162c8 | 6590 | created1 = true; |
d14a1e28 RD |
6591 | } |
6592 | } | |
6593 | { | |
6594 | arg2 = wxString_in_helper(obj1); | |
6595 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6596 | temp2 = true; |
d14a1e28 RD |
6597 | } |
6598 | { | |
6599 | arg3 = wxString_in_helper(obj2); | |
6600 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6601 | temp3 = true; |
d14a1e28 RD |
6602 | } |
6603 | { | |
6604 | arg4 = wxString_in_helper(obj3); | |
6605 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6606 | temp4 = true; |
d14a1e28 | 6607 | } |
15afbcd0 RD |
6608 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6609 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6610 | arg5 = *argp5; | |
d14a1e28 RD |
6611 | { |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | { | |
412d302d | 6619 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
6620 | } |
6621 | { | |
6622 | if (created1) | |
6623 | delete arg1; | |
6624 | } | |
6625 | { | |
6626 | if (temp2) | |
6627 | delete arg2; | |
6628 | } | |
6629 | { | |
6630 | if (temp3) | |
6631 | delete arg3; | |
6632 | } | |
6633 | { | |
6634 | if (temp4) | |
6635 | delete arg4; | |
6636 | } | |
6637 | return resultobj; | |
6638 | fail: | |
6639 | { | |
6640 | if (created1) | |
6641 | delete arg1; | |
6642 | } | |
6643 | { | |
6644 | if (temp2) | |
6645 | delete arg2; | |
6646 | } | |
6647 | { | |
6648 | if (temp3) | |
6649 | delete arg3; | |
6650 | } | |
6651 | { | |
6652 | if (temp4) | |
6653 | delete arg4; | |
6654 | } | |
6655 | return NULL; | |
6656 | } | |
6657 | ||
6658 | ||
c32bde28 | 6659 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6660 | PyObject *resultobj; |
6661 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6662 | PyObject * obj0 = 0 ; | |
6663 | char *kwnames[] = { | |
6664 | (char *) "self", NULL | |
6665 | }; | |
6666 | ||
6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6670 | { |
6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6672 | delete arg1; | |
6673 | ||
6674 | wxPyEndAllowThreads(__tstate); | |
6675 | if (PyErr_Occurred()) SWIG_fail; | |
6676 | } | |
6677 | Py_INCREF(Py_None); resultobj = Py_None; | |
6678 | return resultobj; | |
6679 | fail: | |
6680 | return NULL; | |
6681 | } | |
6682 | ||
6683 | ||
c32bde28 | 6684 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6685 | PyObject *resultobj; |
6686 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6687 | wxInputStream *result; | |
6688 | PyObject * obj0 = 0 ; | |
6689 | char *kwnames[] = { | |
6690 | (char *) "self", NULL | |
6691 | }; | |
6692 | ||
6693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6696 | { |
6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6698 | result = (wxInputStream *)(arg1)->GetStream(); | |
6699 | ||
6700 | wxPyEndAllowThreads(__tstate); | |
6701 | if (PyErr_Occurred()) SWIG_fail; | |
6702 | } | |
6703 | { | |
6704 | wxPyInputStream * _ptr = NULL; | |
6705 | ||
6706 | if (result) { | |
6707 | _ptr = new wxPyInputStream(result); | |
6708 | } | |
fc71d09b | 6709 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
6710 | } |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
c32bde28 | 6717 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6718 | PyObject *resultobj; |
6719 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6720 | wxString *result; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | char *kwnames[] = { | |
6723 | (char *) "self", NULL | |
6724 | }; | |
6725 | ||
6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6729 | { |
6730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6731 | { | |
6732 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6733 | result = (wxString *) &_result_ref; | |
6734 | } | |
6735 | ||
6736 | wxPyEndAllowThreads(__tstate); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | } | |
cc6dd355 RD |
6739 | { |
6740 | #if wxUSE_UNICODE | |
6741 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6742 | #else | |
6743 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6744 | #endif | |
6745 | } | |
d14a1e28 RD |
6746 | return resultobj; |
6747 | fail: | |
6748 | return NULL; | |
6749 | } | |
6750 | ||
6751 | ||
c32bde28 | 6752 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6753 | PyObject *resultobj; |
6754 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6755 | wxString *result; | |
6756 | PyObject * obj0 = 0 ; | |
6757 | char *kwnames[] = { | |
6758 | (char *) "self", NULL | |
6759 | }; | |
6760 | ||
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6764 | { |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | { | |
6767 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6768 | result = (wxString *) &_result_ref; | |
6769 | } | |
6770 | ||
6771 | wxPyEndAllowThreads(__tstate); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
cc6dd355 RD |
6774 | { |
6775 | #if wxUSE_UNICODE | |
6776 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6777 | #else | |
6778 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6779 | #endif | |
6780 | } | |
d14a1e28 RD |
6781 | return resultobj; |
6782 | fail: | |
6783 | return NULL; | |
6784 | } | |
6785 | ||
6786 | ||
c32bde28 | 6787 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6788 | PyObject *resultobj; |
6789 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6790 | wxString *result; | |
6791 | PyObject * obj0 = 0 ; | |
6792 | char *kwnames[] = { | |
6793 | (char *) "self", NULL | |
6794 | }; | |
6795 | ||
6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6799 | { |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6801 | { | |
6802 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6803 | result = (wxString *) &_result_ref; | |
6804 | } | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | } | |
cc6dd355 RD |
6809 | { |
6810 | #if wxUSE_UNICODE | |
6811 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6812 | #else | |
6813 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6814 | #endif | |
6815 | } | |
d14a1e28 RD |
6816 | return resultobj; |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
c32bde28 | 6822 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6823 | PyObject *resultobj; |
6824 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6825 | wxDateTime result; | |
6826 | PyObject * obj0 = 0 ; | |
6827 | char *kwnames[] = { | |
6828 | (char *) "self", NULL | |
6829 | }; | |
6830 | ||
6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6834 | { |
6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6836 | result = (arg1)->GetModificationTime(); | |
6837 | ||
6838 | wxPyEndAllowThreads(__tstate); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
6841 | { | |
6842 | wxDateTime * resultptr; | |
6843 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 6844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6845 | } |
6846 | return resultobj; | |
6847 | fail: | |
6848 | return NULL; | |
6849 | } | |
6850 | ||
6851 | ||
c32bde28 | 6852 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6853 | PyObject *obj; |
6854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6855 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6856 | Py_INCREF(obj); | |
6857 | return Py_BuildValue((char *)""); | |
6858 | } | |
c32bde28 | 6859 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6860 | PyObject *obj; |
6861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6862 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6863 | Py_INCREF(obj); | |
6864 | return Py_BuildValue((char *)""); | |
6865 | } | |
c32bde28 | 6866 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6867 | PyObject *resultobj; |
6868 | wxPyFileSystemHandler *result; | |
6869 | char *kwnames[] = { | |
6870 | NULL | |
6871 | }; | |
6872 | ||
6873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6874 | { | |
6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6876 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6877 | ||
6878 | wxPyEndAllowThreads(__tstate); | |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
6880 | } | |
15afbcd0 | 6881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6882 | return resultobj; |
6883 | fail: | |
6884 | return NULL; | |
6885 | } | |
6886 | ||
6887 | ||
c32bde28 | 6888 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6889 | PyObject *resultobj; |
6890 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6891 | PyObject *arg2 = (PyObject *) 0 ; | |
6892 | PyObject *arg3 = (PyObject *) 0 ; | |
6893 | PyObject * obj0 = 0 ; | |
6894 | PyObject * obj1 = 0 ; | |
6895 | PyObject * obj2 = 0 ; | |
6896 | char *kwnames[] = { | |
6897 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6898 | }; | |
6899 | ||
6900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6903 | arg2 = obj1; |
6904 | arg3 = obj2; | |
6905 | { | |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
6912 | Py_INCREF(Py_None); resultobj = Py_None; | |
6913 | return resultobj; | |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
c32bde28 | 6919 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6920 | PyObject *resultobj; |
6921 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6922 | wxString *arg2 = 0 ; | |
6923 | bool result; | |
ae8162c8 | 6924 | bool temp2 = false ; |
d14a1e28 RD |
6925 | PyObject * obj0 = 0 ; |
6926 | PyObject * obj1 = 0 ; | |
6927 | char *kwnames[] = { | |
6928 | (char *) "self",(char *) "location", NULL | |
6929 | }; | |
6930 | ||
6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6934 | { |
6935 | arg2 = wxString_in_helper(obj1); | |
6936 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6937 | temp2 = true; |
d14a1e28 RD |
6938 | } |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
4f89f6a3 RD |
6946 | { |
6947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6948 | } | |
d14a1e28 RD |
6949 | { |
6950 | if (temp2) | |
6951 | delete arg2; | |
6952 | } | |
6953 | return resultobj; | |
6954 | fail: | |
6955 | { | |
6956 | if (temp2) | |
6957 | delete arg2; | |
6958 | } | |
6959 | return NULL; | |
6960 | } | |
6961 | ||
6962 | ||
c32bde28 | 6963 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6964 | PyObject *resultobj; |
6965 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6966 | wxFileSystem *arg2 = 0 ; | |
6967 | wxString *arg3 = 0 ; | |
6968 | wxFSFile *result; | |
ae8162c8 | 6969 | bool temp3 = false ; |
d14a1e28 RD |
6970 | PyObject * obj0 = 0 ; |
6971 | PyObject * obj1 = 0 ; | |
6972 | PyObject * obj2 = 0 ; | |
6973 | char *kwnames[] = { | |
6974 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6975 | }; | |
6976 | ||
6977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6982 | SWIG_fail; | |
d14a1e28 | 6983 | if (arg2 == NULL) { |
15afbcd0 RD |
6984 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6985 | SWIG_fail; | |
d14a1e28 RD |
6986 | } |
6987 | { | |
6988 | arg3 = wxString_in_helper(obj2); | |
6989 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6990 | temp3 = true; |
d14a1e28 RD |
6991 | } |
6992 | { | |
6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6994 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6995 | ||
6996 | wxPyEndAllowThreads(__tstate); | |
6997 | if (PyErr_Occurred()) SWIG_fail; | |
6998 | } | |
6999 | { | |
4cf4100f | 7000 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7001 | } |
7002 | { | |
7003 | if (temp3) | |
7004 | delete arg3; | |
7005 | } | |
7006 | return resultobj; | |
7007 | fail: | |
7008 | { | |
7009 | if (temp3) | |
7010 | delete arg3; | |
7011 | } | |
7012 | return NULL; | |
7013 | } | |
7014 | ||
7015 | ||
c32bde28 | 7016 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7017 | PyObject *resultobj; |
7018 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7019 | wxString *arg2 = 0 ; | |
7020 | int arg3 = (int) 0 ; | |
7021 | wxString result; | |
ae8162c8 | 7022 | bool temp2 = false ; |
d14a1e28 RD |
7023 | PyObject * obj0 = 0 ; |
7024 | PyObject * obj1 = 0 ; | |
994141e6 | 7025 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7026 | char *kwnames[] = { |
7027 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7028 | }; | |
7029 | ||
994141e6 | 7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7033 | { |
7034 | arg2 = wxString_in_helper(obj1); | |
7035 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7036 | temp2 = true; |
d14a1e28 | 7037 | } |
994141e6 | 7038 | if (obj2) { |
c32bde28 | 7039 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7040 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7041 | } |
d14a1e28 RD |
7042 | { |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | { | |
7050 | #if wxUSE_UNICODE | |
7051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7052 | #else | |
7053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7054 | #endif | |
7055 | } | |
7056 | { | |
7057 | if (temp2) | |
7058 | delete arg2; | |
7059 | } | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | { | |
7063 | if (temp2) | |
7064 | delete arg2; | |
7065 | } | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
c32bde28 | 7070 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7071 | PyObject *resultobj; |
7072 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7073 | wxString result; | |
7074 | PyObject * obj0 = 0 ; | |
7075 | char *kwnames[] = { | |
7076 | (char *) "self", NULL | |
7077 | }; | |
7078 | ||
7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7082 | { |
7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7084 | result = (arg1)->FindNext(); | |
7085 | ||
7086 | wxPyEndAllowThreads(__tstate); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
7089 | { | |
7090 | #if wxUSE_UNICODE | |
7091 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7092 | #else | |
7093 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7094 | #endif | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
c32bde28 | 7102 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7103 | PyObject *resultobj; |
7104 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7105 | wxString *arg2 = 0 ; | |
7106 | wxString result; | |
ae8162c8 | 7107 | bool temp2 = false ; |
d14a1e28 RD |
7108 | PyObject * obj0 = 0 ; |
7109 | PyObject * obj1 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "self",(char *) "location", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7117 | { |
7118 | arg2 = wxString_in_helper(obj1); | |
7119 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7120 | temp2 = true; |
d14a1e28 RD |
7121 | } |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | { | |
7130 | #if wxUSE_UNICODE | |
7131 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7132 | #else | |
7133 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7134 | #endif | |
7135 | } | |
7136 | { | |
7137 | if (temp2) | |
7138 | delete arg2; | |
7139 | } | |
7140 | return resultobj; | |
7141 | fail: | |
7142 | { | |
7143 | if (temp2) | |
7144 | delete arg2; | |
7145 | } | |
7146 | return NULL; | |
7147 | } | |
7148 | ||
7149 | ||
c32bde28 | 7150 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7151 | PyObject *resultobj; |
7152 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7153 | wxString *arg2 = 0 ; | |
7154 | wxString result; | |
ae8162c8 | 7155 | bool temp2 = false ; |
d14a1e28 RD |
7156 | PyObject * obj0 = 0 ; |
7157 | PyObject * obj1 = 0 ; | |
7158 | char *kwnames[] = { | |
7159 | (char *) "self",(char *) "location", NULL | |
7160 | }; | |
7161 | ||
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7165 | { |
7166 | arg2 = wxString_in_helper(obj1); | |
7167 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7168 | temp2 = true; |
d14a1e28 RD |
7169 | } |
7170 | { | |
7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7172 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7173 | ||
7174 | wxPyEndAllowThreads(__tstate); | |
7175 | if (PyErr_Occurred()) SWIG_fail; | |
7176 | } | |
7177 | { | |
7178 | #if wxUSE_UNICODE | |
7179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7180 | #else | |
7181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7182 | #endif | |
7183 | } | |
7184 | { | |
7185 | if (temp2) | |
7186 | delete arg2; | |
7187 | } | |
7188 | return resultobj; | |
7189 | fail: | |
7190 | { | |
7191 | if (temp2) | |
7192 | delete arg2; | |
7193 | } | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
c32bde28 | 7198 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7199 | PyObject *resultobj; |
7200 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7201 | wxString *arg2 = 0 ; | |
7202 | wxString result; | |
ae8162c8 | 7203 | bool temp2 = false ; |
d14a1e28 RD |
7204 | PyObject * obj0 = 0 ; |
7205 | PyObject * obj1 = 0 ; | |
7206 | char *kwnames[] = { | |
7207 | (char *) "self",(char *) "location", NULL | |
7208 | }; | |
7209 | ||
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7213 | { |
7214 | arg2 = wxString_in_helper(obj1); | |
7215 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7216 | temp2 = true; |
d14a1e28 RD |
7217 | } |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | { | |
7226 | #if wxUSE_UNICODE | |
7227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7228 | #else | |
7229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7230 | #endif | |
7231 | } | |
7232 | { | |
7233 | if (temp2) | |
7234 | delete arg2; | |
7235 | } | |
7236 | return resultobj; | |
7237 | fail: | |
7238 | { | |
7239 | if (temp2) | |
7240 | delete arg2; | |
7241 | } | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
c32bde28 | 7246 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7247 | PyObject *resultobj; |
7248 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7249 | wxString *arg2 = 0 ; | |
7250 | wxString result; | |
ae8162c8 | 7251 | bool temp2 = false ; |
d14a1e28 RD |
7252 | PyObject * obj0 = 0 ; |
7253 | PyObject * obj1 = 0 ; | |
7254 | char *kwnames[] = { | |
7255 | (char *) "self",(char *) "location", NULL | |
7256 | }; | |
7257 | ||
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7261 | { |
7262 | arg2 = wxString_in_helper(obj1); | |
7263 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7264 | temp2 = true; |
d14a1e28 RD |
7265 | } |
7266 | { | |
7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7268 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7269 | ||
7270 | wxPyEndAllowThreads(__tstate); | |
7271 | if (PyErr_Occurred()) SWIG_fail; | |
7272 | } | |
7273 | { | |
7274 | #if wxUSE_UNICODE | |
7275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7276 | #else | |
7277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7278 | #endif | |
7279 | } | |
7280 | { | |
7281 | if (temp2) | |
7282 | delete arg2; | |
7283 | } | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | { | |
7287 | if (temp2) | |
7288 | delete arg2; | |
7289 | } | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
c32bde28 | 7294 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7295 | PyObject *resultobj; |
7296 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7297 | wxString *arg2 = 0 ; | |
7298 | wxString result; | |
ae8162c8 | 7299 | bool temp2 = false ; |
d14a1e28 RD |
7300 | PyObject * obj0 = 0 ; |
7301 | PyObject * obj1 = 0 ; | |
7302 | char *kwnames[] = { | |
7303 | (char *) "self",(char *) "location", NULL | |
7304 | }; | |
7305 | ||
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
7308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7309 | { |
7310 | arg2 = wxString_in_helper(obj1); | |
7311 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7312 | temp2 = true; |
d14a1e28 RD |
7313 | } |
7314 | { | |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7316 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | { | |
7322 | #if wxUSE_UNICODE | |
7323 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7324 | #else | |
7325 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7326 | #endif | |
7327 | } | |
7328 | { | |
7329 | if (temp2) | |
7330 | delete arg2; | |
7331 | } | |
7332 | return resultobj; | |
7333 | fail: | |
7334 | { | |
7335 | if (temp2) | |
7336 | delete arg2; | |
7337 | } | |
7338 | return NULL; | |
7339 | } | |
7340 | ||
7341 | ||
c32bde28 | 7342 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7343 | PyObject *obj; |
7344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7345 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7346 | Py_INCREF(obj); | |
7347 | return Py_BuildValue((char *)""); | |
7348 | } | |
c32bde28 | 7349 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7350 | PyObject *resultobj; |
7351 | wxFileSystem *result; | |
7352 | char *kwnames[] = { | |
7353 | NULL | |
7354 | }; | |
7355 | ||
7356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7357 | { | |
7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7359 | result = (wxFileSystem *)new wxFileSystem(); | |
7360 | ||
7361 | wxPyEndAllowThreads(__tstate); | |
7362 | if (PyErr_Occurred()) SWIG_fail; | |
7363 | } | |
7364 | { | |
412d302d | 7365 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7366 | } |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
c32bde28 | 7373 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7374 | PyObject *resultobj; |
7375 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7376 | PyObject * obj0 = 0 ; | |
7377 | char *kwnames[] = { | |
7378 | (char *) "self", NULL | |
7379 | }; | |
7380 | ||
7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7384 | { |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7386 | delete arg1; | |
7387 | ||
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | Py_INCREF(Py_None); resultobj = Py_None; | |
7392 | return resultobj; | |
7393 | fail: | |
7394 | return NULL; | |
7395 | } | |
7396 | ||
7397 | ||
c32bde28 | 7398 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7399 | PyObject *resultobj; |
7400 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7401 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
7402 | bool arg3 = (bool) false ; |
7403 | bool temp2 = false ; | |
d14a1e28 RD |
7404 | PyObject * obj0 = 0 ; |
7405 | PyObject * obj1 = 0 ; | |
7406 | PyObject * obj2 = 0 ; | |
7407 | char *kwnames[] = { | |
7408 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7414 | { |
7415 | arg2 = wxString_in_helper(obj1); | |
7416 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7417 | temp2 = true; |
d14a1e28 RD |
7418 | } |
7419 | if (obj2) { | |
c32bde28 | 7420 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 7421 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7422 | } |
7423 | { | |
7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7425 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7426 | ||
7427 | wxPyEndAllowThreads(__tstate); | |
7428 | if (PyErr_Occurred()) SWIG_fail; | |
7429 | } | |
7430 | Py_INCREF(Py_None); resultobj = Py_None; | |
7431 | { | |
7432 | if (temp2) | |
7433 | delete arg2; | |
7434 | } | |
7435 | return resultobj; | |
7436 | fail: | |
7437 | { | |
7438 | if (temp2) | |
7439 | delete arg2; | |
7440 | } | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
c32bde28 | 7445 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7446 | PyObject *resultobj; |
7447 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7448 | wxString result; | |
7449 | PyObject * obj0 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "self", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7457 | { |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = (arg1)->GetPath(); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | { | |
7465 | #if wxUSE_UNICODE | |
7466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7467 | #else | |
7468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7469 | #endif | |
7470 | } | |
7471 | return resultobj; | |
7472 | fail: | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
c32bde28 | 7477 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7478 | PyObject *resultobj; |
7479 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7480 | wxString *arg2 = 0 ; | |
7481 | wxFSFile *result; | |
ae8162c8 | 7482 | bool temp2 = false ; |
d14a1e28 RD |
7483 | PyObject * obj0 = 0 ; |
7484 | PyObject * obj1 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self",(char *) "location", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7492 | { |
7493 | arg2 = wxString_in_helper(obj1); | |
7494 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7495 | temp2 = true; |
d14a1e28 RD |
7496 | } |
7497 | { | |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | { | |
4cf4100f | 7505 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7506 | } |
7507 | { | |
7508 | if (temp2) | |
7509 | delete arg2; | |
7510 | } | |
7511 | return resultobj; | |
7512 | fail: | |
7513 | { | |
7514 | if (temp2) | |
7515 | delete arg2; | |
7516 | } | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
c32bde28 | 7521 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7522 | PyObject *resultobj; |
7523 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7524 | wxString *arg2 = 0 ; | |
7525 | int arg3 = (int) 0 ; | |
7526 | wxString result; | |
ae8162c8 | 7527 | bool temp2 = false ; |
d14a1e28 RD |
7528 | PyObject * obj0 = 0 ; |
7529 | PyObject * obj1 = 0 ; | |
994141e6 | 7530 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7531 | char *kwnames[] = { |
7532 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7533 | }; | |
7534 | ||
994141e6 | 7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7538 | { |
7539 | arg2 = wxString_in_helper(obj1); | |
7540 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7541 | temp2 = true; |
d14a1e28 | 7542 | } |
994141e6 | 7543 | if (obj2) { |
c32bde28 | 7544 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7545 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7546 | } |
d14a1e28 RD |
7547 | { |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | { | |
7555 | #if wxUSE_UNICODE | |
7556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7557 | #else | |
7558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7559 | #endif | |
7560 | } | |
7561 | { | |
7562 | if (temp2) | |
7563 | delete arg2; | |
7564 | } | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | { | |
7568 | if (temp2) | |
7569 | delete arg2; | |
7570 | } | |
7571 | return NULL; | |
7572 | } | |
7573 | ||
7574 | ||
c32bde28 | 7575 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7576 | PyObject *resultobj; |
7577 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7578 | wxString result; | |
7579 | PyObject * obj0 = 0 ; | |
7580 | char *kwnames[] = { | |
7581 | (char *) "self", NULL | |
7582 | }; | |
7583 | ||
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7587 | { |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | result = (arg1)->FindNext(); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | { | |
7595 | #if wxUSE_UNICODE | |
7596 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7597 | #else | |
7598 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7599 | #endif | |
7600 | } | |
7601 | return resultobj; | |
7602 | fail: | |
7603 | return NULL; | |
7604 | } | |
7605 | ||
7606 | ||
c32bde28 | 7607 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7608 | PyObject *resultobj; |
7609 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7610 | PyObject * obj0 = 0 ; | |
7611 | char *kwnames[] = { | |
7612 | (char *) "handler", NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7618 | { |
7619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7620 | wxFileSystem::AddHandler(arg1); | |
7621 | ||
7622 | wxPyEndAllowThreads(__tstate); | |
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | Py_INCREF(Py_None); resultobj = Py_None; | |
7626 | return resultobj; | |
7627 | fail: | |
7628 | return NULL; | |
7629 | } | |
7630 | ||
7631 | ||
c32bde28 | 7632 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7633 | PyObject *resultobj; |
7634 | char *kwnames[] = { | |
7635 | NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7639 | { | |
7640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7641 | wxFileSystem::CleanUpHandlers(); | |
7642 | ||
7643 | wxPyEndAllowThreads(__tstate); | |
7644 | if (PyErr_Occurred()) SWIG_fail; | |
7645 | } | |
7646 | Py_INCREF(Py_None); resultobj = Py_None; | |
7647 | return resultobj; | |
7648 | fail: | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
c32bde28 | 7653 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7654 | PyObject *resultobj; |
7655 | wxString *arg1 = 0 ; | |
7656 | wxString result; | |
ae8162c8 | 7657 | bool temp1 = false ; |
d14a1e28 RD |
7658 | PyObject * obj0 = 0 ; |
7659 | char *kwnames[] = { | |
7660 | (char *) "filename", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7664 | { | |
7665 | arg1 = wxString_in_helper(obj0); | |
7666 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7667 | temp1 = true; |
d14a1e28 RD |
7668 | } |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
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 | ||
c32bde28 | 7697 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7698 | PyObject *resultobj; |
7699 | wxString *arg1 = 0 ; | |
7700 | wxString result; | |
ae8162c8 | 7701 | bool temp1 = false ; |
d14a1e28 RD |
7702 | PyObject * obj0 = 0 ; |
7703 | char *kwnames[] = { | |
7704 | (char *) "url", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7708 | { | |
7709 | arg1 = wxString_in_helper(obj0); | |
7710 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7711 | temp1 = true; |
d14a1e28 RD |
7712 | } |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 7715 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d14a1e28 RD |
7716 | |
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | { | |
7721 | #if wxUSE_UNICODE | |
7722 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7723 | #else | |
7724 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7725 | #endif | |
7726 | } | |
7727 | { | |
7728 | if (temp1) | |
7729 | delete arg1; | |
7730 | } | |
7731 | return resultobj; | |
7732 | fail: | |
7733 | { | |
7734 | if (temp1) | |
7735 | delete arg1; | |
7736 | } | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
2ef75293 RD |
7741 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7742 | PyObject *obj; | |
7743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7744 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7745 | Py_INCREF(obj); | |
7746 | return Py_BuildValue((char *)""); | |
7747 | } | |
c32bde28 | 7748 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7749 | PyObject *resultobj; |
7750 | wxInternetFSHandler *result; | |
7751 | char *kwnames[] = { | |
7752 | NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7756 | { | |
7757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7758 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7759 | ||
7760 | wxPyEndAllowThreads(__tstate); | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | } | |
15afbcd0 | 7763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7764 | return resultobj; |
7765 | fail: | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
c32bde28 | 7770 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7771 | PyObject *resultobj; |
7772 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7773 | wxString *arg2 = 0 ; | |
7774 | bool result; | |
ae8162c8 | 7775 | bool temp2 = false ; |
d14a1e28 RD |
7776 | PyObject * obj0 = 0 ; |
7777 | PyObject * obj1 = 0 ; | |
7778 | char *kwnames[] = { | |
7779 | (char *) "self",(char *) "location", NULL | |
7780 | }; | |
7781 | ||
7782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7785 | { |
7786 | arg2 = wxString_in_helper(obj1); | |
7787 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7788 | temp2 = true; |
d14a1e28 RD |
7789 | } |
7790 | { | |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
4f89f6a3 RD |
7797 | { |
7798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7799 | } | |
d14a1e28 RD |
7800 | { |
7801 | if (temp2) | |
7802 | delete arg2; | |
7803 | } | |
7804 | return resultobj; | |
7805 | fail: | |
7806 | { | |
7807 | if (temp2) | |
7808 | delete arg2; | |
7809 | } | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
c32bde28 | 7814 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7815 | PyObject *resultobj; |
7816 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7817 | wxFileSystem *arg2 = 0 ; | |
7818 | wxString *arg3 = 0 ; | |
7819 | wxFSFile *result; | |
ae8162c8 | 7820 | bool temp3 = false ; |
d14a1e28 RD |
7821 | PyObject * obj0 = 0 ; |
7822 | PyObject * obj1 = 0 ; | |
7823 | PyObject * obj2 = 0 ; | |
7824 | char *kwnames[] = { | |
7825 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7826 | }; | |
7827 | ||
7828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7833 | SWIG_fail; | |
d14a1e28 | 7834 | if (arg2 == NULL) { |
15afbcd0 RD |
7835 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7836 | SWIG_fail; | |
d14a1e28 RD |
7837 | } |
7838 | { | |
7839 | arg3 = wxString_in_helper(obj2); | |
7840 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7841 | temp3 = true; |
d14a1e28 RD |
7842 | } |
7843 | { | |
7844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7845 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7846 | ||
7847 | wxPyEndAllowThreads(__tstate); | |
7848 | if (PyErr_Occurred()) SWIG_fail; | |
7849 | } | |
7850 | { | |
4cf4100f | 7851 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7852 | } |
7853 | { | |
7854 | if (temp3) | |
7855 | delete arg3; | |
7856 | } | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | { | |
7860 | if (temp3) | |
7861 | delete arg3; | |
7862 | } | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
c32bde28 | 7867 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7868 | PyObject *obj; |
7869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7870 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7871 | Py_INCREF(obj); | |
7872 | return Py_BuildValue((char *)""); | |
7873 | } | |
c32bde28 | 7874 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7875 | PyObject *resultobj; |
7876 | wxZipFSHandler *result; | |
7877 | char *kwnames[] = { | |
7878 | NULL | |
7879 | }; | |
7880 | ||
7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7882 | { | |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
15afbcd0 | 7889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7890 | return resultobj; |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
c32bde28 | 7896 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7897 | PyObject *resultobj; |
7898 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7899 | wxString *arg2 = 0 ; | |
7900 | bool result; | |
ae8162c8 | 7901 | bool temp2 = false ; |
d14a1e28 RD |
7902 | PyObject * obj0 = 0 ; |
7903 | PyObject * obj1 = 0 ; | |
7904 | char *kwnames[] = { | |
7905 | (char *) "self",(char *) "location", NULL | |
7906 | }; | |
7907 | ||
7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7911 | { |
7912 | arg2 = wxString_in_helper(obj1); | |
7913 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7914 | temp2 = true; |
d14a1e28 RD |
7915 | } |
7916 | { | |
7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7918 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7919 | ||
7920 | wxPyEndAllowThreads(__tstate); | |
7921 | if (PyErr_Occurred()) SWIG_fail; | |
7922 | } | |
4f89f6a3 RD |
7923 | { |
7924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7925 | } | |
d14a1e28 RD |
7926 | { |
7927 | if (temp2) | |
7928 | delete arg2; | |
7929 | } | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | { | |
7933 | if (temp2) | |
7934 | delete arg2; | |
7935 | } | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
c32bde28 | 7940 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7941 | PyObject *resultobj; |
7942 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7943 | wxFileSystem *arg2 = 0 ; | |
7944 | wxString *arg3 = 0 ; | |
7945 | wxFSFile *result; | |
ae8162c8 | 7946 | bool temp3 = false ; |
d14a1e28 RD |
7947 | PyObject * obj0 = 0 ; |
7948 | PyObject * obj1 = 0 ; | |
7949 | PyObject * obj2 = 0 ; | |
7950 | char *kwnames[] = { | |
7951 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7952 | }; | |
7953 | ||
7954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7959 | SWIG_fail; | |
d14a1e28 | 7960 | if (arg2 == NULL) { |
15afbcd0 RD |
7961 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7962 | SWIG_fail; | |
d14a1e28 RD |
7963 | } |
7964 | { | |
7965 | arg3 = wxString_in_helper(obj2); | |
7966 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7967 | temp3 = true; |
d14a1e28 RD |
7968 | } |
7969 | { | |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | { | |
4cf4100f | 7977 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7978 | } |
7979 | { | |
7980 | if (temp3) | |
7981 | delete arg3; | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | { | |
7986 | if (temp3) | |
7987 | delete arg3; | |
7988 | } | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
c32bde28 | 7993 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7994 | PyObject *resultobj; |
7995 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7996 | wxString *arg2 = 0 ; | |
7997 | int arg3 = (int) 0 ; | |
7998 | wxString result; | |
ae8162c8 | 7999 | bool temp2 = false ; |
d14a1e28 RD |
8000 | PyObject * obj0 = 0 ; |
8001 | PyObject * obj1 = 0 ; | |
994141e6 | 8002 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8003 | char *kwnames[] = { |
8004 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8005 | }; | |
8006 | ||
994141e6 | 8007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
8009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8010 | { |
8011 | arg2 = wxString_in_helper(obj1); | |
8012 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8013 | temp2 = true; |
d14a1e28 | 8014 | } |
994141e6 | 8015 | if (obj2) { |
c32bde28 | 8016 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 8017 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8018 | } |
d14a1e28 RD |
8019 | { |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | { | |
8027 | #if wxUSE_UNICODE | |
8028 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8029 | #else | |
8030 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8031 | #endif | |
8032 | } | |
8033 | { | |
8034 | if (temp2) | |
8035 | delete arg2; | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | { | |
8040 | if (temp2) | |
8041 | delete arg2; | |
8042 | } | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
c32bde28 | 8047 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8048 | PyObject *resultobj; |
8049 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8050 | wxString result; | |
8051 | PyObject * obj0 = 0 ; | |
8052 | char *kwnames[] = { | |
8053 | (char *) "self", NULL | |
8054 | }; | |
8055 | ||
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
8058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8059 | { |
8060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8061 | result = (arg1)->FindNext(); | |
8062 | ||
8063 | wxPyEndAllowThreads(__tstate); | |
8064 | if (PyErr_Occurred()) SWIG_fail; | |
8065 | } | |
8066 | { | |
8067 | #if wxUSE_UNICODE | |
8068 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8069 | #else | |
8070 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8071 | #endif | |
8072 | } | |
8073 | return resultobj; | |
8074 | fail: | |
8075 | return NULL; | |
8076 | } | |
8077 | ||
8078 | ||
c32bde28 | 8079 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8080 | PyObject *obj; |
8081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8082 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
8083 | Py_INCREF(obj); | |
8084 | return Py_BuildValue((char *)""); | |
8085 | } | |
c32bde28 | 8086 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8087 | PyObject *resultobj; |
8088 | wxString *arg1 = 0 ; | |
8089 | wxImage *arg2 = 0 ; | |
8090 | long arg3 ; | |
ae8162c8 | 8091 | bool temp1 = false ; |
d14a1e28 RD |
8092 | PyObject * obj0 = 0 ; |
8093 | PyObject * obj1 = 0 ; | |
994141e6 | 8094 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8095 | char *kwnames[] = { |
8096 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8097 | }; | |
8098 | ||
994141e6 | 8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8100 | { |
8101 | arg1 = wxString_in_helper(obj0); | |
8102 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8103 | temp1 = true; |
d14a1e28 | 8104 | } |
15afbcd0 RD |
8105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
8106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8107 | SWIG_fail; | |
d14a1e28 | 8108 | if (arg2 == NULL) { |
15afbcd0 RD |
8109 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8110 | SWIG_fail; | |
994141e6 | 8111 | } |
c32bde28 | 8112 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8113 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8114 | { |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8117 | ||
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) SWIG_fail; | |
8120 | } | |
8121 | Py_INCREF(Py_None); resultobj = Py_None; | |
8122 | { | |
8123 | if (temp1) | |
8124 | delete arg1; | |
8125 | } | |
8126 | return resultobj; | |
8127 | fail: | |
8128 | { | |
8129 | if (temp1) | |
8130 | delete arg1; | |
8131 | } | |
8132 | return NULL; | |
8133 | } | |
8134 | ||
8135 | ||
c32bde28 | 8136 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8137 | PyObject *resultobj; |
8138 | wxString *arg1 = 0 ; | |
8139 | wxBitmap *arg2 = 0 ; | |
8140 | long arg3 ; | |
ae8162c8 | 8141 | bool temp1 = false ; |
d14a1e28 RD |
8142 | PyObject * obj0 = 0 ; |
8143 | PyObject * obj1 = 0 ; | |
994141e6 | 8144 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8145 | char *kwnames[] = { |
8146 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8147 | }; | |
8148 | ||
994141e6 | 8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8150 | { |
8151 | arg1 = wxString_in_helper(obj0); | |
8152 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8153 | temp1 = true; |
d14a1e28 | 8154 | } |
15afbcd0 RD |
8155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
8156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8157 | SWIG_fail; | |
d14a1e28 | 8158 | if (arg2 == NULL) { |
15afbcd0 RD |
8159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8160 | SWIG_fail; | |
994141e6 | 8161 | } |
c32bde28 | 8162 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8163 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8164 | { |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | Py_INCREF(Py_None); resultobj = Py_None; | |
8172 | { | |
8173 | if (temp1) | |
8174 | delete arg1; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp1) | |
8180 | delete arg1; | |
8181 | } | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
c32bde28 | 8186 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8187 | PyObject *resultobj; |
8188 | wxString *arg1 = 0 ; | |
8189 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 8190 | bool temp1 = false ; |
d14a1e28 RD |
8191 | PyObject * obj0 = 0 ; |
8192 | PyObject * obj1 = 0 ; | |
8193 | char *kwnames[] = { | |
8194 | (char *) "filename",(char *) "data", NULL | |
8195 | }; | |
8196 | ||
8197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8198 | { | |
8199 | arg1 = wxString_in_helper(obj0); | |
8200 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8201 | temp1 = true; |
d14a1e28 RD |
8202 | } |
8203 | arg2 = obj1; | |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8207 | ||
8208 | wxPyEndAllowThreads(__tstate); | |
8209 | if (PyErr_Occurred()) SWIG_fail; | |
8210 | } | |
8211 | Py_INCREF(Py_None); resultobj = Py_None; | |
8212 | { | |
8213 | if (temp1) | |
8214 | delete arg1; | |
8215 | } | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | { | |
8219 | if (temp1) | |
8220 | delete arg1; | |
8221 | } | |
8222 | return NULL; | |
8223 | } | |
8224 | ||
8225 | ||
c32bde28 | 8226 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8227 | PyObject *resultobj; |
8228 | wxMemoryFSHandler *result; | |
8229 | char *kwnames[] = { | |
8230 | NULL | |
8231 | }; | |
8232 | ||
8233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8234 | { | |
8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8236 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8237 | ||
8238 | wxPyEndAllowThreads(__tstate); | |
8239 | if (PyErr_Occurred()) SWIG_fail; | |
8240 | } | |
15afbcd0 | 8241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
8242 | return resultobj; |
8243 | fail: | |
8244 | return NULL; | |
8245 | } | |
8246 | ||
8247 | ||
c32bde28 | 8248 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8249 | PyObject *resultobj; |
8250 | wxString *arg1 = 0 ; | |
ae8162c8 | 8251 | bool temp1 = false ; |
d14a1e28 RD |
8252 | PyObject * obj0 = 0 ; |
8253 | char *kwnames[] = { | |
8254 | (char *) "filename", NULL | |
8255 | }; | |
8256 | ||
8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8258 | { | |
8259 | arg1 = wxString_in_helper(obj0); | |
8260 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8261 | temp1 = true; |
d14a1e28 RD |
8262 | } |
8263 | { | |
8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8265 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8266 | ||
8267 | wxPyEndAllowThreads(__tstate); | |
8268 | if (PyErr_Occurred()) SWIG_fail; | |
8269 | } | |
8270 | Py_INCREF(Py_None); resultobj = Py_None; | |
8271 | { | |
8272 | if (temp1) | |
8273 | delete arg1; | |
8274 | } | |
8275 | return resultobj; | |
8276 | fail: | |
8277 | { | |
8278 | if (temp1) | |
8279 | delete arg1; | |
8280 | } | |
8281 | return NULL; | |
8282 | } | |
8283 | ||
8284 | ||
c32bde28 | 8285 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8286 | PyObject *resultobj; |
8287 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8288 | wxString *arg2 = 0 ; | |
8289 | bool result; | |
ae8162c8 | 8290 | bool temp2 = false ; |
d14a1e28 RD |
8291 | PyObject * obj0 = 0 ; |
8292 | PyObject * obj1 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self",(char *) "location", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8300 | { |
8301 | arg2 = wxString_in_helper(obj1); | |
8302 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8303 | temp2 = true; |
d14a1e28 RD |
8304 | } |
8305 | { | |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8308 | ||
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
4f89f6a3 RD |
8312 | { |
8313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8314 | } | |
d14a1e28 RD |
8315 | { |
8316 | if (temp2) | |
8317 | delete arg2; | |
8318 | } | |
8319 | return resultobj; | |
8320 | fail: | |
8321 | { | |
8322 | if (temp2) | |
8323 | delete arg2; | |
8324 | } | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
c32bde28 | 8329 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8330 | PyObject *resultobj; |
8331 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8332 | wxFileSystem *arg2 = 0 ; | |
8333 | wxString *arg3 = 0 ; | |
8334 | wxFSFile *result; | |
ae8162c8 | 8335 | bool temp3 = false ; |
d14a1e28 RD |
8336 | PyObject * obj0 = 0 ; |
8337 | PyObject * obj1 = 0 ; | |
8338 | PyObject * obj2 = 0 ; | |
8339 | char *kwnames[] = { | |
8340 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8341 | }; | |
8342 | ||
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8348 | SWIG_fail; | |
d14a1e28 | 8349 | if (arg2 == NULL) { |
15afbcd0 RD |
8350 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8351 | SWIG_fail; | |
d14a1e28 RD |
8352 | } |
8353 | { | |
8354 | arg3 = wxString_in_helper(obj2); | |
8355 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8356 | temp3 = true; |
d14a1e28 RD |
8357 | } |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | { | |
4cf4100f | 8366 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8367 | } |
8368 | { | |
8369 | if (temp3) | |
8370 | delete arg3; | |
8371 | } | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | { | |
8375 | if (temp3) | |
8376 | delete arg3; | |
8377 | } | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
c32bde28 | 8382 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8383 | PyObject *resultobj; |
8384 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8385 | wxString *arg2 = 0 ; | |
8386 | int arg3 = (int) 0 ; | |
8387 | wxString result; | |
ae8162c8 | 8388 | bool temp2 = false ; |
d14a1e28 RD |
8389 | PyObject * obj0 = 0 ; |
8390 | PyObject * obj1 = 0 ; | |
994141e6 | 8391 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8392 | char *kwnames[] = { |
8393 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8394 | }; | |
8395 | ||
994141e6 | 8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8399 | { |
8400 | arg2 = wxString_in_helper(obj1); | |
8401 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8402 | temp2 = true; |
d14a1e28 | 8403 | } |
994141e6 | 8404 | if (obj2) { |
c32bde28 | 8405 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 8406 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8407 | } |
d14a1e28 RD |
8408 | { |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8410 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8411 | ||
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | { | |
8416 | #if wxUSE_UNICODE | |
8417 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8418 | #else | |
8419 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8420 | #endif | |
8421 | } | |
8422 | { | |
8423 | if (temp2) | |
8424 | delete arg2; | |
8425 | } | |
8426 | return resultobj; | |
8427 | fail: | |
8428 | { | |
8429 | if (temp2) | |
8430 | delete arg2; | |
8431 | } | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
c32bde28 | 8436 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8437 | PyObject *resultobj; |
8438 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8439 | wxString result; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "self", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8448 | { |
8449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8450 | result = (arg1)->FindNext(); | |
8451 | ||
8452 | wxPyEndAllowThreads(__tstate); | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | } | |
8455 | { | |
8456 | #if wxUSE_UNICODE | |
8457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8458 | #else | |
8459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8460 | #endif | |
8461 | } | |
8462 | return resultobj; | |
8463 | fail: | |
8464 | return NULL; | |
8465 | } | |
8466 | ||
8467 | ||
c32bde28 | 8468 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8469 | PyObject *obj; |
8470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8471 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8472 | Py_INCREF(obj); | |
8473 | return Py_BuildValue((char *)""); | |
8474 | } | |
c32bde28 | 8475 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8476 | PyObject *resultobj; |
8477 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8478 | wxString result; | |
8479 | PyObject * obj0 = 0 ; | |
8480 | char *kwnames[] = { | |
8481 | (char *) "self", NULL | |
8482 | }; | |
8483 | ||
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8487 | { |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8489 | result = (arg1)->GetName(); | |
8490 | ||
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
8494 | { | |
8495 | #if wxUSE_UNICODE | |
8496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8497 | #else | |
8498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8499 | #endif | |
8500 | } | |
8501 | return resultobj; | |
8502 | fail: | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
c32bde28 | 8507 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8508 | PyObject *resultobj; |
8509 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8510 | wxString result; | |
8511 | PyObject * obj0 = 0 ; | |
8512 | char *kwnames[] = { | |
8513 | (char *) "self", NULL | |
8514 | }; | |
8515 | ||
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8519 | { |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | result = (arg1)->GetExtension(); | |
8522 | ||
8523 | wxPyEndAllowThreads(__tstate); | |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8526 | { | |
8527 | #if wxUSE_UNICODE | |
8528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8529 | #else | |
8530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8531 | #endif | |
8532 | } | |
8533 | return resultobj; | |
8534 | fail: | |
8535 | return NULL; | |
8536 | } | |
8537 | ||
8538 | ||
c32bde28 | 8539 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8540 | PyObject *resultobj; |
8541 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8542 | long result; | |
8543 | PyObject * obj0 = 0 ; | |
8544 | char *kwnames[] = { | |
8545 | (char *) "self", NULL | |
8546 | }; | |
8547 | ||
8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8551 | { |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8553 | result = (long)(arg1)->GetType(); | |
8554 | ||
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
c32bde28 | 8558 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8559 | return resultobj; |
8560 | fail: | |
8561 | return NULL; | |
8562 | } | |
8563 | ||
8564 | ||
c32bde28 | 8565 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8566 | PyObject *resultobj; |
8567 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8568 | wxString result; | |
8569 | PyObject * obj0 = 0 ; | |
8570 | char *kwnames[] = { | |
8571 | (char *) "self", NULL | |
8572 | }; | |
8573 | ||
8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8577 | { |
8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8579 | result = (arg1)->GetMimeType(); | |
8580 | ||
8581 | wxPyEndAllowThreads(__tstate); | |
8582 | if (PyErr_Occurred()) SWIG_fail; | |
8583 | } | |
8584 | { | |
8585 | #if wxUSE_UNICODE | |
8586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8587 | #else | |
8588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8589 | #endif | |
8590 | } | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
c32bde28 | 8597 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8598 | PyObject *resultobj; |
8599 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8600 | wxString *arg2 = 0 ; | |
8601 | bool result; | |
ae8162c8 | 8602 | bool temp2 = false ; |
d14a1e28 RD |
8603 | PyObject * obj0 = 0 ; |
8604 | PyObject * obj1 = 0 ; | |
8605 | char *kwnames[] = { | |
8606 | (char *) "self",(char *) "name", NULL | |
8607 | }; | |
8608 | ||
8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8612 | { |
8613 | arg2 = wxString_in_helper(obj1); | |
8614 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8615 | temp2 = true; |
d14a1e28 RD |
8616 | } |
8617 | { | |
8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8619 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8620 | ||
8621 | wxPyEndAllowThreads(__tstate); | |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8623 | } | |
4f89f6a3 RD |
8624 | { |
8625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8626 | } | |
d14a1e28 RD |
8627 | { |
8628 | if (temp2) | |
8629 | delete arg2; | |
8630 | } | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | { | |
8634 | if (temp2) | |
8635 | delete arg2; | |
8636 | } | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
c32bde28 | 8641 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8642 | PyObject *resultobj; |
8643 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8644 | wxString *arg2 = 0 ; | |
ae8162c8 | 8645 | bool temp2 = false ; |
d14a1e28 RD |
8646 | PyObject * obj0 = 0 ; |
8647 | PyObject * obj1 = 0 ; | |
8648 | char *kwnames[] = { | |
8649 | (char *) "self",(char *) "name", NULL | |
8650 | }; | |
8651 | ||
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8655 | { |
8656 | arg2 = wxString_in_helper(obj1); | |
8657 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8658 | temp2 = true; |
d14a1e28 RD |
8659 | } |
8660 | { | |
8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8662 | (arg1)->SetName((wxString const &)*arg2); | |
8663 | ||
8664 | wxPyEndAllowThreads(__tstate); | |
8665 | if (PyErr_Occurred()) SWIG_fail; | |
8666 | } | |
8667 | Py_INCREF(Py_None); resultobj = Py_None; | |
8668 | { | |
8669 | if (temp2) | |
8670 | delete arg2; | |
8671 | } | |
8672 | return resultobj; | |
8673 | fail: | |
8674 | { | |
8675 | if (temp2) | |
8676 | delete arg2; | |
8677 | } | |
8678 | return NULL; | |
8679 | } | |
8680 | ||
8681 | ||
c32bde28 | 8682 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8683 | PyObject *resultobj; |
8684 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8685 | wxString *arg2 = 0 ; | |
ae8162c8 | 8686 | bool temp2 = false ; |
d14a1e28 RD |
8687 | PyObject * obj0 = 0 ; |
8688 | PyObject * obj1 = 0 ; | |
8689 | char *kwnames[] = { | |
8690 | (char *) "self",(char *) "extension", NULL | |
8691 | }; | |
8692 | ||
8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8696 | { |
8697 | arg2 = wxString_in_helper(obj1); | |
8698 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8699 | temp2 = true; |
d14a1e28 RD |
8700 | } |
8701 | { | |
8702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8703 | (arg1)->SetExtension((wxString const &)*arg2); | |
8704 | ||
8705 | wxPyEndAllowThreads(__tstate); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | Py_INCREF(Py_None); resultobj = Py_None; | |
8709 | { | |
8710 | if (temp2) | |
8711 | delete arg2; | |
8712 | } | |
8713 | return resultobj; | |
8714 | fail: | |
8715 | { | |
8716 | if (temp2) | |
8717 | delete arg2; | |
8718 | } | |
8719 | return NULL; | |
8720 | } | |
8721 | ||
8722 | ||
c32bde28 | 8723 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8724 | PyObject *resultobj; |
8725 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8726 | long arg2 ; | |
8727 | PyObject * obj0 = 0 ; | |
994141e6 | 8728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8729 | char *kwnames[] = { |
8730 | (char *) "self",(char *) "type", NULL | |
8731 | }; | |
8732 | ||
994141e6 | 8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8736 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8737 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8738 | { |
8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8740 | (arg1)->SetType(arg2); | |
8741 | ||
8742 | wxPyEndAllowThreads(__tstate); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | Py_INCREF(Py_None); resultobj = Py_None; | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
c32bde28 | 8752 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8753 | PyObject *resultobj; |
8754 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8755 | wxString *arg2 = 0 ; | |
ae8162c8 | 8756 | bool temp2 = false ; |
d14a1e28 RD |
8757 | PyObject * obj0 = 0 ; |
8758 | PyObject * obj1 = 0 ; | |
8759 | char *kwnames[] = { | |
8760 | (char *) "self",(char *) "mimetype", NULL | |
8761 | }; | |
8762 | ||
8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8766 | { |
8767 | arg2 = wxString_in_helper(obj1); | |
8768 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8769 | temp2 = true; |
d14a1e28 RD |
8770 | } |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8774 | ||
8775 | wxPyEndAllowThreads(__tstate); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
8778 | Py_INCREF(Py_None); resultobj = Py_None; | |
8779 | { | |
8780 | if (temp2) | |
8781 | delete arg2; | |
8782 | } | |
8783 | return resultobj; | |
8784 | fail: | |
8785 | { | |
8786 | if (temp2) | |
8787 | delete arg2; | |
8788 | } | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
c32bde28 | 8793 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8794 | PyObject *obj; |
8795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8796 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8797 | Py_INCREF(obj); | |
8798 | return Py_BuildValue((char *)""); | |
8799 | } | |
c32bde28 | 8800 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8801 | PyObject *resultobj; |
8802 | wxImageHistogram *result; | |
8803 | char *kwnames[] = { | |
8804 | NULL | |
8805 | }; | |
8806 | ||
8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8811 | ||
8812 | wxPyEndAllowThreads(__tstate); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
15afbcd0 | 8815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8816 | return resultobj; |
8817 | fail: | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
c32bde28 | 8822 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8823 | PyObject *resultobj; |
8824 | unsigned char arg1 ; | |
8825 | unsigned char arg2 ; | |
8826 | unsigned char arg3 ; | |
8827 | unsigned long result; | |
8828 | PyObject * obj0 = 0 ; | |
8829 | PyObject * obj1 = 0 ; | |
8830 | PyObject * obj2 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 8836 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
15afbcd0 | 8837 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8838 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 8839 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8840 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 8841 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8842 | { |
8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8844 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8845 | ||
8846 | wxPyEndAllowThreads(__tstate); | |
8847 | if (PyErr_Occurred()) SWIG_fail; | |
8848 | } | |
c32bde28 | 8849 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
8850 | return resultobj; |
8851 | fail: | |
8852 | return NULL; | |
8853 | } | |
8854 | ||
8855 | ||
c32bde28 | 8856 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8857 | PyObject *resultobj; |
8858 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8859 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8860 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8861 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8862 | unsigned char arg5 = (unsigned char) 1 ; | |
8863 | unsigned char arg6 = (unsigned char) 0 ; | |
8864 | unsigned char arg7 = (unsigned char) 0 ; | |
8865 | bool result; | |
8866 | unsigned char temp2 ; | |
c32bde28 | 8867 | int res2 = 0 ; |
d14a1e28 | 8868 | unsigned char temp3 ; |
c32bde28 | 8869 | int res3 = 0 ; |
d14a1e28 | 8870 | unsigned char temp4 ; |
c32bde28 | 8871 | int res4 = 0 ; |
d14a1e28 RD |
8872 | PyObject * obj0 = 0 ; |
8873 | PyObject * obj1 = 0 ; | |
8874 | PyObject * obj2 = 0 ; | |
8875 | PyObject * obj3 = 0 ; | |
8876 | char *kwnames[] = { | |
8877 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8878 | }; | |
8879 | ||
c32bde28 RD |
8880 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8881 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8882 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8886 | if (obj1) { |
c32bde28 | 8887 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 8888 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8889 | } |
8890 | if (obj2) { | |
c32bde28 | 8891 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 8892 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8893 | } |
8894 | if (obj3) { | |
c32bde28 | 8895 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 8896 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8897 | } |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
4f89f6a3 RD |
8905 | { |
8906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8907 | } | |
c32bde28 RD |
8908 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8909 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8910 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8911 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8912 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8913 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d14a1e28 RD |
8914 | return resultobj; |
8915 | fail: | |
8916 | return NULL; | |
8917 | } | |
8918 | ||
8919 | ||
c32bde28 | 8920 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8921 | PyObject *obj; |
8922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8923 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8924 | Py_INCREF(obj); | |
8925 | return Py_BuildValue((char *)""); | |
8926 | } | |
c32bde28 | 8927 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8928 | PyObject *resultobj; |
8929 | wxString *arg1 = 0 ; | |
8930 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8931 | int arg3 = (int) -1 ; | |
8932 | wxImage *result; | |
ae8162c8 | 8933 | bool temp1 = false ; |
d14a1e28 | 8934 | PyObject * obj0 = 0 ; |
994141e6 RD |
8935 | PyObject * obj1 = 0 ; |
8936 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8937 | char *kwnames[] = { |
8938 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8939 | }; | |
8940 | ||
994141e6 | 8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8942 | { |
8943 | arg1 = wxString_in_helper(obj0); | |
8944 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8945 | temp1 = true; |
d14a1e28 | 8946 | } |
994141e6 | 8947 | if (obj1) { |
c32bde28 | 8948 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8949 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
8950 | } |
8951 | if (obj2) { | |
c32bde28 | 8952 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 8953 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8954 | } |
d14a1e28 RD |
8955 | { |
8956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8957 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8958 | ||
8959 | wxPyEndAllowThreads(__tstate); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | } | |
15afbcd0 | 8962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8963 | { |
8964 | if (temp1) | |
8965 | delete arg1; | |
8966 | } | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | { | |
8970 | if (temp1) | |
8971 | delete arg1; | |
8972 | } | |
8973 | return NULL; | |
8974 | } | |
8975 | ||
8976 | ||
c32bde28 | 8977 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8978 | PyObject *resultobj; |
8979 | wxImage *arg1 = (wxImage *) 0 ; | |
8980 | PyObject * obj0 = 0 ; | |
8981 | char *kwnames[] = { | |
8982 | (char *) "self", NULL | |
8983 | }; | |
8984 | ||
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8988 | { |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | delete arg1; | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | Py_INCREF(Py_None); resultobj = Py_None; | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
c32bde28 | 9002 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9003 | PyObject *resultobj; |
9004 | wxString *arg1 = 0 ; | |
9005 | wxString *arg2 = 0 ; | |
9006 | int arg3 = (int) -1 ; | |
9007 | wxImage *result; | |
ae8162c8 RD |
9008 | bool temp1 = false ; |
9009 | bool temp2 = false ; | |
d14a1e28 RD |
9010 | PyObject * obj0 = 0 ; |
9011 | PyObject * obj1 = 0 ; | |
994141e6 | 9012 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9013 | char *kwnames[] = { |
9014 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9015 | }; | |
9016 | ||
994141e6 | 9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9018 | { |
9019 | arg1 = wxString_in_helper(obj0); | |
9020 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9021 | temp1 = true; |
d14a1e28 RD |
9022 | } |
9023 | { | |
9024 | arg2 = wxString_in_helper(obj1); | |
9025 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9026 | temp2 = true; |
d14a1e28 | 9027 | } |
994141e6 | 9028 | if (obj2) { |
c32bde28 | 9029 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9030 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9031 | } |
d14a1e28 RD |
9032 | { |
9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9034 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9035 | ||
9036 | wxPyEndAllowThreads(__tstate); | |
9037 | if (PyErr_Occurred()) SWIG_fail; | |
9038 | } | |
15afbcd0 | 9039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9040 | { |
9041 | if (temp1) | |
9042 | delete arg1; | |
9043 | } | |
9044 | { | |
9045 | if (temp2) | |
9046 | delete arg2; | |
9047 | } | |
9048 | return resultobj; | |
9049 | fail: | |
9050 | { | |
9051 | if (temp1) | |
9052 | delete arg1; | |
9053 | } | |
9054 | { | |
9055 | if (temp2) | |
9056 | delete arg2; | |
9057 | } | |
9058 | return NULL; | |
9059 | } | |
9060 | ||
9061 | ||
c32bde28 | 9062 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9063 | PyObject *resultobj; |
9064 | wxInputStream *arg1 = 0 ; | |
9065 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9066 | int arg3 = (int) -1 ; | |
9067 | wxImage *result; | |
9068 | wxPyInputStream *temp1 ; | |
9069 | bool created1 ; | |
9070 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9071 | PyObject * obj1 = 0 ; |
9072 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9073 | char *kwnames[] = { |
9074 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
9075 | }; | |
9076 | ||
994141e6 | 9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9078 | { |
9079 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9080 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9081 | created1 = false; |
d14a1e28 RD |
9082 | } else { |
9083 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9084 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 RD |
9085 | if (arg1 == NULL) { |
9086 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9087 | SWIG_fail; | |
9088 | } | |
ae8162c8 | 9089 | created1 = true; |
d14a1e28 RD |
9090 | } |
9091 | } | |
994141e6 | 9092 | if (obj1) { |
c32bde28 | 9093 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9094 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9095 | } |
9096 | if (obj2) { | |
c32bde28 | 9097 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9098 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9099 | } |
d14a1e28 RD |
9100 | { |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
15afbcd0 | 9107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9108 | { |
9109 | if (created1) | |
9110 | delete arg1; | |
9111 | } | |
9112 | return resultobj; | |
9113 | fail: | |
9114 | { | |
9115 | if (created1) | |
9116 | delete arg1; | |
9117 | } | |
9118 | return NULL; | |
9119 | } | |
9120 | ||
9121 | ||
c32bde28 | 9122 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9123 | PyObject *resultobj; |
9124 | wxInputStream *arg1 = 0 ; | |
9125 | wxString *arg2 = 0 ; | |
9126 | int arg3 = (int) -1 ; | |
9127 | wxImage *result; | |
9128 | wxPyInputStream *temp1 ; | |
9129 | bool created1 ; | |
ae8162c8 | 9130 | bool temp2 = false ; |
d14a1e28 RD |
9131 | PyObject * obj0 = 0 ; |
9132 | PyObject * obj1 = 0 ; | |
994141e6 | 9133 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9134 | char *kwnames[] = { |
9135 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9136 | }; | |
9137 | ||
994141e6 | 9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9139 | { |
9140 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9141 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9142 | created1 = false; |
d14a1e28 RD |
9143 | } else { |
9144 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9145 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 RD |
9146 | if (arg1 == NULL) { |
9147 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9148 | SWIG_fail; | |
9149 | } | |
ae8162c8 | 9150 | created1 = true; |
d14a1e28 RD |
9151 | } |
9152 | } | |
9153 | { | |
9154 | arg2 = wxString_in_helper(obj1); | |
9155 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9156 | temp2 = true; |
d14a1e28 | 9157 | } |
994141e6 | 9158 | if (obj2) { |
c32bde28 | 9159 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9160 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9161 | } |
d14a1e28 RD |
9162 | { |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
15afbcd0 | 9169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9170 | { |
9171 | if (created1) | |
9172 | delete arg1; | |
9173 | } | |
9174 | { | |
9175 | if (temp2) | |
9176 | delete arg2; | |
9177 | } | |
9178 | return resultobj; | |
9179 | fail: | |
9180 | { | |
9181 | if (created1) | |
9182 | delete arg1; | |
9183 | } | |
9184 | { | |
9185 | if (temp2) | |
9186 | delete arg2; | |
9187 | } | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
c32bde28 | 9192 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9193 | PyObject *resultobj; |
9194 | int arg1 = (int) 0 ; | |
9195 | int arg2 = (int) 0 ; | |
ae8162c8 | 9196 | bool arg3 = (bool) true ; |
d14a1e28 | 9197 | wxImage *result; |
994141e6 RD |
9198 | PyObject * obj0 = 0 ; |
9199 | PyObject * obj1 = 0 ; | |
d14a1e28 | 9200 | PyObject * obj2 = 0 ; |
66c033b4 RD |
9201 | char *kwnames[] = { |
9202 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9203 | }; | |
d14a1e28 | 9204 | |
66c033b4 | 9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 9206 | if (obj0) { |
c32bde28 | 9207 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9208 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
9209 | } |
9210 | if (obj1) { | |
c32bde28 | 9211 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9212 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 9213 | } |
d14a1e28 | 9214 | if (obj2) { |
c32bde28 | 9215 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 9216 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9217 | } |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 9220 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d14a1e28 RD |
9221 | |
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
15afbcd0 | 9225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9226 | return resultobj; |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
c32bde28 | 9232 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9233 | PyObject *resultobj; |
9234 | wxBitmap *arg1 = 0 ; | |
9235 | wxImage *result; | |
9236 | PyObject * obj0 = 0 ; | |
9237 | char *kwnames[] = { | |
9238 | (char *) "bitmap", NULL | |
9239 | }; | |
9240 | ||
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
9243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9244 | SWIG_fail; | |
d14a1e28 | 9245 | if (arg1 == NULL) { |
15afbcd0 RD |
9246 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9247 | SWIG_fail; | |
d14a1e28 RD |
9248 | } |
9249 | { | |
e3b71cb8 | 9250 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9252 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9255 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9256 | } |
15afbcd0 | 9257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9258 | return resultobj; |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
c32bde28 | 9264 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9265 | PyObject *resultobj; |
9266 | int arg1 ; | |
9267 | int arg2 ; | |
9268 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9269 | wxImage *result; | |
994141e6 RD |
9270 | PyObject * obj0 = 0 ; |
9271 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9272 | PyObject * obj2 = 0 ; |
9273 | char *kwnames[] = { | |
9274 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9275 | }; | |
9276 | ||
994141e6 | 9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
c32bde28 | 9278 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 9279 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9280 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
9281 | if (PyErr_Occurred()) SWIG_fail; |
9282 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9284 | { |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
15afbcd0 | 9291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9292 | return resultobj; |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
1823fbb4 RD |
9298 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9299 | PyObject *resultobj; | |
9300 | int arg1 ; | |
9301 | int arg2 ; | |
9302 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9303 | unsigned char *arg4 = (unsigned char *) 0 ; | |
9304 | wxImage *result; | |
9305 | PyObject * obj0 = 0 ; | |
9306 | PyObject * obj1 = 0 ; | |
9307 | PyObject * obj2 = 0 ; | |
9308 | PyObject * obj3 = 0 ; | |
9309 | char *kwnames[] = { | |
9310 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
9311 | }; | |
9312 | ||
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9314 | arg1 = (int)SWIG_As_int(obj0); | |
9315 | if (PyErr_Occurred()) SWIG_fail; | |
9316 | arg2 = (int)SWIG_As_int(obj1); | |
9317 | if (PyErr_Occurred()) SWIG_fail; | |
9318 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9320 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
9321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9322 | { | |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
c32bde28 | 9336 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9337 | PyObject *resultobj; |
9338 | wxImage *arg1 = (wxImage *) 0 ; | |
9339 | int arg2 ; | |
9340 | int arg3 ; | |
9341 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9342 | PyObject * obj1 = 0 ; |
9343 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9344 | char *kwnames[] = { |
9345 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9346 | }; | |
9347 | ||
994141e6 | 9348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9351 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9352 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9353 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9354 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9355 | { |
9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9357 | (arg1)->Create(arg2,arg3); | |
9358 | ||
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | Py_INCREF(Py_None); resultobj = Py_None; | |
9363 | return resultobj; | |
9364 | fail: | |
9365 | return NULL; | |
9366 | } | |
9367 | ||
9368 | ||
c32bde28 | 9369 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9370 | PyObject *resultobj; |
9371 | wxImage *arg1 = (wxImage *) 0 ; | |
9372 | PyObject * obj0 = 0 ; | |
9373 | char *kwnames[] = { | |
9374 | (char *) "self", NULL | |
9375 | }; | |
9376 | ||
9377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9380 | { |
9381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9382 | (arg1)->Destroy(); | |
9383 | ||
9384 | wxPyEndAllowThreads(__tstate); | |
9385 | if (PyErr_Occurred()) SWIG_fail; | |
9386 | } | |
9387 | Py_INCREF(Py_None); resultobj = Py_None; | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
c32bde28 | 9394 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9395 | PyObject *resultobj; |
9396 | wxImage *arg1 = (wxImage *) 0 ; | |
9397 | int arg2 ; | |
9398 | int arg3 ; | |
9399 | SwigValueWrapper< wxImage > result; | |
9400 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9401 | PyObject * obj1 = 0 ; |
9402 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9403 | char *kwnames[] = { |
9404 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9405 | }; | |
9406 | ||
994141e6 | 9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9410 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9411 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9412 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9413 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9414 | { |
9415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9416 | result = (arg1)->Scale(arg2,arg3); | |
9417 | ||
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
9421 | { | |
9422 | wxImage * resultptr; | |
9423 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9424 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9425 | } |
9426 | return resultobj; | |
9427 | fail: | |
9428 | return NULL; | |
9429 | } | |
9430 | ||
9431 | ||
c32bde28 | 9432 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9433 | PyObject *resultobj; |
9434 | wxImage *arg1 = (wxImage *) 0 ; | |
9435 | int arg2 ; | |
9436 | int arg3 ; | |
9437 | SwigValueWrapper< wxImage > result; | |
9438 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9439 | PyObject * obj1 = 0 ; |
9440 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9441 | char *kwnames[] = { |
9442 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9443 | }; | |
9444 | ||
994141e6 | 9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9448 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9449 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9450 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9451 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9452 | { |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | { | |
9460 | wxImage * resultptr; | |
9461 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9463 | } |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
c32bde28 | 9470 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9471 | PyObject *resultobj; |
9472 | wxImage *arg1 = (wxImage *) 0 ; | |
9473 | int arg2 ; | |
9474 | int arg3 ; | |
9475 | wxImage *result; | |
9476 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9477 | PyObject * obj1 = 0 ; |
9478 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9479 | char *kwnames[] = { |
9480 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9481 | }; | |
9482 | ||
994141e6 | 9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
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); |
15afbcd0 | 9487 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9488 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9490 | { |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9492 | { | |
9493 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9494 | result = (wxImage *) &_result_ref; | |
9495 | } | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
15afbcd0 | 9500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
9501 | return resultobj; |
9502 | fail: | |
9503 | return NULL; | |
9504 | } | |
9505 | ||
9506 | ||
c32bde28 | 9507 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9508 | PyObject *resultobj; |
9509 | wxImage *arg1 = (wxImage *) 0 ; | |
9510 | int arg2 ; | |
9511 | int arg3 ; | |
9512 | unsigned char arg4 ; | |
9513 | unsigned char arg5 ; | |
9514 | unsigned char arg6 ; | |
9515 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9516 | PyObject * obj1 = 0 ; |
9517 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9518 | PyObject * obj3 = 0 ; |
9519 | PyObject * obj4 = 0 ; | |
9520 | PyObject * obj5 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9523 | }; | |
9524 | ||
994141e6 | 9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9528 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9529 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9530 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9531 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9532 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 9533 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9534 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
15afbcd0 | 9535 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9536 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
15afbcd0 | 9537 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9538 | { |
9539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9540 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9541 | ||
9542 | wxPyEndAllowThreads(__tstate); | |
9543 | if (PyErr_Occurred()) SWIG_fail; | |
9544 | } | |
9545 | Py_INCREF(Py_None); resultobj = Py_None; | |
9546 | return resultobj; | |
9547 | fail: | |
9548 | return NULL; | |
9549 | } | |
9550 | ||
9551 | ||
c32bde28 | 9552 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9553 | PyObject *resultobj; |
9554 | wxImage *arg1 = (wxImage *) 0 ; | |
9555 | int arg2 ; | |
9556 | int arg3 ; | |
9557 | unsigned char result; | |
9558 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9559 | PyObject * obj1 = 0 ; |
9560 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9561 | char *kwnames[] = { |
9562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9563 | }; | |
9564 | ||
994141e6 | 9565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9568 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9569 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9570 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9571 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9572 | { |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
c32bde28 | 9579 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
9580 | return resultobj; |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
c32bde28 | 9586 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9587 | PyObject *resultobj; |
9588 | wxImage *arg1 = (wxImage *) 0 ; | |
9589 | int arg2 ; | |
9590 | int arg3 ; | |
9591 | unsigned char result; | |
9592 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9593 | PyObject * obj1 = 0 ; |
9594 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9595 | char *kwnames[] = { |
9596 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9597 | }; | |
9598 | ||
994141e6 | 9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9602 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9603 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9604 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9605 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9606 | { |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | } | |
c32bde28 | 9613 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
9614 | return resultobj; |
9615 | fail: | |
9616 | return NULL; | |
9617 | } | |
9618 | ||
9619 | ||
c32bde28 | 9620 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9621 | PyObject *resultobj; |
9622 | wxImage *arg1 = (wxImage *) 0 ; | |
9623 | int arg2 ; | |
9624 | int arg3 ; | |
9625 | unsigned char result; | |
9626 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9627 | PyObject * obj1 = 0 ; |
9628 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9629 | char *kwnames[] = { |
9630 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9631 | }; | |
9632 | ||
994141e6 | 9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9636 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9637 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9638 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9639 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9640 | { |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9642 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9643 | ||
9644 | wxPyEndAllowThreads(__tstate); | |
9645 | if (PyErr_Occurred()) SWIG_fail; | |
9646 | } | |
c32bde28 | 9647 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
9648 | return resultobj; |
9649 | fail: | |
9650 | return NULL; | |
9651 | } | |
9652 | ||
9653 | ||
c32bde28 | 9654 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9655 | PyObject *resultobj; |
9656 | wxImage *arg1 = (wxImage *) 0 ; | |
9657 | int arg2 ; | |
9658 | int arg3 ; | |
9659 | unsigned char arg4 ; | |
9660 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9661 | PyObject * obj1 = 0 ; |
9662 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9663 | PyObject * obj3 = 0 ; |
9664 | char *kwnames[] = { | |
9665 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9666 | }; | |
9667 | ||
994141e6 | 9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9671 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9672 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9673 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9674 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9675 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 9676 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9677 | { |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | Py_INCREF(Py_None); resultobj = Py_None; | |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
c32bde28 | 9691 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9692 | PyObject *resultobj; |
9693 | wxImage *arg1 = (wxImage *) 0 ; | |
9694 | int arg2 ; | |
9695 | int arg3 ; | |
9696 | unsigned char result; | |
9697 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9698 | PyObject * obj1 = 0 ; |
9699 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9700 | char *kwnames[] = { |
9701 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9702 | }; | |
9703 | ||
994141e6 | 9704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9707 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 9708 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9709 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 9710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9711 | { |
9712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9713 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9714 | ||
9715 | wxPyEndAllowThreads(__tstate); | |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
c32bde28 | 9718 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
9719 | return resultobj; |
9720 | fail: | |
9721 | return NULL; | |
9722 | } | |
9723 | ||
9724 | ||
c32bde28 | 9725 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9726 | PyObject *resultobj; |
9727 | wxImage *arg1 = (wxImage *) 0 ; | |
9728 | bool result; | |
9729 | PyObject * obj0 = 0 ; | |
9730 | char *kwnames[] = { | |
9731 | (char *) "self", NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9737 | { |
9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9739 | result = (bool)(arg1)->HasAlpha(); | |
9740 | ||
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
4f89f6a3 RD |
9744 | { |
9745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9746 | } | |
d14a1e28 RD |
9747 | return resultobj; |
9748 | fail: | |
9749 | return NULL; | |
9750 | } | |
9751 | ||
9752 | ||
c32bde28 | 9753 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9754 | PyObject *resultobj; |
9755 | wxImage *arg1 = (wxImage *) 0 ; | |
9756 | byte *arg2 = (byte *) 0 ; | |
9757 | byte *arg3 = (byte *) 0 ; | |
9758 | byte *arg4 = (byte *) 0 ; | |
9759 | byte arg5 = (byte) 0 ; | |
9760 | byte arg6 = (byte) 0 ; | |
9761 | byte arg7 = (byte) 0 ; | |
9762 | bool result; | |
9763 | byte temp2 ; | |
c32bde28 | 9764 | int res2 = 0 ; |
d14a1e28 | 9765 | byte temp3 ; |
c32bde28 | 9766 | int res3 = 0 ; |
d14a1e28 | 9767 | byte temp4 ; |
c32bde28 | 9768 | int res4 = 0 ; |
d14a1e28 RD |
9769 | PyObject * obj0 = 0 ; |
9770 | PyObject * obj1 = 0 ; | |
9771 | PyObject * obj2 = 0 ; | |
9772 | PyObject * obj3 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9775 | }; | |
9776 | ||
c32bde28 RD |
9777 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9778 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9779 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9783 | if (obj1) { |
c32bde28 | 9784 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 9785 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9786 | } |
9787 | if (obj2) { | |
c32bde28 | 9788 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 9789 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9790 | } |
9791 | if (obj3) { | |
c32bde28 | 9792 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 9793 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9794 | } |
9795 | { | |
9796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9797 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9798 | ||
9799 | wxPyEndAllowThreads(__tstate); | |
9800 | if (PyErr_Occurred()) SWIG_fail; | |
9801 | } | |
4f89f6a3 RD |
9802 | { |
9803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9804 | } | |
c32bde28 RD |
9805 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9806 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9807 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9808 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9809 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9810 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d14a1e28 RD |
9811 | return resultobj; |
9812 | fail: | |
9813 | return NULL; | |
9814 | } | |
9815 | ||
9816 | ||
c32bde28 | 9817 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9818 | PyObject *resultobj; |
9819 | wxImage *arg1 = (wxImage *) 0 ; | |
9820 | byte arg2 = (byte) 128 ; | |
9821 | bool result; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | PyObject * obj1 = 0 ; | |
9824 | char *kwnames[] = { | |
9825 | (char *) "self",(char *) "threshold", NULL | |
9826 | }; | |
9827 | ||
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9831 | if (obj1) { | |
c32bde28 | 9832 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9833 | if (PyErr_Occurred()) SWIG_fail; |
9834 | } | |
9835 | { | |
9836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9837 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9838 | ||
9839 | wxPyEndAllowThreads(__tstate); | |
9840 | if (PyErr_Occurred()) SWIG_fail; | |
9841 | } | |
9842 | { | |
9843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9844 | } | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
8fb0e70a RD |
9851 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9852 | PyObject *resultobj; | |
9853 | wxImage *arg1 = (wxImage *) 0 ; | |
9854 | unsigned char arg2 ; | |
9855 | unsigned char arg3 ; | |
9856 | unsigned char arg4 ; | |
9857 | bool result; | |
9858 | PyObject * obj0 = 0 ; | |
9859 | PyObject * obj1 = 0 ; | |
9860 | PyObject * obj2 = 0 ; | |
9861 | PyObject * obj3 = 0 ; | |
9862 | char *kwnames[] = { | |
9863 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9864 | }; | |
9865 | ||
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9869 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); | |
9870 | if (PyErr_Occurred()) SWIG_fail; | |
9871 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); | |
9874 | if (PyErr_Occurred()) SWIG_fail; | |
9875 | { | |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9884 | } | |
9885 | return resultobj; | |
9886 | fail: | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
c32bde28 | 9891 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9892 | PyObject *resultobj; |
9893 | wxImage *arg1 = (wxImage *) 0 ; | |
9894 | wxImage *arg2 = 0 ; | |
9895 | byte arg3 ; | |
9896 | byte arg4 ; | |
9897 | byte arg5 ; | |
9898 | bool result; | |
9899 | PyObject * obj0 = 0 ; | |
9900 | PyObject * obj1 = 0 ; | |
9901 | PyObject * obj2 = 0 ; | |
9902 | PyObject * obj3 = 0 ; | |
9903 | PyObject * obj4 = 0 ; | |
9904 | char *kwnames[] = { | |
9905 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9906 | }; | |
9907 | ||
9908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
9909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9913 | SWIG_fail; | |
d14a1e28 | 9914 | if (arg2 == NULL) { |
15afbcd0 RD |
9915 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9916 | SWIG_fail; | |
a41e16b6 | 9917 | } |
c32bde28 | 9918 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 9919 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9920 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 9921 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9922 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
15afbcd0 | 9923 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9924 | { |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9927 | ||
9928 | wxPyEndAllowThreads(__tstate); | |
9929 | if (PyErr_Occurred()) SWIG_fail; | |
9930 | } | |
4f89f6a3 RD |
9931 | { |
9932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9933 | } | |
d14a1e28 RD |
9934 | return resultobj; |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
c32bde28 | 9940 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9941 | PyObject *resultobj; |
9942 | wxString *arg1 = 0 ; | |
9943 | bool result; | |
ae8162c8 | 9944 | bool temp1 = false ; |
d14a1e28 RD |
9945 | PyObject * obj0 = 0 ; |
9946 | char *kwnames[] = { | |
9947 | (char *) "name", NULL | |
9948 | }; | |
9949 | ||
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9951 | { | |
9952 | arg1 = wxString_in_helper(obj0); | |
9953 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9954 | temp1 = true; |
d14a1e28 RD |
9955 | } |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9959 | ||
9960 | wxPyEndAllowThreads(__tstate); | |
9961 | if (PyErr_Occurred()) SWIG_fail; | |
9962 | } | |
4f89f6a3 RD |
9963 | { |
9964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9965 | } | |
d14a1e28 RD |
9966 | { |
9967 | if (temp1) | |
9968 | delete arg1; | |
9969 | } | |
9970 | return resultobj; | |
9971 | fail: | |
9972 | { | |
9973 | if (temp1) | |
9974 | delete arg1; | |
9975 | } | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
c32bde28 | 9980 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9981 | PyObject *resultobj; |
9982 | wxString *arg1 = 0 ; | |
9983 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9984 | int result; | |
ae8162c8 | 9985 | bool temp1 = false ; |
d14a1e28 | 9986 | PyObject * obj0 = 0 ; |
994141e6 | 9987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9988 | char *kwnames[] = { |
9989 | (char *) "name",(char *) "type", NULL | |
9990 | }; | |
9991 | ||
994141e6 | 9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9993 | { |
9994 | arg1 = wxString_in_helper(obj0); | |
9995 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9996 | temp1 = true; |
d14a1e28 | 9997 | } |
994141e6 | 9998 | if (obj1) { |
c32bde28 | 9999 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 10000 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10001 | } |
d14a1e28 RD |
10002 | { |
10003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10004 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
10005 | ||
10006 | wxPyEndAllowThreads(__tstate); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
c32bde28 | 10009 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10010 | { |
10011 | if (temp1) | |
10012 | delete arg1; | |
10013 | } | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | { | |
10017 | if (temp1) | |
10018 | delete arg1; | |
10019 | } | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
c32bde28 | 10024 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10025 | PyObject *resultobj; |
10026 | wxImage *arg1 = (wxImage *) 0 ; | |
10027 | wxString *arg2 = 0 ; | |
10028 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10029 | int arg4 = (int) -1 ; | |
10030 | bool result; | |
ae8162c8 | 10031 | bool temp2 = false ; |
d14a1e28 RD |
10032 | PyObject * obj0 = 0 ; |
10033 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10034 | PyObject * obj2 = 0 ; |
10035 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10036 | char *kwnames[] = { |
10037 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
10038 | }; | |
10039 | ||
994141e6 | 10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10043 | { |
10044 | arg2 = wxString_in_helper(obj1); | |
10045 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10046 | temp2 = true; |
d14a1e28 | 10047 | } |
994141e6 | 10048 | if (obj2) { |
c32bde28 | 10049 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10050 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
10051 | } |
10052 | if (obj3) { | |
c32bde28 | 10053 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10054 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10055 | } |
d14a1e28 RD |
10056 | { |
10057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10058 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
10059 | ||
10060 | wxPyEndAllowThreads(__tstate); | |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
10062 | } | |
4f89f6a3 RD |
10063 | { |
10064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10065 | } | |
d14a1e28 RD |
10066 | { |
10067 | if (temp2) | |
10068 | delete arg2; | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | { | |
10073 | if (temp2) | |
10074 | delete arg2; | |
10075 | } | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
c32bde28 | 10080 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10081 | PyObject *resultobj; |
10082 | wxImage *arg1 = (wxImage *) 0 ; | |
10083 | wxString *arg2 = 0 ; | |
10084 | wxString *arg3 = 0 ; | |
10085 | int arg4 = (int) -1 ; | |
10086 | bool result; | |
ae8162c8 RD |
10087 | bool temp2 = false ; |
10088 | bool temp3 = false ; | |
d14a1e28 RD |
10089 | PyObject * obj0 = 0 ; |
10090 | PyObject * obj1 = 0 ; | |
10091 | PyObject * obj2 = 0 ; | |
994141e6 | 10092 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10093 | char *kwnames[] = { |
10094 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10095 | }; | |
10096 | ||
994141e6 | 10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10100 | { |
10101 | arg2 = wxString_in_helper(obj1); | |
10102 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10103 | temp2 = true; |
d14a1e28 RD |
10104 | } |
10105 | { | |
10106 | arg3 = wxString_in_helper(obj2); | |
10107 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10108 | temp3 = true; |
d14a1e28 | 10109 | } |
994141e6 | 10110 | if (obj3) { |
c32bde28 | 10111 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10112 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10113 | } |
d14a1e28 RD |
10114 | { |
10115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10116 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
10117 | ||
10118 | wxPyEndAllowThreads(__tstate); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | } | |
4f89f6a3 RD |
10121 | { |
10122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10123 | } | |
d14a1e28 RD |
10124 | { |
10125 | if (temp2) | |
10126 | delete arg2; | |
10127 | } | |
10128 | { | |
10129 | if (temp3) | |
10130 | delete arg3; | |
10131 | } | |
10132 | return resultobj; | |
10133 | fail: | |
10134 | { | |
10135 | if (temp2) | |
10136 | delete arg2; | |
10137 | } | |
10138 | { | |
10139 | if (temp3) | |
10140 | delete arg3; | |
10141 | } | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
c32bde28 | 10146 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10147 | PyObject *resultobj; |
10148 | wxImage *arg1 = (wxImage *) 0 ; | |
10149 | wxString *arg2 = 0 ; | |
10150 | int arg3 ; | |
10151 | bool result; | |
ae8162c8 | 10152 | bool temp2 = false ; |
d14a1e28 RD |
10153 | PyObject * obj0 = 0 ; |
10154 | PyObject * obj1 = 0 ; | |
994141e6 | 10155 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10156 | char *kwnames[] = { |
10157 | (char *) "self",(char *) "name",(char *) "type", NULL | |
10158 | }; | |
10159 | ||
994141e6 | 10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10163 | { |
10164 | arg2 = wxString_in_helper(obj1); | |
10165 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10166 | temp2 = true; |
d14a1e28 | 10167 | } |
c32bde28 | 10168 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10169 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10170 | { |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
4f89f6a3 RD |
10177 | { |
10178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10179 | } | |
d14a1e28 RD |
10180 | { |
10181 | if (temp2) | |
10182 | delete arg2; | |
10183 | } | |
10184 | return resultobj; | |
10185 | fail: | |
10186 | { | |
10187 | if (temp2) | |
10188 | delete arg2; | |
10189 | } | |
10190 | return NULL; | |
10191 | } | |
10192 | ||
10193 | ||
c32bde28 | 10194 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10195 | PyObject *resultobj; |
10196 | wxImage *arg1 = (wxImage *) 0 ; | |
10197 | wxString *arg2 = 0 ; | |
10198 | wxString *arg3 = 0 ; | |
10199 | bool result; | |
ae8162c8 RD |
10200 | bool temp2 = false ; |
10201 | bool temp3 = false ; | |
d14a1e28 RD |
10202 | PyObject * obj0 = 0 ; |
10203 | PyObject * obj1 = 0 ; | |
10204 | PyObject * obj2 = 0 ; | |
10205 | char *kwnames[] = { | |
10206 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10207 | }; | |
10208 | ||
10209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10212 | { |
10213 | arg2 = wxString_in_helper(obj1); | |
10214 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10215 | temp2 = true; |
d14a1e28 RD |
10216 | } |
10217 | { | |
10218 | arg3 = wxString_in_helper(obj2); | |
10219 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10220 | temp3 = true; |
d14a1e28 RD |
10221 | } |
10222 | { | |
10223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10224 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10225 | ||
10226 | wxPyEndAllowThreads(__tstate); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
4f89f6a3 RD |
10229 | { |
10230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10231 | } | |
d14a1e28 RD |
10232 | { |
10233 | if (temp2) | |
10234 | delete arg2; | |
10235 | } | |
10236 | { | |
10237 | if (temp3) | |
10238 | delete arg3; | |
10239 | } | |
10240 | return resultobj; | |
10241 | fail: | |
10242 | { | |
10243 | if (temp2) | |
10244 | delete arg2; | |
10245 | } | |
10246 | { | |
10247 | if (temp3) | |
10248 | delete arg3; | |
10249 | } | |
10250 | return NULL; | |
10251 | } | |
10252 | ||
10253 | ||
c32bde28 | 10254 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10255 | PyObject *resultobj; |
10256 | wxInputStream *arg1 = 0 ; | |
10257 | bool result; | |
10258 | wxPyInputStream *temp1 ; | |
10259 | bool created1 ; | |
10260 | PyObject * obj0 = 0 ; | |
10261 | char *kwnames[] = { | |
10262 | (char *) "stream", NULL | |
10263 | }; | |
10264 | ||
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10266 | { | |
10267 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10268 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10269 | created1 = false; |
d14a1e28 RD |
10270 | } else { |
10271 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10272 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 RD |
10273 | if (arg1 == NULL) { |
10274 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10275 | SWIG_fail; | |
10276 | } | |
ae8162c8 | 10277 | created1 = true; |
d14a1e28 RD |
10278 | } |
10279 | } | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (bool)wxImage::CanRead(*arg1); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
4f89f6a3 RD |
10287 | { |
10288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10289 | } | |
d14a1e28 RD |
10290 | { |
10291 | if (created1) | |
10292 | delete arg1; | |
10293 | } | |
10294 | return resultobj; | |
10295 | fail: | |
10296 | { | |
10297 | if (created1) | |
10298 | delete arg1; | |
10299 | } | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
c32bde28 | 10304 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10305 | PyObject *resultobj; |
10306 | wxImage *arg1 = (wxImage *) 0 ; | |
10307 | wxInputStream *arg2 = 0 ; | |
10308 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10309 | int arg4 = (int) -1 ; | |
10310 | bool result; | |
10311 | wxPyInputStream *temp2 ; | |
10312 | bool created2 ; | |
10313 | PyObject * obj0 = 0 ; | |
10314 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10315 | PyObject * obj2 = 0 ; |
10316 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10317 | char *kwnames[] = { |
10318 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10319 | }; | |
10320 | ||
994141e6 | 10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10324 | { |
10325 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10326 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10327 | created2 = false; |
d14a1e28 RD |
10328 | } else { |
10329 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10330 | arg2 = wxPyCBInputStream_create(obj1, false); |
d14a1e28 RD |
10331 | if (arg2 == NULL) { |
10332 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10333 | SWIG_fail; | |
10334 | } | |
ae8162c8 | 10335 | created2 = true; |
d14a1e28 RD |
10336 | } |
10337 | } | |
994141e6 | 10338 | if (obj2) { |
c32bde28 | 10339 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10340 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
10341 | } |
10342 | if (obj3) { | |
c32bde28 | 10343 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10344 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10345 | } |
d14a1e28 RD |
10346 | { |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
4f89f6a3 RD |
10353 | { |
10354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10355 | } | |
d14a1e28 RD |
10356 | { |
10357 | if (created2) | |
10358 | delete arg2; | |
10359 | } | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | { | |
10363 | if (created2) | |
10364 | delete arg2; | |
10365 | } | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
c32bde28 | 10370 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10371 | PyObject *resultobj; |
10372 | wxImage *arg1 = (wxImage *) 0 ; | |
10373 | wxInputStream *arg2 = 0 ; | |
10374 | wxString *arg3 = 0 ; | |
10375 | int arg4 = (int) -1 ; | |
10376 | bool result; | |
10377 | wxPyInputStream *temp2 ; | |
10378 | bool created2 ; | |
ae8162c8 | 10379 | bool temp3 = false ; |
d14a1e28 RD |
10380 | PyObject * obj0 = 0 ; |
10381 | PyObject * obj1 = 0 ; | |
10382 | PyObject * obj2 = 0 ; | |
994141e6 | 10383 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10384 | char *kwnames[] = { |
10385 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10386 | }; | |
10387 | ||
994141e6 | 10388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10391 | { |
10392 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10393 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10394 | created2 = false; |
d14a1e28 RD |
10395 | } else { |
10396 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10397 | arg2 = wxPyCBInputStream_create(obj1, false); |
d14a1e28 RD |
10398 | if (arg2 == NULL) { |
10399 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10400 | SWIG_fail; | |
10401 | } | |
ae8162c8 | 10402 | created2 = true; |
d14a1e28 RD |
10403 | } |
10404 | } | |
10405 | { | |
10406 | arg3 = wxString_in_helper(obj2); | |
10407 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10408 | temp3 = true; |
d14a1e28 | 10409 | } |
994141e6 | 10410 | if (obj3) { |
c32bde28 | 10411 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10412 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10413 | } |
d14a1e28 RD |
10414 | { |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
4f89f6a3 RD |
10421 | { |
10422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10423 | } | |
d14a1e28 RD |
10424 | { |
10425 | if (created2) | |
10426 | delete arg2; | |
10427 | } | |
10428 | { | |
10429 | if (temp3) | |
10430 | delete arg3; | |
10431 | } | |
10432 | return resultobj; | |
10433 | fail: | |
10434 | { | |
10435 | if (created2) | |
10436 | delete arg2; | |
10437 | } | |
10438 | { | |
10439 | if (temp3) | |
10440 | delete arg3; | |
10441 | } | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
c32bde28 | 10446 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10447 | PyObject *resultobj; |
10448 | wxImage *arg1 = (wxImage *) 0 ; | |
10449 | bool result; | |
10450 | PyObject * obj0 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10458 | { |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | result = (bool)(arg1)->Ok(); | |
10461 | ||
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) SWIG_fail; | |
10464 | } | |
4f89f6a3 RD |
10465 | { |
10466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10467 | } | |
d14a1e28 RD |
10468 | return resultobj; |
10469 | fail: | |
10470 | return NULL; | |
10471 | } | |
10472 | ||
10473 | ||
c32bde28 | 10474 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10475 | PyObject *resultobj; |
10476 | wxImage *arg1 = (wxImage *) 0 ; | |
10477 | int result; | |
10478 | PyObject * obj0 = 0 ; | |
10479 | char *kwnames[] = { | |
10480 | (char *) "self", NULL | |
10481 | }; | |
10482 | ||
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10486 | { |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (int)(arg1)->GetWidth(); | |
10489 | ||
10490 | wxPyEndAllowThreads(__tstate); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
c32bde28 | 10493 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10494 | return resultobj; |
10495 | fail: | |
10496 | return NULL; | |
10497 | } | |
10498 | ||
10499 | ||
c32bde28 | 10500 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10501 | PyObject *resultobj; |
10502 | wxImage *arg1 = (wxImage *) 0 ; | |
10503 | int result; | |
10504 | PyObject * obj0 = 0 ; | |
10505 | char *kwnames[] = { | |
10506 | (char *) "self", NULL | |
10507 | }; | |
10508 | ||
10509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10512 | { |
10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10514 | result = (int)(arg1)->GetHeight(); | |
10515 | ||
10516 | wxPyEndAllowThreads(__tstate); | |
10517 | if (PyErr_Occurred()) SWIG_fail; | |
10518 | } | |
c32bde28 | 10519 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10520 | return resultobj; |
10521 | fail: | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
c32bde28 | 10526 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
10527 | PyObject *resultobj; |
10528 | wxImage *arg1 = (wxImage *) 0 ; | |
10529 | wxSize result; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | char *kwnames[] = { | |
10532 | (char *) "self", NULL | |
10533 | }; | |
10534 | ||
10535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10538 | { | |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | result = wxImage_GetSize(arg1); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | { | |
10546 | wxSize * resultptr; | |
10547 | resultptr = new wxSize((wxSize &) result); | |
10548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10549 | } | |
10550 | return resultobj; | |
10551 | fail: | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
c32bde28 | 10556 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10557 | PyObject *resultobj; |
10558 | wxImage *arg1 = (wxImage *) 0 ; | |
10559 | wxRect *arg2 = 0 ; | |
10560 | SwigValueWrapper< wxImage > result; | |
10561 | wxRect temp2 ; | |
10562 | PyObject * obj0 = 0 ; | |
10563 | PyObject * obj1 = 0 ; | |
10564 | char *kwnames[] = { | |
10565 | (char *) "self",(char *) "rect", NULL | |
10566 | }; | |
10567 | ||
10568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10571 | { |
10572 | arg2 = &temp2; | |
10573 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10574 | } | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | { | |
10583 | wxImage * resultptr; | |
10584 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10586 | } |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
c32bde28 | 10593 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10594 | PyObject *resultobj; |
10595 | wxImage *arg1 = (wxImage *) 0 ; | |
10596 | SwigValueWrapper< wxImage > result; | |
10597 | PyObject * obj0 = 0 ; | |
10598 | char *kwnames[] = { | |
10599 | (char *) "self", NULL | |
10600 | }; | |
10601 | ||
10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = (arg1)->Copy(); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | { | |
10613 | wxImage * resultptr; | |
10614 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10615 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10616 | } |
10617 | return resultobj; | |
10618 | fail: | |
10619 | return NULL; | |
10620 | } | |
10621 | ||
10622 | ||
c32bde28 | 10623 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10624 | PyObject *resultobj; |
10625 | wxImage *arg1 = (wxImage *) 0 ; | |
10626 | wxImage *arg2 = 0 ; | |
10627 | int arg3 ; | |
10628 | int arg4 ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10631 | PyObject * obj2 = 0 ; |
10632 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10633 | char *kwnames[] = { |
10634 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10635 | }; | |
10636 | ||
994141e6 | 10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10641 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10642 | SWIG_fail; | |
d14a1e28 | 10643 | if (arg2 == NULL) { |
15afbcd0 RD |
10644 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10645 | SWIG_fail; | |
994141e6 | 10646 | } |
c32bde28 | 10647 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10648 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10649 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10650 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10651 | { |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10654 | ||
10655 | wxPyEndAllowThreads(__tstate); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
10658 | Py_INCREF(Py_None); resultobj = Py_None; | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
c32bde28 | 10665 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10666 | PyObject *resultobj; |
10667 | wxImage *arg1 = (wxImage *) 0 ; | |
10668 | PyObject *result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "self", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10677 | { |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = (PyObject *)wxImage_GetData(arg1); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
10684 | resultobj = result; | |
10685 | return resultobj; | |
10686 | fail: | |
10687 | return NULL; | |
10688 | } | |
10689 | ||
10690 | ||
c32bde28 | 10691 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10692 | PyObject *resultobj; |
10693 | wxImage *arg1 = (wxImage *) 0 ; | |
10694 | PyObject *arg2 = (PyObject *) 0 ; | |
10695 | PyObject * obj0 = 0 ; | |
10696 | PyObject * obj1 = 0 ; | |
10697 | char *kwnames[] = { | |
10698 | (char *) "self",(char *) "data", NULL | |
10699 | }; | |
10700 | ||
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10704 | arg2 = obj1; |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | wxImage_SetData(arg1,arg2); | |
10708 | ||
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) SWIG_fail; | |
10711 | } | |
10712 | Py_INCREF(Py_None); resultobj = Py_None; | |
10713 | return resultobj; | |
10714 | fail: | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
c32bde28 | 10719 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10720 | PyObject *resultobj; |
10721 | wxImage *arg1 = (wxImage *) 0 ; | |
10722 | PyObject *result; | |
10723 | PyObject * obj0 = 0 ; | |
10724 | char *kwnames[] = { | |
10725 | (char *) "self", NULL | |
10726 | }; | |
10727 | ||
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10731 | { |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
10738 | resultobj = result; | |
10739 | return resultobj; | |
10740 | fail: | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
c32bde28 | 10745 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10746 | PyObject *resultobj; |
10747 | wxImage *arg1 = (wxImage *) 0 ; | |
10748 | PyObject *arg2 = (PyObject *) 0 ; | |
10749 | PyObject * obj0 = 0 ; | |
10750 | PyObject * obj1 = 0 ; | |
10751 | char *kwnames[] = { | |
10752 | (char *) "self",(char *) "data", NULL | |
10753 | }; | |
10754 | ||
10755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10758 | arg2 = obj1; |
10759 | { | |
10760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10761 | wxImage_SetDataBuffer(arg1,arg2); | |
10762 | ||
10763 | wxPyEndAllowThreads(__tstate); | |
10764 | if (PyErr_Occurred()) SWIG_fail; | |
10765 | } | |
10766 | Py_INCREF(Py_None); resultobj = Py_None; | |
10767 | return resultobj; | |
10768 | fail: | |
10769 | return NULL; | |
10770 | } | |
10771 | ||
10772 | ||
c32bde28 | 10773 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10774 | PyObject *resultobj; |
10775 | wxImage *arg1 = (wxImage *) 0 ; | |
10776 | PyObject *result; | |
10777 | PyObject * obj0 = 0 ; | |
10778 | char *kwnames[] = { | |
10779 | (char *) "self", NULL | |
10780 | }; | |
10781 | ||
10782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10785 | { |
10786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10787 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10788 | ||
10789 | wxPyEndAllowThreads(__tstate); | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | } | |
10792 | resultobj = result; | |
10793 | return resultobj; | |
10794 | fail: | |
10795 | return NULL; | |
10796 | } | |
10797 | ||
10798 | ||
c32bde28 | 10799 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10800 | PyObject *resultobj; |
10801 | wxImage *arg1 = (wxImage *) 0 ; | |
10802 | PyObject *arg2 = (PyObject *) 0 ; | |
10803 | PyObject * obj0 = 0 ; | |
10804 | PyObject * obj1 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self",(char *) "data", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10812 | arg2 = obj1; |
10813 | { | |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | wxImage_SetAlphaData(arg1,arg2); | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | Py_INCREF(Py_None); resultobj = Py_None; | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | return NULL; | |
10824 | } | |
10825 | ||
10826 | ||
c32bde28 | 10827 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10828 | PyObject *resultobj; |
10829 | wxImage *arg1 = (wxImage *) 0 ; | |
10830 | PyObject *result; | |
10831 | PyObject * obj0 = 0 ; | |
10832 | char *kwnames[] = { | |
10833 | (char *) "self", NULL | |
10834 | }; | |
10835 | ||
10836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10839 | { |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10842 | ||
10843 | wxPyEndAllowThreads(__tstate); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | } | |
10846 | resultobj = result; | |
10847 | return resultobj; | |
10848 | fail: | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
c32bde28 | 10853 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10854 | PyObject *resultobj; |
10855 | wxImage *arg1 = (wxImage *) 0 ; | |
10856 | PyObject *arg2 = (PyObject *) 0 ; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | PyObject * obj1 = 0 ; | |
10859 | char *kwnames[] = { | |
10860 | (char *) "self",(char *) "data", NULL | |
10861 | }; | |
10862 | ||
10863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10866 | arg2 = obj1; |
10867 | { | |
10868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10869 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10870 | ||
10871 | wxPyEndAllowThreads(__tstate); | |
10872 | if (PyErr_Occurred()) SWIG_fail; | |
10873 | } | |
10874 | Py_INCREF(Py_None); resultobj = Py_None; | |
10875 | return resultobj; | |
10876 | fail: | |
10877 | return NULL; | |
10878 | } | |
10879 | ||
10880 | ||
c32bde28 | 10881 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10882 | PyObject *resultobj; |
10883 | wxImage *arg1 = (wxImage *) 0 ; | |
10884 | unsigned char arg2 ; | |
10885 | unsigned char arg3 ; | |
10886 | unsigned char arg4 ; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | PyObject * obj1 = 0 ; | |
10889 | PyObject * obj2 = 0 ; | |
10890 | PyObject * obj3 = 0 ; | |
10891 | char *kwnames[] = { | |
10892 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10893 | }; | |
10894 | ||
10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10898 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 10899 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10900 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 10901 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10902 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 10903 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10904 | { |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | Py_INCREF(Py_None); resultobj = Py_None; | |
10912 | return resultobj; | |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
c32bde28 | 10918 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10919 | PyObject *resultobj; |
10920 | wxImage *arg1 = (wxImage *) 0 ; | |
10921 | unsigned char result; | |
10922 | PyObject * obj0 = 0 ; | |
10923 | char *kwnames[] = { | |
10924 | (char *) "self", NULL | |
10925 | }; | |
10926 | ||
10927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10930 | { |
10931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10932 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10933 | ||
10934 | wxPyEndAllowThreads(__tstate); | |
10935 | if (PyErr_Occurred()) SWIG_fail; | |
10936 | } | |
c32bde28 | 10937 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
10938 | return resultobj; |
10939 | fail: | |
10940 | return NULL; | |
10941 | } | |
10942 | ||
10943 | ||
c32bde28 | 10944 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10945 | PyObject *resultobj; |
10946 | wxImage *arg1 = (wxImage *) 0 ; | |
10947 | unsigned char result; | |
10948 | PyObject * obj0 = 0 ; | |
10949 | char *kwnames[] = { | |
10950 | (char *) "self", NULL | |
10951 | }; | |
10952 | ||
10953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10956 | { |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
c32bde28 | 10963 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
10964 | return resultobj; |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
c32bde28 | 10970 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10971 | PyObject *resultobj; |
10972 | wxImage *arg1 = (wxImage *) 0 ; | |
10973 | unsigned char result; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | char *kwnames[] = { | |
10976 | (char *) "self", NULL | |
10977 | }; | |
10978 | ||
10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10982 | { |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10985 | ||
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
c32bde28 | 10989 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d14a1e28 RD |
10990 | return resultobj; |
10991 | fail: | |
10992 | return NULL; | |
10993 | } | |
10994 | ||
10995 | ||
c32bde28 | 10996 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10997 | PyObject *resultobj; |
10998 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10999 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11000 | PyObject * obj0 = 0 ; |
11001 | PyObject * obj1 = 0 ; | |
11002 | char *kwnames[] = { | |
11003 | (char *) "self",(char *) "mask", NULL | |
11004 | }; | |
11005 | ||
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11009 | if (obj1) { |
c32bde28 | 11010 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 11011 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11012 | } |
11013 | { | |
11014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11015 | (arg1)->SetMask(arg2); | |
11016 | ||
11017 | wxPyEndAllowThreads(__tstate); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | } | |
11020 | Py_INCREF(Py_None); resultobj = Py_None; | |
11021 | return resultobj; | |
11022 | fail: | |
11023 | return NULL; | |
11024 | } | |
11025 | ||
11026 | ||
c32bde28 | 11027 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11028 | PyObject *resultobj; |
11029 | wxImage *arg1 = (wxImage *) 0 ; | |
11030 | bool result; | |
11031 | PyObject * obj0 = 0 ; | |
11032 | char *kwnames[] = { | |
11033 | (char *) "self", NULL | |
11034 | }; | |
11035 | ||
11036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11039 | { |
11040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11041 | result = (bool)(arg1)->HasMask(); | |
11042 | ||
11043 | wxPyEndAllowThreads(__tstate); | |
11044 | if (PyErr_Occurred()) SWIG_fail; | |
11045 | } | |
4f89f6a3 RD |
11046 | { |
11047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11048 | } | |
d14a1e28 RD |
11049 | return resultobj; |
11050 | fail: | |
11051 | return NULL; | |
11052 | } | |
11053 | ||
11054 | ||
c32bde28 | 11055 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11056 | PyObject *resultobj; |
11057 | wxImage *arg1 = (wxImage *) 0 ; | |
11058 | double arg2 ; | |
11059 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 11060 | bool arg4 = (bool) true ; |
d14a1e28 RD |
11061 | wxPoint *arg5 = (wxPoint *) NULL ; |
11062 | SwigValueWrapper< wxImage > result; | |
11063 | wxPoint temp3 ; | |
11064 | PyObject * obj0 = 0 ; | |
994141e6 | 11065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11066 | PyObject * obj2 = 0 ; |
11067 | PyObject * obj3 = 0 ; | |
11068 | PyObject * obj4 = 0 ; | |
11069 | char *kwnames[] = { | |
11070 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
11071 | }; | |
11072 | ||
994141e6 | 11073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11076 | arg2 = (double)SWIG_As_double(obj1); |
15afbcd0 | 11077 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11078 | { |
11079 | arg3 = &temp3; | |
11080 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11081 | } | |
11082 | if (obj3) { | |
c32bde28 | 11083 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 11084 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11085 | } |
11086 | if (obj4) { | |
15afbcd0 RD |
11087 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
11088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11089 | } |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | { | |
11098 | wxImage * resultptr; | |
11099 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 11100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11101 | } |
11102 | return resultobj; | |
11103 | fail: | |
11104 | return NULL; | |
11105 | } | |
11106 | ||
11107 | ||
c32bde28 | 11108 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11109 | PyObject *resultobj; |
11110 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11111 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11112 | SwigValueWrapper< wxImage > result; |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | char *kwnames[] = { | |
11116 | (char *) "self",(char *) "clockwise", NULL | |
11117 | }; | |
11118 | ||
11119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11122 | if (obj1) { |
c32bde28 | 11123 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 11124 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11125 | } |
11126 | { | |
11127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11128 | result = (arg1)->Rotate90(arg2); | |
11129 | ||
11130 | wxPyEndAllowThreads(__tstate); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | } | |
11133 | { | |
11134 | wxImage * resultptr; | |
11135 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 11136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11137 | } |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
c32bde28 | 11144 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11145 | PyObject *resultobj; |
11146 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11147 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11148 | SwigValueWrapper< wxImage > result; |
11149 | PyObject * obj0 = 0 ; | |
11150 | PyObject * obj1 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self",(char *) "horizontally", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11158 | if (obj1) { |
c32bde28 | 11159 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 11160 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11161 | } |
11162 | { | |
11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11164 | result = (arg1)->Mirror(arg2); | |
11165 | ||
11166 | wxPyEndAllowThreads(__tstate); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | } | |
11169 | { | |
11170 | wxImage * resultptr; | |
11171 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 11172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11173 | } |
11174 | return resultobj; | |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
c32bde28 | 11180 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11181 | PyObject *resultobj; |
11182 | wxImage *arg1 = (wxImage *) 0 ; | |
11183 | unsigned char arg2 ; | |
11184 | unsigned char arg3 ; | |
11185 | unsigned char arg4 ; | |
11186 | unsigned char arg5 ; | |
11187 | unsigned char arg6 ; | |
11188 | unsigned char arg7 ; | |
11189 | PyObject * obj0 = 0 ; | |
11190 | PyObject * obj1 = 0 ; | |
11191 | PyObject * obj2 = 0 ; | |
11192 | PyObject * obj3 = 0 ; | |
11193 | PyObject * obj4 = 0 ; | |
11194 | PyObject * obj5 = 0 ; | |
11195 | PyObject * obj6 = 0 ; | |
11196 | char *kwnames[] = { | |
11197 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15afbcd0 RD |
11201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11203 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 11204 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11205 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 11206 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11207 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 11208 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11209 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
15afbcd0 | 11210 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11211 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
15afbcd0 | 11212 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11213 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
15afbcd0 | 11214 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11215 | { |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11217 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11218 | ||
11219 | wxPyEndAllowThreads(__tstate); | |
11220 | if (PyErr_Occurred()) SWIG_fail; | |
11221 | } | |
11222 | Py_INCREF(Py_None); resultobj = Py_None; | |
11223 | return resultobj; | |
11224 | fail: | |
11225 | return NULL; | |
11226 | } | |
11227 | ||
11228 | ||
c32bde28 | 11229 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11230 | PyObject *resultobj; |
11231 | wxImage *arg1 = (wxImage *) 0 ; | |
11232 | unsigned char arg2 ; | |
11233 | unsigned char arg3 ; | |
11234 | unsigned char arg4 ; | |
11235 | SwigValueWrapper< wxImage > result; | |
11236 | PyObject * obj0 = 0 ; | |
11237 | PyObject * obj1 = 0 ; | |
11238 | PyObject * obj2 = 0 ; | |
11239 | PyObject * obj3 = 0 ; | |
11240 | char *kwnames[] = { | |
11241 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11242 | }; | |
11243 | ||
11244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11247 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 11248 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11249 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 11250 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11251 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 11252 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11253 | { |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
11260 | { | |
11261 | wxImage * resultptr; | |
11262 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 11263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11264 | } |
11265 | return resultobj; | |
11266 | fail: | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
c32bde28 | 11271 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11272 | PyObject *resultobj; |
11273 | wxImage *arg1 = (wxImage *) 0 ; | |
11274 | wxString *arg2 = 0 ; | |
11275 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
11276 | bool temp2 = false ; |
11277 | bool temp3 = false ; | |
d14a1e28 RD |
11278 | PyObject * obj0 = 0 ; |
11279 | PyObject * obj1 = 0 ; | |
11280 | PyObject * obj2 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
11286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11288 | { |
11289 | arg2 = wxString_in_helper(obj1); | |
11290 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11291 | temp2 = true; |
d14a1e28 RD |
11292 | } |
11293 | { | |
11294 | arg3 = wxString_in_helper(obj2); | |
11295 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11296 | temp3 = true; |
d14a1e28 RD |
11297 | } |
11298 | { | |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | Py_INCREF(Py_None); resultobj = Py_None; | |
11306 | { | |
11307 | if (temp2) | |
11308 | delete arg2; | |
11309 | } | |
11310 | { | |
11311 | if (temp3) | |
11312 | delete arg3; | |
11313 | } | |
11314 | return resultobj; | |
11315 | fail: | |
11316 | { | |
11317 | if (temp2) | |
11318 | delete arg2; | |
11319 | } | |
11320 | { | |
11321 | if (temp3) | |
11322 | delete arg3; | |
11323 | } | |
11324 | return NULL; | |
11325 | } | |
11326 | ||
11327 | ||
c32bde28 | 11328 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11329 | PyObject *resultobj; |
11330 | wxImage *arg1 = (wxImage *) 0 ; | |
11331 | wxString *arg2 = 0 ; | |
11332 | int arg3 ; | |
ae8162c8 | 11333 | bool temp2 = false ; |
d14a1e28 RD |
11334 | PyObject * obj0 = 0 ; |
11335 | PyObject * obj1 = 0 ; | |
994141e6 | 11336 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11337 | char *kwnames[] = { |
11338 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11339 | }; | |
11340 | ||
994141e6 | 11341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11344 | { |
11345 | arg2 = wxString_in_helper(obj1); | |
11346 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11347 | temp2 = true; |
d14a1e28 | 11348 | } |
c32bde28 | 11349 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11350 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11351 | { |
11352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11353 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11354 | ||
11355 | wxPyEndAllowThreads(__tstate); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
11357 | } | |
11358 | Py_INCREF(Py_None); resultobj = Py_None; | |
11359 | { | |
11360 | if (temp2) | |
11361 | delete arg2; | |
11362 | } | |
11363 | return resultobj; | |
11364 | fail: | |
11365 | { | |
11366 | if (temp2) | |
11367 | delete arg2; | |
11368 | } | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
c32bde28 | 11373 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11374 | PyObject *resultobj; |
11375 | wxImage *arg1 = (wxImage *) 0 ; | |
11376 | wxString *arg2 = 0 ; | |
11377 | wxString result; | |
ae8162c8 | 11378 | bool temp2 = false ; |
d14a1e28 RD |
11379 | PyObject * obj0 = 0 ; |
11380 | PyObject * obj1 = 0 ; | |
11381 | char *kwnames[] = { | |
11382 | (char *) "self",(char *) "name", NULL | |
11383 | }; | |
11384 | ||
11385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11388 | { |
11389 | arg2 = wxString_in_helper(obj1); | |
11390 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11391 | temp2 = true; |
d14a1e28 RD |
11392 | } |
11393 | { | |
11394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11395 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11396 | ||
11397 | wxPyEndAllowThreads(__tstate); | |
11398 | if (PyErr_Occurred()) SWIG_fail; | |
11399 | } | |
11400 | { | |
11401 | #if wxUSE_UNICODE | |
11402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11403 | #else | |
11404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11405 | #endif | |
11406 | } | |
11407 | { | |
11408 | if (temp2) | |
11409 | delete arg2; | |
11410 | } | |
11411 | return resultobj; | |
11412 | fail: | |
11413 | { | |
11414 | if (temp2) | |
11415 | delete arg2; | |
11416 | } | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
c32bde28 | 11421 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11422 | PyObject *resultobj; |
11423 | wxImage *arg1 = (wxImage *) 0 ; | |
11424 | wxString *arg2 = 0 ; | |
11425 | int result; | |
ae8162c8 | 11426 | bool temp2 = false ; |
d14a1e28 RD |
11427 | PyObject * obj0 = 0 ; |
11428 | PyObject * obj1 = 0 ; | |
11429 | char *kwnames[] = { | |
11430 | (char *) "self",(char *) "name", NULL | |
11431 | }; | |
11432 | ||
11433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11436 | { |
11437 | arg2 = wxString_in_helper(obj1); | |
11438 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11439 | temp2 = true; |
d14a1e28 RD |
11440 | } |
11441 | { | |
11442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11443 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11444 | ||
11445 | wxPyEndAllowThreads(__tstate); | |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
11447 | } | |
c32bde28 | 11448 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11449 | { |
11450 | if (temp2) | |
11451 | delete arg2; | |
11452 | } | |
11453 | return resultobj; | |
11454 | fail: | |
11455 | { | |
11456 | if (temp2) | |
11457 | delete arg2; | |
11458 | } | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
c32bde28 | 11463 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11464 | PyObject *resultobj; |
11465 | wxImage *arg1 = (wxImage *) 0 ; | |
11466 | wxString *arg2 = 0 ; | |
11467 | bool result; | |
ae8162c8 | 11468 | bool temp2 = false ; |
d14a1e28 RD |
11469 | PyObject * obj0 = 0 ; |
11470 | PyObject * obj1 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self",(char *) "name", NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11478 | { |
11479 | arg2 = wxString_in_helper(obj1); | |
11480 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11481 | temp2 = true; |
d14a1e28 RD |
11482 | } |
11483 | { | |
11484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11485 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11486 | ||
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
4f89f6a3 RD |
11490 | { |
11491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11492 | } | |
d14a1e28 RD |
11493 | { |
11494 | if (temp2) | |
11495 | delete arg2; | |
11496 | } | |
11497 | return resultobj; | |
11498 | fail: | |
11499 | { | |
11500 | if (temp2) | |
11501 | delete arg2; | |
11502 | } | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
c32bde28 | 11507 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11508 | PyObject *resultobj; |
11509 | wxImage *arg1 = (wxImage *) 0 ; | |
11510 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11511 | unsigned long result; | |
11512 | PyObject * obj0 = 0 ; | |
11513 | PyObject * obj1 = 0 ; | |
11514 | char *kwnames[] = { | |
11515 | (char *) "self",(char *) "stopafter", NULL | |
11516 | }; | |
11517 | ||
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11521 | if (obj1) { |
c32bde28 | 11522 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 11523 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11524 | } |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
c32bde28 | 11532 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
11533 | return resultobj; |
11534 | fail: | |
11535 | return NULL; | |
11536 | } | |
11537 | ||
11538 | ||
c32bde28 | 11539 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11540 | PyObject *resultobj; |
11541 | wxImage *arg1 = (wxImage *) 0 ; | |
11542 | wxImageHistogram *arg2 = 0 ; | |
11543 | unsigned long result; | |
11544 | PyObject * obj0 = 0 ; | |
11545 | PyObject * obj1 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self",(char *) "h", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11554 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11555 | SWIG_fail; | |
d14a1e28 | 11556 | if (arg2 == NULL) { |
15afbcd0 RD |
11557 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11558 | SWIG_fail; | |
d14a1e28 RD |
11559 | } |
11560 | { | |
11561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11562 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11563 | ||
11564 | wxPyEndAllowThreads(__tstate); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
c32bde28 | 11567 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
11568 | return resultobj; |
11569 | fail: | |
11570 | return NULL; | |
11571 | } | |
11572 | ||
11573 | ||
c32bde28 | 11574 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11575 | PyObject *resultobj; |
11576 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11577 | PyObject * obj0 = 0 ; | |
11578 | char *kwnames[] = { | |
11579 | (char *) "handler", NULL | |
11580 | }; | |
11581 | ||
11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11585 | { |
11586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11587 | wxImage::AddHandler(arg1); | |
11588 | ||
11589 | wxPyEndAllowThreads(__tstate); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | } | |
11592 | Py_INCREF(Py_None); resultobj = Py_None; | |
11593 | return resultobj; | |
11594 | fail: | |
11595 | return NULL; | |
11596 | } | |
11597 | ||
11598 | ||
c32bde28 | 11599 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11600 | PyObject *resultobj; |
11601 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11602 | PyObject * obj0 = 0 ; | |
11603 | char *kwnames[] = { | |
11604 | (char *) "handler", NULL | |
11605 | }; | |
11606 | ||
11607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11610 | { |
11611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11612 | wxImage::InsertHandler(arg1); | |
11613 | ||
11614 | wxPyEndAllowThreads(__tstate); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | } | |
11617 | Py_INCREF(Py_None); resultobj = Py_None; | |
11618 | return resultobj; | |
11619 | fail: | |
11620 | return NULL; | |
11621 | } | |
11622 | ||
11623 | ||
c32bde28 | 11624 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11625 | PyObject *resultobj; |
11626 | wxString *arg1 = 0 ; | |
11627 | bool result; | |
ae8162c8 | 11628 | bool temp1 = false ; |
d14a1e28 RD |
11629 | PyObject * obj0 = 0 ; |
11630 | char *kwnames[] = { | |
11631 | (char *) "name", NULL | |
11632 | }; | |
11633 | ||
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11635 | { | |
11636 | arg1 = wxString_in_helper(obj0); | |
11637 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11638 | temp1 = true; |
d14a1e28 RD |
11639 | } |
11640 | { | |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11643 | ||
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
4f89f6a3 RD |
11647 | { |
11648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11649 | } | |
d14a1e28 RD |
11650 | { |
11651 | if (temp1) | |
11652 | delete arg1; | |
11653 | } | |
11654 | return resultobj; | |
11655 | fail: | |
11656 | { | |
11657 | if (temp1) | |
11658 | delete arg1; | |
11659 | } | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
c32bde28 | 11664 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11665 | PyObject *resultobj; |
11666 | wxString result; | |
11667 | char *kwnames[] = { | |
11668 | NULL | |
11669 | }; | |
11670 | ||
11671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11672 | { | |
11673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11674 | result = wxImage::GetImageExtWildcard(); | |
11675 | ||
11676 | wxPyEndAllowThreads(__tstate); | |
11677 | if (PyErr_Occurred()) SWIG_fail; | |
11678 | } | |
11679 | { | |
11680 | #if wxUSE_UNICODE | |
11681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11682 | #else | |
11683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11684 | #endif | |
11685 | } | |
11686 | return resultobj; | |
11687 | fail: | |
11688 | return NULL; | |
11689 | } | |
11690 | ||
11691 | ||
c32bde28 | 11692 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11693 | PyObject *resultobj; |
11694 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 11695 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11696 | wxBitmap result; |
11697 | PyObject * obj0 = 0 ; | |
1fbf26be | 11698 | PyObject * obj1 = 0 ; |
d14a1e28 | 11699 | char *kwnames[] = { |
1fbf26be | 11700 | (char *) "self",(char *) "depth", NULL |
d14a1e28 RD |
11701 | }; |
11702 | ||
1fbf26be | 11703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fbf26be RD |
11706 | if (obj1) { |
11707 | arg2 = (int)SWIG_As_int(obj1); | |
11708 | if (PyErr_Occurred()) SWIG_fail; | |
11709 | } | |
d14a1e28 | 11710 | { |
e3b71cb8 | 11711 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 11713 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d14a1e28 RD |
11714 | |
11715 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11716 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11717 | } |
11718 | { | |
11719 | wxBitmap * resultptr; | |
11720 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11722 | } |
11723 | return resultobj; | |
11724 | fail: | |
11725 | return NULL; | |
11726 | } | |
11727 | ||
11728 | ||
c32bde28 | 11729 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11730 | PyObject *resultobj; |
11731 | wxImage *arg1 = (wxImage *) 0 ; | |
11732 | unsigned char arg2 ; | |
11733 | unsigned char arg3 ; | |
11734 | unsigned char arg4 ; | |
11735 | wxBitmap result; | |
11736 | PyObject * obj0 = 0 ; | |
11737 | PyObject * obj1 = 0 ; | |
11738 | PyObject * obj2 = 0 ; | |
11739 | PyObject * obj3 = 0 ; | |
11740 | char *kwnames[] = { | |
11741 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11742 | }; | |
11743 | ||
11744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11747 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
15afbcd0 | 11748 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11749 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
15afbcd0 | 11750 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11751 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
15afbcd0 | 11752 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11753 | { |
e3b71cb8 | 11754 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11756 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11757 | ||
11758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11759 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11760 | } |
11761 | { | |
11762 | wxBitmap * resultptr; | |
11763 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11765 | } |
11766 | return resultobj; | |
11767 | fail: | |
11768 | return NULL; | |
11769 | } | |
11770 | ||
11771 | ||
c32bde28 | 11772 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11773 | PyObject *obj; |
11774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11775 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11776 | Py_INCREF(obj); | |
11777 | return Py_BuildValue((char *)""); | |
11778 | } | |
c32bde28 | 11779 | static int _wrap_NullImage_set(PyObject *) { |
d14a1e28 RD |
11780 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11781 | return 1; | |
11782 | } | |
11783 | ||
11784 | ||
11785 | static PyObject *_wrap_NullImage_get() { | |
11786 | PyObject *pyobj; | |
11787 | ||
15afbcd0 | 11788 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11789 | return pyobj; |
11790 | } | |
11791 | ||
11792 | ||
c32bde28 | 11793 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d14a1e28 RD |
11794 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11795 | return 1; | |
11796 | } | |
11797 | ||
11798 | ||
11799 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11800 | PyObject *pyobj; | |
11801 | ||
11802 | { | |
11803 | #if wxUSE_UNICODE | |
11804 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11805 | #else | |
11806 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11807 | #endif | |
11808 | } | |
11809 | return pyobj; | |
11810 | } | |
11811 | ||
11812 | ||
c32bde28 | 11813 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d14a1e28 RD |
11814 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11815 | return 1; | |
11816 | } | |
11817 | ||
11818 | ||
11819 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11820 | PyObject *pyobj; | |
11821 | ||
11822 | { | |
11823 | #if wxUSE_UNICODE | |
11824 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11825 | #else | |
11826 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11827 | #endif | |
11828 | } | |
11829 | return pyobj; | |
11830 | } | |
11831 | ||
11832 | ||
c32bde28 | 11833 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d14a1e28 RD |
11834 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11835 | return 1; | |
11836 | } | |
11837 | ||
11838 | ||
11839 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11840 | PyObject *pyobj; | |
11841 | ||
11842 | { | |
11843 | #if wxUSE_UNICODE | |
11844 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11845 | #else | |
11846 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11847 | #endif | |
11848 | } | |
11849 | return pyobj; | |
11850 | } | |
11851 | ||
11852 | ||
c32bde28 | 11853 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d14a1e28 RD |
11854 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11855 | return 1; | |
11856 | } | |
11857 | ||
11858 | ||
11859 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11860 | PyObject *pyobj; | |
11861 | ||
11862 | { | |
11863 | #if wxUSE_UNICODE | |
11864 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11865 | #else | |
11866 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11867 | #endif | |
11868 | } | |
11869 | return pyobj; | |
11870 | } | |
11871 | ||
11872 | ||
c32bde28 | 11873 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d14a1e28 RD |
11874 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11875 | return 1; | |
11876 | } | |
11877 | ||
11878 | ||
11879 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11880 | PyObject *pyobj; | |
11881 | ||
11882 | { | |
11883 | #if wxUSE_UNICODE | |
11884 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11885 | #else | |
11886 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11887 | #endif | |
11888 | } | |
11889 | return pyobj; | |
11890 | } | |
11891 | ||
11892 | ||
c32bde28 | 11893 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11894 | PyObject *resultobj; |
11895 | wxBMPHandler *result; | |
11896 | char *kwnames[] = { | |
11897 | NULL | |
11898 | }; | |
11899 | ||
11900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11901 | { | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11904 | ||
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
15afbcd0 | 11908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11909 | return resultobj; |
11910 | fail: | |
11911 | return NULL; | |
11912 | } | |
11913 | ||
11914 | ||
c32bde28 | 11915 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11916 | PyObject *obj; |
11917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11918 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11919 | Py_INCREF(obj); | |
11920 | return Py_BuildValue((char *)""); | |
11921 | } | |
c32bde28 | 11922 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11923 | PyObject *resultobj; |
11924 | wxICOHandler *result; | |
11925 | char *kwnames[] = { | |
11926 | NULL | |
11927 | }; | |
11928 | ||
11929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11930 | { | |
11931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11932 | result = (wxICOHandler *)new wxICOHandler(); | |
11933 | ||
11934 | wxPyEndAllowThreads(__tstate); | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | } | |
15afbcd0 | 11937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11938 | return resultobj; |
11939 | fail: | |
11940 | return NULL; | |
11941 | } | |
11942 | ||
11943 | ||
c32bde28 | 11944 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11945 | PyObject *obj; |
11946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11947 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11948 | Py_INCREF(obj); | |
11949 | return Py_BuildValue((char *)""); | |
11950 | } | |
c32bde28 | 11951 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11952 | PyObject *resultobj; |
11953 | wxCURHandler *result; | |
11954 | char *kwnames[] = { | |
11955 | NULL | |
11956 | }; | |
11957 | ||
11958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11959 | { | |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | result = (wxCURHandler *)new wxCURHandler(); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
15afbcd0 | 11966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11967 | return resultobj; |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
c32bde28 | 11973 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11974 | PyObject *obj; |
11975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11976 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11977 | Py_INCREF(obj); | |
11978 | return Py_BuildValue((char *)""); | |
11979 | } | |
c32bde28 | 11980 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11981 | PyObject *resultobj; |
11982 | wxANIHandler *result; | |
11983 | char *kwnames[] = { | |
11984 | NULL | |
11985 | }; | |
11986 | ||
11987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | result = (wxANIHandler *)new wxANIHandler(); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
15afbcd0 | 11995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11996 | return resultobj; |
11997 | fail: | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
c32bde28 | 12002 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12003 | PyObject *obj; |
12004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12005 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
12006 | Py_INCREF(obj); | |
12007 | return Py_BuildValue((char *)""); | |
12008 | } | |
c32bde28 | 12009 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12010 | PyObject *resultobj; |
12011 | wxPNGHandler *result; | |
12012 | char *kwnames[] = { | |
12013 | NULL | |
12014 | }; | |
12015 | ||
12016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
12017 | { | |
12018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12019 | result = (wxPNGHandler *)new wxPNGHandler(); | |
12020 | ||
12021 | wxPyEndAllowThreads(__tstate); | |
12022 | if (PyErr_Occurred()) SWIG_fail; | |
12023 | } | |
15afbcd0 | 12024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
12025 | return resultobj; |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
c32bde28 | 12031 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12032 | PyObject *obj; |
12033 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12034 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
12035 | Py_INCREF(obj); | |
12036 | return Py_BuildValue((char *)""); | |
12037 | } | |
c32bde28 | 12038 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12039 | PyObject *resultobj; |
12040 | wxGIFHandler *result; | |
12041 | char *kwnames[] = { | |
12042 | NULL | |
12043 | }; | |
12044 | ||
12045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
12046 | { | |
12047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12048 | result = (wxGIFHandler *)new wxGIFHandler(); | |
12049 | ||
12050 | wxPyEndAllowThreads(__tstate); | |
12051 | if (PyErr_Occurred()) SWIG_fail; | |
12052 | } | |
15afbcd0 | 12053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
12054 | return resultobj; |
12055 | fail: | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
c32bde28 | 12060 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12061 | PyObject *obj; |
12062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12063 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
12064 | Py_INCREF(obj); | |
12065 | return Py_BuildValue((char *)""); | |
12066 | } | |
c32bde28 | 12067 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12068 | PyObject *resultobj; |
12069 | wxPCXHandler *result; | |
12070 | char *kwnames[] = { | |
12071 | NULL | |
12072 | }; | |
12073 | ||
12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
12075 | { | |
12076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12077 | result = (wxPCXHandler *)new wxPCXHandler(); | |
12078 | ||
12079 | wxPyEndAllowThreads(__tstate); | |
12080 | if (PyErr_Occurred()) SWIG_fail; | |
12081 | } | |
15afbcd0 | 12082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
12083 | return resultobj; |
12084 | fail: | |
12085 | return NULL; | |
12086 | } | |
12087 | ||
12088 | ||
c32bde28 | 12089 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12090 | PyObject *obj; |
12091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12092 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
12093 | Py_INCREF(obj); | |
12094 | return Py_BuildValue((char *)""); | |
12095 | } | |
c32bde28 | 12096 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12097 | PyObject *resultobj; |
12098 | wxJPEGHandler *result; | |
12099 | char *kwnames[] = { | |
12100 | NULL | |
12101 | }; | |
12102 | ||
12103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
15afbcd0 | 12111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
12112 | return resultobj; |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
c32bde28 | 12118 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12119 | PyObject *obj; |
12120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12121 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
12122 | Py_INCREF(obj); | |
12123 | return Py_BuildValue((char *)""); | |
12124 | } | |
c32bde28 | 12125 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12126 | PyObject *resultobj; |
12127 | wxPNMHandler *result; | |
12128 | char *kwnames[] = { | |
12129 | NULL | |
12130 | }; | |
12131 | ||
12132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
12133 | { | |
12134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12135 | result = (wxPNMHandler *)new wxPNMHandler(); | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
15afbcd0 | 12140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
12141 | return resultobj; |
12142 | fail: | |
12143 | return NULL; | |
12144 | } | |
12145 | ||
12146 | ||
c32bde28 | 12147 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12148 | PyObject *obj; |
12149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12150 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
12151 | Py_INCREF(obj); | |
12152 | return Py_BuildValue((char *)""); | |
12153 | } | |
c32bde28 | 12154 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12155 | PyObject *resultobj; |
12156 | wxXPMHandler *result; | |
12157 | char *kwnames[] = { | |
12158 | NULL | |
12159 | }; | |
12160 | ||
12161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | result = (wxXPMHandler *)new wxXPMHandler(); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
15afbcd0 | 12169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
12170 | return resultobj; |
12171 | fail: | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
c32bde28 | 12176 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12177 | PyObject *obj; |
12178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12179 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12180 | Py_INCREF(obj); | |
12181 | return Py_BuildValue((char *)""); | |
12182 | } | |
c32bde28 | 12183 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12184 | PyObject *resultobj; |
12185 | wxTIFFHandler *result; | |
12186 | char *kwnames[] = { | |
12187 | NULL | |
12188 | }; | |
12189 | ||
12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12191 | { | |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
15afbcd0 | 12198 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
12199 | return resultobj; |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
c32bde28 | 12205 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12206 | PyObject *obj; |
12207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12208 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12209 | Py_INCREF(obj); | |
12210 | return Py_BuildValue((char *)""); | |
12211 | } | |
c32bde28 | 12212 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12213 | PyObject *resultobj; |
12214 | wxImage *arg1 = 0 ; | |
12215 | wxImage *arg2 = 0 ; | |
12216 | int arg3 = (int) 236 ; | |
12217 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12218 | bool result; | |
12219 | PyObject * obj0 = 0 ; | |
12220 | PyObject * obj1 = 0 ; | |
12221 | PyObject * obj2 = 0 ; | |
12222 | PyObject * obj3 = 0 ; | |
12223 | char *kwnames[] = { | |
12224 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12225 | }; | |
12226 | ||
12227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12230 | SWIG_fail; | |
12231 | if (arg1 == NULL) { | |
12232 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12233 | SWIG_fail; | |
12234 | } | |
12235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12237 | SWIG_fail; | |
12238 | if (arg2 == NULL) { | |
12239 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12240 | SWIG_fail; | |
12241 | } | |
12242 | if (obj2) { | |
c32bde28 | 12243 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12244 | if (PyErr_Occurred()) SWIG_fail; |
12245 | } | |
12246 | if (obj3) { | |
c32bde28 | 12247 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12248 | if (PyErr_Occurred()) SWIG_fail; |
12249 | } | |
12250 | { | |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | { | |
12258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12259 | } | |
12260 | return resultobj; | |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
c32bde28 | 12266 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12267 | PyObject *obj; |
12268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12269 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12270 | Py_INCREF(obj); | |
12271 | return Py_BuildValue((char *)""); | |
12272 | } | |
c32bde28 | 12273 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12274 | PyObject *resultobj; |
12275 | wxEvtHandler *result; | |
12276 | char *kwnames[] = { | |
12277 | NULL | |
12278 | }; | |
12279 | ||
12280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12281 | { | |
12282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12283 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12284 | ||
12285 | wxPyEndAllowThreads(__tstate); | |
12286 | if (PyErr_Occurred()) SWIG_fail; | |
12287 | } | |
b0f7404b | 12288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d14a1e28 RD |
12289 | return resultobj; |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
c32bde28 | 12295 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12296 | PyObject *resultobj; |
12297 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12298 | wxEvtHandler *result; | |
12299 | PyObject * obj0 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12307 | { |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | { | |
412d302d | 12315 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
12316 | } |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
c32bde28 | 12323 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12324 | PyObject *resultobj; |
12325 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12326 | wxEvtHandler *result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | { | |
412d302d | 12343 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
12344 | } |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
c32bde28 | 12351 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12352 | PyObject *resultobj; |
12353 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12354 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | PyObject * obj1 = 0 ; | |
12357 | char *kwnames[] = { | |
12358 | (char *) "self",(char *) "handler", NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12366 | { |
12367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12368 | (arg1)->SetNextHandler(arg2); | |
12369 | ||
12370 | wxPyEndAllowThreads(__tstate); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
12373 | Py_INCREF(Py_None); resultobj = Py_None; | |
12374 | return resultobj; | |
12375 | fail: | |
12376 | return NULL; | |
12377 | } | |
12378 | ||
12379 | ||
c32bde28 | 12380 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12381 | PyObject *resultobj; |
12382 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12383 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12384 | PyObject * obj0 = 0 ; | |
12385 | PyObject * obj1 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "self",(char *) "handler", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12393 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12395 | { |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12397 | (arg1)->SetPreviousHandler(arg2); | |
12398 | ||
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | Py_INCREF(Py_None); resultobj = Py_None; | |
12403 | return resultobj; | |
12404 | fail: | |
12405 | return NULL; | |
12406 | } | |
12407 | ||
12408 | ||
c32bde28 | 12409 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12410 | PyObject *resultobj; |
12411 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12412 | bool result; | |
12413 | PyObject * obj0 = 0 ; | |
12414 | char *kwnames[] = { | |
12415 | (char *) "self", NULL | |
12416 | }; | |
12417 | ||
12418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12421 | { |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
4f89f6a3 RD |
12428 | { |
12429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12430 | } | |
d14a1e28 RD |
12431 | return resultobj; |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
c32bde28 | 12437 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12438 | PyObject *resultobj; |
12439 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12440 | bool arg2 ; | |
12441 | PyObject * obj0 = 0 ; | |
12442 | PyObject * obj1 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self",(char *) "enabled", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12450 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 12451 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12452 | { |
12453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12454 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12455 | ||
12456 | wxPyEndAllowThreads(__tstate); | |
12457 | if (PyErr_Occurred()) SWIG_fail; | |
12458 | } | |
12459 | Py_INCREF(Py_None); resultobj = Py_None; | |
12460 | return resultobj; | |
12461 | fail: | |
12462 | return NULL; | |
12463 | } | |
12464 | ||
12465 | ||
c32bde28 | 12466 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12467 | PyObject *resultobj; |
12468 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12469 | wxEvent *arg2 = 0 ; | |
12470 | bool result; | |
12471 | PyObject * obj0 = 0 ; | |
12472 | PyObject * obj1 = 0 ; | |
12473 | char *kwnames[] = { | |
12474 | (char *) "self",(char *) "event", NULL | |
12475 | }; | |
12476 | ||
12477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12481 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12482 | SWIG_fail; | |
d14a1e28 | 12483 | if (arg2 == NULL) { |
15afbcd0 RD |
12484 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12485 | SWIG_fail; | |
d14a1e28 RD |
12486 | } |
12487 | { | |
12488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12489 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12490 | ||
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
4f89f6a3 RD |
12494 | { |
12495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12496 | } | |
d14a1e28 RD |
12497 | return resultobj; |
12498 | fail: | |
12499 | return NULL; | |
12500 | } | |
12501 | ||
12502 | ||
c32bde28 | 12503 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12504 | PyObject *resultobj; |
12505 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12506 | wxEvent *arg2 = 0 ; | |
12507 | PyObject * obj0 = 0 ; | |
12508 | PyObject * obj1 = 0 ; | |
12509 | char *kwnames[] = { | |
12510 | (char *) "self",(char *) "event", NULL | |
12511 | }; | |
12512 | ||
12513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12518 | SWIG_fail; | |
d14a1e28 | 12519 | if (arg2 == NULL) { |
15afbcd0 RD |
12520 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12521 | SWIG_fail; | |
d14a1e28 RD |
12522 | } |
12523 | { | |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12525 | (arg1)->AddPendingEvent(*arg2); | |
12526 | ||
12527 | wxPyEndAllowThreads(__tstate); | |
12528 | if (PyErr_Occurred()) SWIG_fail; | |
12529 | } | |
12530 | Py_INCREF(Py_None); resultobj = Py_None; | |
12531 | return resultobj; | |
12532 | fail: | |
12533 | return NULL; | |
12534 | } | |
12535 | ||
12536 | ||
c32bde28 | 12537 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12538 | PyObject *resultobj; |
12539 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12540 | PyObject * obj0 = 0 ; | |
12541 | char *kwnames[] = { | |
12542 | (char *) "self", NULL | |
12543 | }; | |
12544 | ||
12545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12548 | { |
12549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12550 | (arg1)->ProcessPendingEvents(); | |
12551 | ||
12552 | wxPyEndAllowThreads(__tstate); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | } | |
12555 | Py_INCREF(Py_None); resultobj = Py_None; | |
12556 | return resultobj; | |
12557 | fail: | |
12558 | return NULL; | |
12559 | } | |
12560 | ||
12561 | ||
c32bde28 | 12562 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12563 | PyObject *resultobj; |
12564 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12565 | int arg2 ; | |
12566 | int arg3 ; | |
12567 | int arg4 ; | |
12568 | PyObject *arg5 = (PyObject *) 0 ; | |
12569 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12570 | PyObject * obj1 = 0 ; |
12571 | PyObject * obj2 = 0 ; | |
12572 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12573 | PyObject * obj4 = 0 ; |
12574 | char *kwnames[] = { | |
12575 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12576 | }; | |
12577 | ||
994141e6 | 12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12581 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12582 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12583 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12584 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12585 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 12586 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12587 | arg5 = obj4; |
12588 | { | |
12589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12590 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12591 | ||
12592 | wxPyEndAllowThreads(__tstate); | |
12593 | if (PyErr_Occurred()) SWIG_fail; | |
12594 | } | |
12595 | Py_INCREF(Py_None); resultobj = Py_None; | |
12596 | return resultobj; | |
12597 | fail: | |
12598 | return NULL; | |
12599 | } | |
12600 | ||
12601 | ||
c32bde28 | 12602 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12603 | PyObject *resultobj; |
12604 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12605 | int arg2 ; | |
12606 | int arg3 = (int) -1 ; | |
12607 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12608 | bool result; | |
12609 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12610 | PyObject * obj1 = 0 ; |
12611 | PyObject * obj2 = 0 ; | |
12612 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12613 | char *kwnames[] = { |
12614 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12615 | }; | |
12616 | ||
994141e6 | 12617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12620 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12621 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12622 | if (obj2) { |
c32bde28 | 12623 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12624 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12625 | } |
12626 | if (obj3) { | |
c32bde28 | 12627 | arg4 = (wxEventType)SWIG_As_int(obj3); |
15afbcd0 | 12628 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12629 | } |
d14a1e28 RD |
12630 | { |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
4f89f6a3 RD |
12637 | { |
12638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12639 | } | |
d14a1e28 RD |
12640 | return resultobj; |
12641 | fail: | |
12642 | return NULL; | |
12643 | } | |
12644 | ||
12645 | ||
c32bde28 | 12646 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12647 | PyObject *resultobj; |
12648 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12649 | PyObject *arg2 = (PyObject *) 0 ; | |
12650 | PyObject * obj0 = 0 ; | |
12651 | PyObject * obj1 = 0 ; | |
12652 | char *kwnames[] = { | |
12653 | (char *) "self",(char *) "_self", NULL | |
12654 | }; | |
12655 | ||
12656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12659 | arg2 = obj1; |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | Py_INCREF(Py_None); resultobj = Py_None; | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
c32bde28 | 12674 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12675 | PyObject *obj; |
12676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12677 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12678 | Py_INCREF(obj); | |
12679 | return Py_BuildValue((char *)""); | |
12680 | } | |
c32bde28 | 12681 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12682 | PyObject *resultobj; |
12683 | wxEventType result; | |
12684 | char *kwnames[] = { | |
12685 | NULL | |
12686 | }; | |
12687 | ||
12688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12689 | { | |
12690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12691 | result = (wxEventType)wxNewEventType(); | |
12692 | ||
12693 | wxPyEndAllowThreads(__tstate); | |
12694 | if (PyErr_Occurred()) SWIG_fail; | |
12695 | } | |
c32bde28 | 12696 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12697 | return resultobj; |
12698 | fail: | |
12699 | return NULL; | |
12700 | } | |
12701 | ||
12702 | ||
c32bde28 | 12703 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12704 | PyObject *resultobj; |
12705 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12706 | PyObject * obj0 = 0 ; | |
12707 | char *kwnames[] = { | |
12708 | (char *) "self", NULL | |
12709 | }; | |
12710 | ||
12711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12714 | { |
12715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12716 | delete arg1; | |
12717 | ||
12718 | wxPyEndAllowThreads(__tstate); | |
12719 | if (PyErr_Occurred()) SWIG_fail; | |
12720 | } | |
12721 | Py_INCREF(Py_None); resultobj = Py_None; | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | return NULL; | |
12725 | } | |
12726 | ||
12727 | ||
c32bde28 | 12728 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12729 | PyObject *resultobj; |
12730 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12731 | wxEventType arg2 ; | |
12732 | PyObject * obj0 = 0 ; | |
994141e6 | 12733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12734 | char *kwnames[] = { |
12735 | (char *) "self",(char *) "typ", NULL | |
12736 | }; | |
12737 | ||
994141e6 | 12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12741 | arg2 = (wxEventType)SWIG_As_int(obj1); |
15afbcd0 | 12742 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12743 | { |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | (arg1)->SetEventType(arg2); | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | Py_INCREF(Py_None); resultobj = Py_None; | |
12751 | return resultobj; | |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
c32bde28 | 12757 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12758 | PyObject *resultobj; |
12759 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12760 | wxEventType result; | |
12761 | PyObject * obj0 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12769 | { |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
c32bde28 | 12776 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12777 | return resultobj; |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
c32bde28 | 12783 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12784 | PyObject *resultobj; |
12785 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12786 | wxObject *result; | |
12787 | PyObject * obj0 = 0 ; | |
12788 | char *kwnames[] = { | |
12789 | (char *) "self", NULL | |
12790 | }; | |
12791 | ||
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12795 | { |
12796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12797 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12798 | ||
12799 | wxPyEndAllowThreads(__tstate); | |
12800 | if (PyErr_Occurred()) SWIG_fail; | |
12801 | } | |
12802 | { | |
412d302d | 12803 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
12804 | } |
12805 | return resultobj; | |
12806 | fail: | |
12807 | return NULL; | |
12808 | } | |
12809 | ||
12810 | ||
c32bde28 | 12811 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12812 | PyObject *resultobj; |
12813 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12814 | wxObject *arg2 = (wxObject *) 0 ; | |
12815 | PyObject * obj0 = 0 ; | |
12816 | PyObject * obj1 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "self",(char *) "obj", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12826 | { |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | (arg1)->SetEventObject(arg2); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | Py_INCREF(Py_None); resultobj = Py_None; | |
12834 | return resultobj; | |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
c32bde28 | 12840 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12841 | PyObject *resultobj; |
12842 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12843 | long result; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | char *kwnames[] = { | |
12846 | (char *) "self", NULL | |
12847 | }; | |
12848 | ||
12849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12852 | { |
12853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12854 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12855 | ||
12856 | wxPyEndAllowThreads(__tstate); | |
12857 | if (PyErr_Occurred()) SWIG_fail; | |
12858 | } | |
c32bde28 | 12859 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
12860 | return resultobj; |
12861 | fail: | |
12862 | return NULL; | |
12863 | } | |
12864 | ||
12865 | ||
c32bde28 | 12866 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12867 | PyObject *resultobj; |
12868 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12869 | long arg2 = (long) 0 ; | |
12870 | PyObject * obj0 = 0 ; | |
994141e6 | 12871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12872 | char *kwnames[] = { |
12873 | (char *) "self",(char *) "ts", NULL | |
12874 | }; | |
12875 | ||
994141e6 | 12876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 12879 | if (obj1) { |
c32bde28 | 12880 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 12881 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12882 | } |
d14a1e28 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->SetTimestamp(arg2); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
c32bde28 | 12897 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12898 | PyObject *resultobj; |
12899 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12900 | int result; | |
12901 | PyObject * obj0 = 0 ; | |
12902 | char *kwnames[] = { | |
12903 | (char *) "self", NULL | |
12904 | }; | |
12905 | ||
12906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12909 | { |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
c32bde28 | 12916 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12917 | return resultobj; |
12918 | fail: | |
12919 | return NULL; | |
12920 | } | |
12921 | ||
12922 | ||
c32bde28 | 12923 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12924 | PyObject *resultobj; |
12925 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12926 | int arg2 ; | |
12927 | PyObject * obj0 = 0 ; | |
994141e6 | 12928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12929 | char *kwnames[] = { |
12930 | (char *) "self",(char *) "Id", NULL | |
12931 | }; | |
12932 | ||
994141e6 | 12933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12936 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12937 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12938 | { |
12939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12940 | (arg1)->SetId(arg2); | |
12941 | ||
12942 | wxPyEndAllowThreads(__tstate); | |
12943 | if (PyErr_Occurred()) SWIG_fail; | |
12944 | } | |
12945 | Py_INCREF(Py_None); resultobj = Py_None; | |
12946 | return resultobj; | |
12947 | fail: | |
12948 | return NULL; | |
12949 | } | |
12950 | ||
12951 | ||
c32bde28 | 12952 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12953 | PyObject *resultobj; |
12954 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12955 | bool result; | |
12956 | PyObject * obj0 = 0 ; | |
12957 | char *kwnames[] = { | |
12958 | (char *) "self", NULL | |
12959 | }; | |
12960 | ||
12961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12964 | { |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12967 | ||
12968 | wxPyEndAllowThreads(__tstate); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
4f89f6a3 RD |
12971 | { |
12972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12973 | } | |
d14a1e28 RD |
12974 | return resultobj; |
12975 | fail: | |
12976 | return NULL; | |
12977 | } | |
12978 | ||
12979 | ||
c32bde28 | 12980 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12981 | PyObject *resultobj; |
12982 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 12983 | bool arg2 = (bool) true ; |
d14a1e28 RD |
12984 | PyObject * obj0 = 0 ; |
12985 | PyObject * obj1 = 0 ; | |
12986 | char *kwnames[] = { | |
12987 | (char *) "self",(char *) "skip", NULL | |
12988 | }; | |
12989 | ||
12990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12993 | if (obj1) { |
c32bde28 | 12994 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 12995 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12996 | } |
12997 | { | |
12998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12999 | (arg1)->Skip(arg2); | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | Py_INCREF(Py_None); resultobj = Py_None; | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
c32bde28 | 13011 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13012 | PyObject *resultobj; |
13013 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13014 | bool result; | |
13015 | PyObject * obj0 = 0 ; | |
13016 | char *kwnames[] = { | |
13017 | (char *) "self", NULL | |
13018 | }; | |
13019 | ||
13020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13023 | { |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
4f89f6a3 RD |
13030 | { |
13031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13032 | } | |
d14a1e28 RD |
13033 | return resultobj; |
13034 | fail: | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
c32bde28 | 13039 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13040 | PyObject *resultobj; |
13041 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13042 | bool result; | |
13043 | PyObject * obj0 = 0 ; | |
13044 | char *kwnames[] = { | |
13045 | (char *) "self", NULL | |
13046 | }; | |
13047 | ||
13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13051 | { |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13053 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
4f89f6a3 RD |
13058 | { |
13059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13060 | } | |
d14a1e28 RD |
13061 | return resultobj; |
13062 | fail: | |
13063 | return NULL; | |
13064 | } | |
13065 | ||
13066 | ||
c32bde28 | 13067 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13068 | PyObject *resultobj; |
13069 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13070 | int result; | |
13071 | PyObject * obj0 = 0 ; | |
13072 | char *kwnames[] = { | |
13073 | (char *) "self", NULL | |
13074 | }; | |
13075 | ||
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13079 | { |
13080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13081 | result = (int)(arg1)->StopPropagation(); | |
13082 | ||
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
c32bde28 | 13086 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13087 | return resultobj; |
13088 | fail: | |
13089 | return NULL; | |
13090 | } | |
13091 | ||
13092 | ||
c32bde28 | 13093 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13094 | PyObject *resultobj; |
13095 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13096 | int arg2 ; | |
13097 | PyObject * obj0 = 0 ; | |
994141e6 | 13098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13099 | char *kwnames[] = { |
13100 | (char *) "self",(char *) "propagationLevel", NULL | |
13101 | }; | |
13102 | ||
994141e6 | 13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13106 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13107 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13108 | { |
13109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13110 | (arg1)->ResumePropagation(arg2); | |
13111 | ||
13112 | wxPyEndAllowThreads(__tstate); | |
13113 | if (PyErr_Occurred()) SWIG_fail; | |
13114 | } | |
13115 | Py_INCREF(Py_None); resultobj = Py_None; | |
13116 | return resultobj; | |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
c32bde28 | 13122 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13123 | PyObject *resultobj; |
13124 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13125 | wxEvent *result; | |
13126 | PyObject * obj0 = 0 ; | |
13127 | char *kwnames[] = { | |
13128 | (char *) "self", NULL | |
13129 | }; | |
13130 | ||
13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13134 | { |
13135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13136 | result = (wxEvent *)(arg1)->Clone(); | |
13137 | ||
13138 | wxPyEndAllowThreads(__tstate); | |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
13140 | } | |
15afbcd0 | 13141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13142 | return resultobj; |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
c32bde28 | 13148 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13149 | PyObject *obj; |
13150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13151 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
13152 | Py_INCREF(obj); | |
13153 | return Py_BuildValue((char *)""); | |
13154 | } | |
c32bde28 | 13155 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13156 | PyObject *resultobj; |
13157 | wxEvent *arg1 = 0 ; | |
13158 | wxPropagationDisabler *result; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "event", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13166 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13167 | SWIG_fail; | |
d14a1e28 | 13168 | if (arg1 == NULL) { |
15afbcd0 RD |
13169 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13170 | SWIG_fail; | |
d14a1e28 RD |
13171 | } |
13172 | { | |
13173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13174 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13175 | ||
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
15afbcd0 | 13179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
13180 | return resultobj; |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
c32bde28 | 13186 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13187 | PyObject *resultobj; |
13188 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13189 | PyObject * obj0 = 0 ; | |
13190 | char *kwnames[] = { | |
13191 | (char *) "self", NULL | |
13192 | }; | |
13193 | ||
13194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
13196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13197 | { |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | delete arg1; | |
13200 | ||
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | Py_INCREF(Py_None); resultobj = Py_None; | |
13205 | return resultobj; | |
13206 | fail: | |
13207 | return NULL; | |
13208 | } | |
13209 | ||
13210 | ||
c32bde28 | 13211 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13212 | PyObject *obj; |
13213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13214 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13215 | Py_INCREF(obj); | |
13216 | return Py_BuildValue((char *)""); | |
13217 | } | |
c32bde28 | 13218 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13219 | PyObject *resultobj; |
13220 | wxEvent *arg1 = 0 ; | |
13221 | wxPropagateOnce *result; | |
13222 | PyObject * obj0 = 0 ; | |
13223 | char *kwnames[] = { | |
13224 | (char *) "event", NULL | |
13225 | }; | |
13226 | ||
13227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
13229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13230 | SWIG_fail; | |
d14a1e28 | 13231 | if (arg1 == NULL) { |
15afbcd0 RD |
13232 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13233 | SWIG_fail; | |
d14a1e28 RD |
13234 | } |
13235 | { | |
13236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13237 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13238 | ||
13239 | wxPyEndAllowThreads(__tstate); | |
13240 | if (PyErr_Occurred()) SWIG_fail; | |
13241 | } | |
15afbcd0 | 13242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
13243 | return resultobj; |
13244 | fail: | |
13245 | return NULL; | |
13246 | } | |
13247 | ||
13248 | ||
c32bde28 | 13249 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13250 | PyObject *resultobj; |
13251 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13252 | PyObject * obj0 = 0 ; | |
13253 | char *kwnames[] = { | |
13254 | (char *) "self", NULL | |
13255 | }; | |
13256 | ||
13257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
13259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13260 | { |
13261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13262 | delete arg1; | |
13263 | ||
13264 | wxPyEndAllowThreads(__tstate); | |
13265 | if (PyErr_Occurred()) SWIG_fail; | |
13266 | } | |
13267 | Py_INCREF(Py_None); resultobj = Py_None; | |
13268 | return resultobj; | |
13269 | fail: | |
13270 | return NULL; | |
13271 | } | |
13272 | ||
13273 | ||
c32bde28 | 13274 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13275 | PyObject *obj; |
13276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13277 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13278 | Py_INCREF(obj); | |
13279 | return Py_BuildValue((char *)""); | |
13280 | } | |
c32bde28 | 13281 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13282 | PyObject *resultobj; |
13283 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13284 | int arg2 = (int) 0 ; | |
13285 | wxCommandEvent *result; | |
994141e6 RD |
13286 | PyObject * obj0 = 0 ; |
13287 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13288 | char *kwnames[] = { |
13289 | (char *) "commandType",(char *) "winid", NULL | |
13290 | }; | |
13291 | ||
994141e6 RD |
13292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
13293 | if (obj0) { | |
c32bde28 | 13294 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 13295 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13296 | } |
13297 | if (obj1) { | |
c32bde28 | 13298 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13299 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13300 | } |
d14a1e28 RD |
13301 | { |
13302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13303 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13304 | ||
13305 | wxPyEndAllowThreads(__tstate); | |
13306 | if (PyErr_Occurred()) SWIG_fail; | |
13307 | } | |
15afbcd0 | 13308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
13309 | return resultobj; |
13310 | fail: | |
13311 | return NULL; | |
13312 | } | |
13313 | ||
13314 | ||
c32bde28 | 13315 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13316 | PyObject *resultobj; |
13317 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13318 | int result; | |
13319 | PyObject * obj0 = 0 ; | |
13320 | char *kwnames[] = { | |
13321 | (char *) "self", NULL | |
13322 | }; | |
13323 | ||
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13327 | { |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
c32bde28 | 13334 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13335 | return resultobj; |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
c32bde28 | 13341 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13342 | PyObject *resultobj; |
13343 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13344 | wxString *arg2 = 0 ; | |
ae8162c8 | 13345 | bool temp2 = false ; |
d14a1e28 RD |
13346 | PyObject * obj0 = 0 ; |
13347 | PyObject * obj1 = 0 ; | |
13348 | char *kwnames[] = { | |
13349 | (char *) "self",(char *) "s", NULL | |
13350 | }; | |
13351 | ||
13352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13355 | { |
13356 | arg2 = wxString_in_helper(obj1); | |
13357 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13358 | temp2 = true; |
d14a1e28 RD |
13359 | } |
13360 | { | |
13361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13362 | (arg1)->SetString((wxString const &)*arg2); | |
13363 | ||
13364 | wxPyEndAllowThreads(__tstate); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | Py_INCREF(Py_None); resultobj = Py_None; | |
13368 | { | |
13369 | if (temp2) | |
13370 | delete arg2; | |
13371 | } | |
13372 | return resultobj; | |
13373 | fail: | |
13374 | { | |
13375 | if (temp2) | |
13376 | delete arg2; | |
13377 | } | |
13378 | return NULL; | |
13379 | } | |
13380 | ||
13381 | ||
c32bde28 | 13382 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13383 | PyObject *resultobj; |
13384 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13385 | wxString result; | |
13386 | PyObject * obj0 = 0 ; | |
13387 | char *kwnames[] = { | |
13388 | (char *) "self", NULL | |
13389 | }; | |
13390 | ||
13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13394 | { |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13397 | ||
13398 | wxPyEndAllowThreads(__tstate); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
13401 | { | |
13402 | #if wxUSE_UNICODE | |
13403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13404 | #else | |
13405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13406 | #endif | |
13407 | } | |
13408 | return resultobj; | |
13409 | fail: | |
13410 | return NULL; | |
13411 | } | |
13412 | ||
13413 | ||
c32bde28 | 13414 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13415 | PyObject *resultobj; |
13416 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13417 | bool result; | |
13418 | PyObject * obj0 = 0 ; | |
13419 | char *kwnames[] = { | |
13420 | (char *) "self", NULL | |
13421 | }; | |
13422 | ||
13423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13426 | { |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
4f89f6a3 RD |
13433 | { |
13434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13435 | } | |
d14a1e28 RD |
13436 | return resultobj; |
13437 | fail: | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
c32bde28 | 13442 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13443 | PyObject *resultobj; |
13444 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13445 | bool result; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | char *kwnames[] = { | |
13448 | (char *) "self", NULL | |
13449 | }; | |
13450 | ||
13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13454 | { |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
4f89f6a3 RD |
13461 | { |
13462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13463 | } | |
d14a1e28 RD |
13464 | return resultobj; |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
c32bde28 | 13470 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13471 | PyObject *resultobj; |
13472 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13473 | long arg2 ; | |
13474 | PyObject * obj0 = 0 ; | |
994141e6 | 13475 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13476 | char *kwnames[] = { |
13477 | (char *) "self",(char *) "extraLong", NULL | |
13478 | }; | |
13479 | ||
994141e6 | 13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13483 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 13484 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13485 | { |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | (arg1)->SetExtraLong(arg2); | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | Py_INCREF(Py_None); resultobj = Py_None; | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
c32bde28 | 13499 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13500 | PyObject *resultobj; |
13501 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13502 | long result; | |
13503 | PyObject * obj0 = 0 ; | |
13504 | char *kwnames[] = { | |
13505 | (char *) "self", NULL | |
13506 | }; | |
13507 | ||
13508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13511 | { |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13514 | ||
13515 | wxPyEndAllowThreads(__tstate); | |
13516 | if (PyErr_Occurred()) SWIG_fail; | |
13517 | } | |
c32bde28 | 13518 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
13519 | return resultobj; |
13520 | fail: | |
13521 | return NULL; | |
13522 | } | |
13523 | ||
13524 | ||
c32bde28 | 13525 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13526 | PyObject *resultobj; |
13527 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13528 | int arg2 ; | |
13529 | PyObject * obj0 = 0 ; | |
994141e6 | 13530 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13531 | char *kwnames[] = { |
13532 | (char *) "self",(char *) "i", NULL | |
13533 | }; | |
13534 | ||
994141e6 | 13535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13538 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13539 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13540 | { |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | (arg1)->SetInt(arg2); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
13547 | Py_INCREF(Py_None); resultobj = Py_None; | |
13548 | return resultobj; | |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
c32bde28 | 13554 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13555 | PyObject *resultobj; |
13556 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13557 | long result; | |
13558 | PyObject * obj0 = 0 ; | |
13559 | char *kwnames[] = { | |
13560 | (char *) "self", NULL | |
13561 | }; | |
13562 | ||
13563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13566 | { |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13569 | ||
13570 | wxPyEndAllowThreads(__tstate); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
c32bde28 | 13573 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
13574 | return resultobj; |
13575 | fail: | |
13576 | return NULL; | |
13577 | } | |
13578 | ||
13579 | ||
c32bde28 | 13580 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13581 | PyObject *resultobj; |
13582 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13583 | wxEvent *result; | |
13584 | PyObject * obj0 = 0 ; | |
13585 | char *kwnames[] = { | |
13586 | (char *) "self", NULL | |
13587 | }; | |
13588 | ||
13589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13592 | { |
13593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13594 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13595 | ||
13596 | wxPyEndAllowThreads(__tstate); | |
13597 | if (PyErr_Occurred()) SWIG_fail; | |
13598 | } | |
15afbcd0 | 13599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13600 | return resultobj; |
13601 | fail: | |
13602 | return NULL; | |
13603 | } | |
13604 | ||
13605 | ||
c32bde28 | 13606 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13607 | PyObject *obj; |
13608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13609 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13610 | Py_INCREF(obj); | |
13611 | return Py_BuildValue((char *)""); | |
13612 | } | |
c32bde28 | 13613 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13614 | PyObject *resultobj; |
13615 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13616 | int arg2 = (int) 0 ; | |
13617 | wxNotifyEvent *result; | |
994141e6 RD |
13618 | PyObject * obj0 = 0 ; |
13619 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13620 | char *kwnames[] = { |
13621 | (char *) "commandType",(char *) "winid", NULL | |
13622 | }; | |
13623 | ||
994141e6 RD |
13624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
13625 | if (obj0) { | |
c32bde28 | 13626 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 13627 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13628 | } |
13629 | if (obj1) { | |
c32bde28 | 13630 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13631 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13632 | } |
d14a1e28 RD |
13633 | { |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13636 | ||
13637 | wxPyEndAllowThreads(__tstate); | |
13638 | if (PyErr_Occurred()) SWIG_fail; | |
13639 | } | |
15afbcd0 | 13640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
13641 | return resultobj; |
13642 | fail: | |
13643 | return NULL; | |
13644 | } | |
13645 | ||
13646 | ||
c32bde28 | 13647 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13648 | PyObject *resultobj; |
13649 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13650 | PyObject * obj0 = 0 ; | |
13651 | char *kwnames[] = { | |
13652 | (char *) "self", NULL | |
13653 | }; | |
13654 | ||
13655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13658 | { |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | (arg1)->Veto(); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | Py_INCREF(Py_None); resultobj = Py_None; | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
c32bde28 | 13672 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13673 | PyObject *resultobj; |
13674 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13675 | PyObject * obj0 = 0 ; | |
13676 | char *kwnames[] = { | |
13677 | (char *) "self", NULL | |
13678 | }; | |
13679 | ||
13680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13683 | { |
13684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13685 | (arg1)->Allow(); | |
13686 | ||
13687 | wxPyEndAllowThreads(__tstate); | |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
13690 | Py_INCREF(Py_None); resultobj = Py_None; | |
13691 | return resultobj; | |
13692 | fail: | |
13693 | return NULL; | |
13694 | } | |
13695 | ||
13696 | ||
c32bde28 | 13697 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13698 | PyObject *resultobj; |
13699 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13700 | bool result; | |
13701 | PyObject * obj0 = 0 ; | |
13702 | char *kwnames[] = { | |
13703 | (char *) "self", NULL | |
13704 | }; | |
13705 | ||
13706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13709 | { |
13710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13711 | result = (bool)(arg1)->IsAllowed(); | |
13712 | ||
13713 | wxPyEndAllowThreads(__tstate); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
13715 | } | |
4f89f6a3 RD |
13716 | { |
13717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13718 | } | |
d14a1e28 RD |
13719 | return resultobj; |
13720 | fail: | |
13721 | return NULL; | |
13722 | } | |
13723 | ||
13724 | ||
c32bde28 | 13725 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13726 | PyObject *obj; |
13727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13728 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13729 | Py_INCREF(obj); | |
13730 | return Py_BuildValue((char *)""); | |
13731 | } | |
c32bde28 | 13732 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13733 | PyObject *resultobj; |
13734 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13735 | int arg2 = (int) 0 ; | |
13736 | int arg3 = (int) 0 ; | |
13737 | int arg4 = (int) 0 ; | |
13738 | wxScrollEvent *result; | |
994141e6 RD |
13739 | PyObject * obj0 = 0 ; |
13740 | PyObject * obj1 = 0 ; | |
13741 | PyObject * obj2 = 0 ; | |
13742 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13743 | char *kwnames[] = { |
13744 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13745 | }; | |
13746 | ||
994141e6 RD |
13747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13748 | if (obj0) { | |
c32bde28 | 13749 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 13750 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13751 | } |
13752 | if (obj1) { | |
c32bde28 | 13753 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13754 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13755 | } |
13756 | if (obj2) { | |
c32bde28 | 13757 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13758 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13759 | } |
13760 | if (obj3) { | |
c32bde28 | 13761 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 13762 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13763 | } |
d14a1e28 RD |
13764 | { |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
15afbcd0 | 13771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13772 | return resultobj; |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
c32bde28 | 13778 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13779 | PyObject *resultobj; |
13780 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13781 | int result; | |
13782 | PyObject * obj0 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13790 | { |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
c32bde28 | 13797 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13798 | return resultobj; |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
c32bde28 | 13804 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13805 | PyObject *resultobj; |
13806 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13807 | int result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13816 | { |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13818 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13819 | ||
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
c32bde28 | 13823 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13824 | return resultobj; |
13825 | fail: | |
13826 | return NULL; | |
13827 | } | |
13828 | ||
13829 | ||
c32bde28 | 13830 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13831 | PyObject *resultobj; |
13832 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13833 | int arg2 ; | |
13834 | PyObject * obj0 = 0 ; | |
994141e6 | 13835 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13836 | char *kwnames[] = { |
13837 | (char *) "self",(char *) "orient", NULL | |
13838 | }; | |
13839 | ||
994141e6 | 13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13843 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13844 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13845 | { |
13846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13847 | (arg1)->SetOrientation(arg2); | |
13848 | ||
13849 | wxPyEndAllowThreads(__tstate); | |
13850 | if (PyErr_Occurred()) SWIG_fail; | |
13851 | } | |
13852 | Py_INCREF(Py_None); resultobj = Py_None; | |
13853 | return resultobj; | |
13854 | fail: | |
13855 | return NULL; | |
13856 | } | |
13857 | ||
13858 | ||
c32bde28 | 13859 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13860 | PyObject *resultobj; |
13861 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13862 | int arg2 ; | |
13863 | PyObject * obj0 = 0 ; | |
994141e6 | 13864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13865 | char *kwnames[] = { |
13866 | (char *) "self",(char *) "pos", NULL | |
13867 | }; | |
13868 | ||
994141e6 | 13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13872 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13873 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13874 | { |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13876 | (arg1)->SetPosition(arg2); | |
13877 | ||
13878 | wxPyEndAllowThreads(__tstate); | |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
13880 | } | |
13881 | Py_INCREF(Py_None); resultobj = Py_None; | |
13882 | return resultobj; | |
13883 | fail: | |
13884 | return NULL; | |
13885 | } | |
13886 | ||
13887 | ||
c32bde28 | 13888 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13889 | PyObject *obj; |
13890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13891 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13892 | Py_INCREF(obj); | |
13893 | return Py_BuildValue((char *)""); | |
13894 | } | |
c32bde28 | 13895 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13896 | PyObject *resultobj; |
13897 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13898 | int arg2 = (int) 0 ; | |
13899 | int arg3 = (int) 0 ; | |
13900 | wxScrollWinEvent *result; | |
994141e6 RD |
13901 | PyObject * obj0 = 0 ; |
13902 | PyObject * obj1 = 0 ; | |
13903 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13904 | char *kwnames[] = { |
13905 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13906 | }; | |
13907 | ||
994141e6 RD |
13908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13909 | if (obj0) { | |
c32bde28 | 13910 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 13911 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13912 | } |
13913 | if (obj1) { | |
c32bde28 | 13914 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13915 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
13916 | } |
13917 | if (obj2) { | |
c32bde28 | 13918 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13919 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13920 | } |
d14a1e28 RD |
13921 | { |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13923 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13924 | ||
13925 | wxPyEndAllowThreads(__tstate); | |
13926 | if (PyErr_Occurred()) SWIG_fail; | |
13927 | } | |
15afbcd0 | 13928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13929 | return resultobj; |
13930 | fail: | |
13931 | return NULL; | |
13932 | } | |
13933 | ||
13934 | ||
c32bde28 | 13935 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13936 | PyObject *resultobj; |
13937 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13938 | int result; | |
13939 | PyObject * obj0 = 0 ; | |
13940 | char *kwnames[] = { | |
13941 | (char *) "self", NULL | |
13942 | }; | |
13943 | ||
13944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13947 | { |
13948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13949 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13950 | ||
13951 | wxPyEndAllowThreads(__tstate); | |
13952 | if (PyErr_Occurred()) SWIG_fail; | |
13953 | } | |
c32bde28 | 13954 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13955 | return resultobj; |
13956 | fail: | |
13957 | return NULL; | |
13958 | } | |
13959 | ||
13960 | ||
c32bde28 | 13961 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13962 | PyObject *resultobj; |
13963 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13964 | int result; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | char *kwnames[] = { | |
13967 | (char *) "self", NULL | |
13968 | }; | |
13969 | ||
13970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13973 | { |
13974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13975 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13976 | ||
13977 | wxPyEndAllowThreads(__tstate); | |
13978 | if (PyErr_Occurred()) SWIG_fail; | |
13979 | } | |
c32bde28 | 13980 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13981 | return resultobj; |
13982 | fail: | |
13983 | return NULL; | |
13984 | } | |
13985 | ||
13986 | ||
c32bde28 | 13987 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13988 | PyObject *resultobj; |
13989 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13990 | int arg2 ; | |
13991 | PyObject * obj0 = 0 ; | |
994141e6 | 13992 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13993 | char *kwnames[] = { |
13994 | (char *) "self",(char *) "orient", NULL | |
13995 | }; | |
13996 | ||
994141e6 | 13997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14000 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14001 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14002 | { |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | (arg1)->SetOrientation(arg2); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
14009 | Py_INCREF(Py_None); resultobj = Py_None; | |
14010 | return resultobj; | |
14011 | fail: | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
c32bde28 | 14016 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14017 | PyObject *resultobj; |
14018 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14019 | int arg2 ; | |
14020 | PyObject * obj0 = 0 ; | |
994141e6 | 14021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14022 | char *kwnames[] = { |
14023 | (char *) "self",(char *) "pos", NULL | |
14024 | }; | |
14025 | ||
994141e6 | 14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14029 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14030 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14031 | { |
14032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14033 | (arg1)->SetPosition(arg2); | |
14034 | ||
14035 | wxPyEndAllowThreads(__tstate); | |
14036 | if (PyErr_Occurred()) SWIG_fail; | |
14037 | } | |
14038 | Py_INCREF(Py_None); resultobj = Py_None; | |
14039 | return resultobj; | |
14040 | fail: | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
c32bde28 | 14045 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14046 | PyObject *obj; |
14047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14048 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
14049 | Py_INCREF(obj); | |
14050 | return Py_BuildValue((char *)""); | |
14051 | } | |
c32bde28 | 14052 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14053 | PyObject *resultobj; |
14054 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14055 | wxMouseEvent *result; | |
994141e6 | 14056 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
14057 | char *kwnames[] = { |
14058 | (char *) "mouseType", NULL | |
14059 | }; | |
14060 | ||
994141e6 RD |
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
14062 | if (obj0) { | |
c32bde28 | 14063 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 14064 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14065 | } |
d14a1e28 RD |
14066 | { |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | { | |
412d302d | 14074 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
14075 | } |
14076 | return resultobj; | |
14077 | fail: | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
c32bde28 | 14082 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14083 | PyObject *resultobj; |
14084 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14085 | bool result; | |
14086 | PyObject * obj0 = 0 ; | |
14087 | char *kwnames[] = { | |
14088 | (char *) "self", NULL | |
14089 | }; | |
14090 | ||
14091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14094 | { |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
14097 | ||
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
4f89f6a3 RD |
14101 | { |
14102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14103 | } | |
d14a1e28 RD |
14104 | return resultobj; |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
c32bde28 | 14110 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14111 | PyObject *resultobj; |
14112 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14113 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14114 | bool result; | |
14115 | PyObject * obj0 = 0 ; | |
994141e6 | 14116 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14117 | char *kwnames[] = { |
14118 | (char *) "self",(char *) "but", NULL | |
14119 | }; | |
14120 | ||
994141e6 | 14121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 14124 | if (obj1) { |
c32bde28 | 14125 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14126 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14127 | } |
d14a1e28 RD |
14128 | { |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
4f89f6a3 RD |
14135 | { |
14136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14137 | } | |
d14a1e28 RD |
14138 | return resultobj; |
14139 | fail: | |
14140 | return NULL; | |
14141 | } | |
14142 | ||
14143 | ||
c32bde28 | 14144 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14145 | PyObject *resultobj; |
14146 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14147 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14148 | bool result; | |
14149 | PyObject * obj0 = 0 ; | |
994141e6 | 14150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14151 | char *kwnames[] = { |
14152 | (char *) "self",(char *) "but", NULL | |
14153 | }; | |
14154 | ||
994141e6 | 14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 14158 | if (obj1) { |
c32bde28 | 14159 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14160 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14161 | } |
d14a1e28 RD |
14162 | { |
14163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14164 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
14165 | ||
14166 | wxPyEndAllowThreads(__tstate); | |
14167 | if (PyErr_Occurred()) SWIG_fail; | |
14168 | } | |
4f89f6a3 RD |
14169 | { |
14170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14171 | } | |
d14a1e28 RD |
14172 | return resultobj; |
14173 | fail: | |
14174 | return NULL; | |
14175 | } | |
14176 | ||
14177 | ||
c32bde28 | 14178 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14179 | PyObject *resultobj; |
14180 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14181 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14182 | bool result; | |
14183 | PyObject * obj0 = 0 ; | |
994141e6 | 14184 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14185 | char *kwnames[] = { |
14186 | (char *) "self",(char *) "but", NULL | |
14187 | }; | |
14188 | ||
994141e6 | 14189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 14192 | if (obj1) { |
c32bde28 | 14193 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14194 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14195 | } |
d14a1e28 RD |
14196 | { |
14197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14198 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14199 | ||
14200 | wxPyEndAllowThreads(__tstate); | |
14201 | if (PyErr_Occurred()) SWIG_fail; | |
14202 | } | |
4f89f6a3 RD |
14203 | { |
14204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14205 | } | |
d14a1e28 RD |
14206 | return resultobj; |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
c32bde28 | 14212 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14213 | PyObject *resultobj; |
14214 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14215 | int arg2 ; | |
14216 | bool result; | |
14217 | PyObject * obj0 = 0 ; | |
994141e6 | 14218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14219 | char *kwnames[] = { |
14220 | (char *) "self",(char *) "but", NULL | |
14221 | }; | |
14222 | ||
994141e6 | 14223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14226 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14228 | { |
14229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14230 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14231 | ||
14232 | wxPyEndAllowThreads(__tstate); | |
14233 | if (PyErr_Occurred()) SWIG_fail; | |
14234 | } | |
4f89f6a3 RD |
14235 | { |
14236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14237 | } | |
d14a1e28 RD |
14238 | return resultobj; |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
c32bde28 | 14244 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14245 | PyObject *resultobj; |
14246 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14247 | int arg2 ; | |
14248 | bool result; | |
14249 | PyObject * obj0 = 0 ; | |
994141e6 | 14250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14251 | char *kwnames[] = { |
14252 | (char *) "self",(char *) "but", NULL | |
14253 | }; | |
14254 | ||
994141e6 | 14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14258 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14259 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14260 | { |
14261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14262 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14263 | ||
14264 | wxPyEndAllowThreads(__tstate); | |
14265 | if (PyErr_Occurred()) SWIG_fail; | |
14266 | } | |
4f89f6a3 RD |
14267 | { |
14268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14269 | } | |
d14a1e28 RD |
14270 | return resultobj; |
14271 | fail: | |
14272 | return NULL; | |
14273 | } | |
14274 | ||
14275 | ||
c32bde28 | 14276 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14277 | PyObject *resultobj; |
14278 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14279 | int result; | |
14280 | PyObject * obj0 = 0 ; | |
14281 | char *kwnames[] = { | |
14282 | (char *) "self", NULL | |
14283 | }; | |
14284 | ||
14285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14288 | { |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14291 | ||
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
c32bde28 | 14295 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14296 | return resultobj; |
14297 | fail: | |
14298 | return NULL; | |
14299 | } | |
14300 | ||
14301 | ||
c32bde28 | 14302 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14303 | PyObject *resultobj; |
14304 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14305 | bool result; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | char *kwnames[] = { | |
14308 | (char *) "self", NULL | |
14309 | }; | |
14310 | ||
14311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14314 | { |
14315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14316 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14317 | ||
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
4f89f6a3 RD |
14321 | { |
14322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14323 | } | |
d14a1e28 RD |
14324 | return resultobj; |
14325 | fail: | |
14326 | return NULL; | |
14327 | } | |
14328 | ||
14329 | ||
c32bde28 | 14330 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14331 | PyObject *resultobj; |
14332 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14333 | bool result; | |
14334 | PyObject * obj0 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "self", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14342 | { |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
4f89f6a3 RD |
14349 | { |
14350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14351 | } | |
d14a1e28 RD |
14352 | return resultobj; |
14353 | fail: | |
14354 | return NULL; | |
14355 | } | |
14356 | ||
14357 | ||
c32bde28 | 14358 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14359 | PyObject *resultobj; |
14360 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14361 | bool result; | |
14362 | PyObject * obj0 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14370 | { |
14371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14372 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14373 | ||
14374 | wxPyEndAllowThreads(__tstate); | |
14375 | if (PyErr_Occurred()) SWIG_fail; | |
14376 | } | |
4f89f6a3 RD |
14377 | { |
14378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14379 | } | |
d14a1e28 RD |
14380 | return resultobj; |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
c32bde28 | 14386 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14387 | PyObject *resultobj; |
14388 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14389 | bool result; | |
14390 | PyObject * obj0 = 0 ; | |
14391 | char *kwnames[] = { | |
14392 | (char *) "self", NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14398 | { |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
4f89f6a3 RD |
14405 | { |
14406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14407 | } | |
d14a1e28 RD |
14408 | return resultobj; |
14409 | fail: | |
14410 | return NULL; | |
14411 | } | |
14412 | ||
14413 | ||
c32bde28 | 14414 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14415 | PyObject *resultobj; |
14416 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14417 | bool result; | |
14418 | PyObject * obj0 = 0 ; | |
14419 | char *kwnames[] = { | |
14420 | (char *) "self", NULL | |
14421 | }; | |
14422 | ||
14423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14426 | { | |
14427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14428 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14429 | ||
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | { | |
14434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14435 | } | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
c32bde28 | 14442 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14443 | PyObject *resultobj; |
14444 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14445 | bool result; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14454 | { |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14457 | ||
14458 | wxPyEndAllowThreads(__tstate); | |
14459 | if (PyErr_Occurred()) SWIG_fail; | |
14460 | } | |
4f89f6a3 RD |
14461 | { |
14462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14463 | } | |
d14a1e28 RD |
14464 | return resultobj; |
14465 | fail: | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
c32bde28 | 14470 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14471 | PyObject *resultobj; |
14472 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14473 | bool result; | |
14474 | PyObject * obj0 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14482 | { |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
4f89f6a3 RD |
14489 | { |
14490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14491 | } | |
d14a1e28 RD |
14492 | return resultobj; |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
c32bde28 | 14498 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14499 | PyObject *resultobj; |
14500 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14501 | bool result; | |
14502 | PyObject * obj0 = 0 ; | |
14503 | char *kwnames[] = { | |
14504 | (char *) "self", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14510 | { |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
4f89f6a3 RD |
14517 | { |
14518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14519 | } | |
d14a1e28 RD |
14520 | return resultobj; |
14521 | fail: | |
14522 | return NULL; | |
14523 | } | |
14524 | ||
14525 | ||
c32bde28 | 14526 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14527 | PyObject *resultobj; |
14528 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14529 | bool result; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self", NULL | |
14533 | }; | |
14534 | ||
14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14538 | { |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
4f89f6a3 RD |
14545 | { |
14546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14547 | } | |
d14a1e28 RD |
14548 | return resultobj; |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
c32bde28 | 14554 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14555 | PyObject *resultobj; |
14556 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14557 | bool result; | |
14558 | PyObject * obj0 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14566 | { |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
4f89f6a3 RD |
14573 | { |
14574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14575 | } | |
d14a1e28 RD |
14576 | return resultobj; |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
c32bde28 | 14582 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14583 | PyObject *resultobj; |
14584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14585 | bool result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14594 | { |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14596 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14597 | ||
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
4f89f6a3 RD |
14601 | { |
14602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14603 | } | |
d14a1e28 RD |
14604 | return resultobj; |
14605 | fail: | |
14606 | return NULL; | |
14607 | } | |
14608 | ||
14609 | ||
c32bde28 | 14610 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14611 | PyObject *resultobj; |
14612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14613 | bool result; | |
14614 | PyObject * obj0 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14622 | { |
14623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14624 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14625 | ||
14626 | wxPyEndAllowThreads(__tstate); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | } | |
4f89f6a3 RD |
14629 | { |
14630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14631 | } | |
d14a1e28 RD |
14632 | return resultobj; |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
c32bde28 | 14638 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14639 | PyObject *resultobj; |
14640 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14641 | bool result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14650 | { |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
4f89f6a3 RD |
14657 | { |
14658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14659 | } | |
d14a1e28 RD |
14660 | return resultobj; |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
c32bde28 | 14666 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14667 | PyObject *resultobj; |
14668 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14669 | bool result; | |
14670 | PyObject * obj0 = 0 ; | |
14671 | char *kwnames[] = { | |
14672 | (char *) "self", NULL | |
14673 | }; | |
14674 | ||
14675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14678 | { |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
4f89f6a3 RD |
14685 | { |
14686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14687 | } | |
d14a1e28 RD |
14688 | return resultobj; |
14689 | fail: | |
14690 | return NULL; | |
14691 | } | |
14692 | ||
14693 | ||
c32bde28 | 14694 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14695 | PyObject *resultobj; |
14696 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14697 | bool result; | |
14698 | PyObject * obj0 = 0 ; | |
14699 | char *kwnames[] = { | |
14700 | (char *) "self", NULL | |
14701 | }; | |
14702 | ||
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14706 | { |
14707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14708 | result = (bool)(arg1)->LeftIsDown(); | |
14709 | ||
14710 | wxPyEndAllowThreads(__tstate); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
4f89f6a3 RD |
14713 | { |
14714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14715 | } | |
d14a1e28 RD |
14716 | return resultobj; |
14717 | fail: | |
14718 | return NULL; | |
14719 | } | |
14720 | ||
14721 | ||
c32bde28 | 14722 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14723 | PyObject *resultobj; |
14724 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14725 | bool result; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14734 | { |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (bool)(arg1)->MiddleIsDown(); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
4f89f6a3 RD |
14741 | { |
14742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14743 | } | |
d14a1e28 RD |
14744 | return resultobj; |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
c32bde28 | 14750 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14751 | PyObject *resultobj; |
14752 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14753 | bool result; | |
14754 | PyObject * obj0 = 0 ; | |
14755 | char *kwnames[] = { | |
14756 | (char *) "self", NULL | |
14757 | }; | |
14758 | ||
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14762 | { |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14764 | result = (bool)(arg1)->RightIsDown(); | |
14765 | ||
14766 | wxPyEndAllowThreads(__tstate); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
14768 | } | |
4f89f6a3 RD |
14769 | { |
14770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14771 | } | |
d14a1e28 RD |
14772 | return resultobj; |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
c32bde28 | 14778 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14779 | PyObject *resultobj; |
14780 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14781 | bool result; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14790 | { |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
4f89f6a3 RD |
14797 | { |
14798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14799 | } | |
d14a1e28 RD |
14800 | return resultobj; |
14801 | fail: | |
14802 | return NULL; | |
14803 | } | |
14804 | ||
14805 | ||
c32bde28 | 14806 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14807 | PyObject *resultobj; |
14808 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14809 | bool result; | |
14810 | PyObject * obj0 = 0 ; | |
14811 | char *kwnames[] = { | |
14812 | (char *) "self", NULL | |
14813 | }; | |
14814 | ||
14815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14818 | { |
14819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14820 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14821 | ||
14822 | wxPyEndAllowThreads(__tstate); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | } | |
4f89f6a3 RD |
14825 | { |
14826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14827 | } | |
d14a1e28 RD |
14828 | return resultobj; |
14829 | fail: | |
14830 | return NULL; | |
14831 | } | |
14832 | ||
14833 | ||
c32bde28 | 14834 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14835 | PyObject *resultobj; |
14836 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14837 | bool result; | |
14838 | PyObject * obj0 = 0 ; | |
14839 | char *kwnames[] = { | |
14840 | (char *) "self", NULL | |
14841 | }; | |
14842 | ||
14843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14846 | { |
14847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14848 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14849 | ||
14850 | wxPyEndAllowThreads(__tstate); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | } | |
4f89f6a3 RD |
14853 | { |
14854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14855 | } | |
d14a1e28 RD |
14856 | return resultobj; |
14857 | fail: | |
14858 | return NULL; | |
14859 | } | |
14860 | ||
14861 | ||
c32bde28 | 14862 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14863 | PyObject *resultobj; |
14864 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14865 | bool result; | |
14866 | PyObject * obj0 = 0 ; | |
14867 | char *kwnames[] = { | |
14868 | (char *) "self", NULL | |
14869 | }; | |
14870 | ||
14871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14874 | { |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14876 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14877 | ||
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
4f89f6a3 RD |
14881 | { |
14882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14883 | } | |
d14a1e28 RD |
14884 | return resultobj; |
14885 | fail: | |
14886 | return NULL; | |
14887 | } | |
14888 | ||
14889 | ||
c32bde28 | 14890 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14891 | PyObject *resultobj; |
14892 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14893 | wxPoint result; | |
14894 | PyObject * obj0 = 0 ; | |
14895 | char *kwnames[] = { | |
14896 | (char *) "self", NULL | |
14897 | }; | |
14898 | ||
14899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14902 | { |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | result = (arg1)->GetPosition(); | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | { | |
14910 | wxPoint * resultptr; | |
14911 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14912 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14913 | } |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
c32bde28 | 14920 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14921 | PyObject *resultobj; |
14922 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14923 | long *arg2 = (long *) 0 ; | |
14924 | long *arg3 = (long *) 0 ; | |
14925 | long temp2 ; | |
c32bde28 | 14926 | int res2 = 0 ; |
d14a1e28 | 14927 | long temp3 ; |
c32bde28 | 14928 | int res3 = 0 ; |
d14a1e28 RD |
14929 | PyObject * obj0 = 0 ; |
14930 | char *kwnames[] = { | |
14931 | (char *) "self", NULL | |
14932 | }; | |
14933 | ||
c32bde28 RD |
14934 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14935 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 14936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14939 | { |
14940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14941 | (arg1)->GetPosition(arg2,arg3); | |
14942 | ||
14943 | wxPyEndAllowThreads(__tstate); | |
14944 | if (PyErr_Occurred()) SWIG_fail; | |
14945 | } | |
14946 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14947 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14948 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
14949 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14950 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
14951 | return resultobj; |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
c32bde28 | 14957 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14958 | PyObject *resultobj; |
14959 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14960 | wxDC *arg2 = 0 ; | |
14961 | wxPoint result; | |
14962 | PyObject * obj0 = 0 ; | |
14963 | PyObject * obj1 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "self",(char *) "dc", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14972 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14973 | SWIG_fail; | |
d14a1e28 | 14974 | if (arg2 == NULL) { |
15afbcd0 RD |
14975 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14976 | SWIG_fail; | |
d14a1e28 RD |
14977 | } |
14978 | { | |
14979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14980 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14981 | ||
14982 | wxPyEndAllowThreads(__tstate); | |
14983 | if (PyErr_Occurred()) SWIG_fail; | |
14984 | } | |
14985 | { | |
14986 | wxPoint * resultptr; | |
14987 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14988 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14989 | } |
14990 | return resultobj; | |
14991 | fail: | |
14992 | return NULL; | |
14993 | } | |
14994 | ||
14995 | ||
c32bde28 | 14996 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14997 | PyObject *resultobj; |
14998 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14999 | int result; |
d14a1e28 RD |
15000 | PyObject * obj0 = 0 ; |
15001 | char *kwnames[] = { | |
15002 | (char *) "self", NULL | |
15003 | }; | |
15004 | ||
15005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15008 | { |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15010 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15011 | |
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
c32bde28 | 15015 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15016 | return resultobj; |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
c32bde28 | 15022 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15023 | PyObject *resultobj; |
15024 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 15025 | int result; |
d14a1e28 RD |
15026 | PyObject * obj0 = 0 ; |
15027 | char *kwnames[] = { | |
15028 | (char *) "self", NULL | |
15029 | }; | |
15030 | ||
15031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15034 | { |
15035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15036 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15037 | |
15038 | wxPyEndAllowThreads(__tstate); | |
15039 | if (PyErr_Occurred()) SWIG_fail; | |
15040 | } | |
c32bde28 | 15041 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15042 | return resultobj; |
15043 | fail: | |
15044 | return NULL; | |
15045 | } | |
15046 | ||
15047 | ||
c32bde28 | 15048 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15049 | PyObject *resultobj; |
15050 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15051 | int result; | |
15052 | PyObject * obj0 = 0 ; | |
15053 | char *kwnames[] = { | |
15054 | (char *) "self", NULL | |
15055 | }; | |
15056 | ||
15057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15060 | { |
15061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15062 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
15063 | ||
15064 | wxPyEndAllowThreads(__tstate); | |
15065 | if (PyErr_Occurred()) SWIG_fail; | |
15066 | } | |
c32bde28 | 15067 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15068 | return resultobj; |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
c32bde28 | 15074 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15075 | PyObject *resultobj; |
15076 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15077 | int result; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | char *kwnames[] = { | |
15080 | (char *) "self", NULL | |
15081 | }; | |
15082 | ||
15083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15086 | { |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
c32bde28 | 15093 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15094 | return resultobj; |
15095 | fail: | |
15096 | return NULL; | |
15097 | } | |
15098 | ||
15099 | ||
c32bde28 | 15100 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15101 | PyObject *resultobj; |
15102 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15103 | int result; | |
15104 | PyObject * obj0 = 0 ; | |
15105 | char *kwnames[] = { | |
15106 | (char *) "self", NULL | |
15107 | }; | |
15108 | ||
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15112 | { |
15113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15114 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
15115 | ||
15116 | wxPyEndAllowThreads(__tstate); | |
15117 | if (PyErr_Occurred()) SWIG_fail; | |
15118 | } | |
c32bde28 | 15119 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15120 | return resultobj; |
15121 | fail: | |
15122 | return NULL; | |
15123 | } | |
15124 | ||
15125 | ||
c32bde28 | 15126 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15127 | PyObject *resultobj; |
15128 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15129 | bool result; | |
15130 | PyObject * obj0 = 0 ; | |
15131 | char *kwnames[] = { | |
15132 | (char *) "self", NULL | |
15133 | }; | |
15134 | ||
15135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15138 | { |
15139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15140 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
15141 | ||
15142 | wxPyEndAllowThreads(__tstate); | |
15143 | if (PyErr_Occurred()) SWIG_fail; | |
15144 | } | |
4f89f6a3 RD |
15145 | { |
15146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15147 | } | |
d14a1e28 RD |
15148 | return resultobj; |
15149 | fail: | |
15150 | return NULL; | |
15151 | } | |
15152 | ||
15153 | ||
c32bde28 | 15154 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15155 | PyObject *resultobj; |
15156 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 15157 | int arg2 ; |
d14a1e28 | 15158 | PyObject * obj0 = 0 ; |
994141e6 | 15159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15160 | char *kwnames[] = { |
15161 | (char *) "self",(char *) "m_x", NULL | |
15162 | }; | |
15163 | ||
994141e6 | 15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15167 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15168 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15169 | if (arg1) (arg1)->m_x = arg2; |
15170 | ||
15171 | Py_INCREF(Py_None); resultobj = Py_None; | |
15172 | return resultobj; | |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
c32bde28 | 15178 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15179 | PyObject *resultobj; |
15180 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 15181 | int result; |
d14a1e28 RD |
15182 | PyObject * obj0 = 0 ; |
15183 | char *kwnames[] = { | |
15184 | (char *) "self", NULL | |
15185 | }; | |
15186 | ||
15187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15190 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15191 | |
c32bde28 | 15192 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15193 | return resultobj; |
15194 | fail: | |
15195 | return NULL; | |
15196 | } | |
15197 | ||
15198 | ||
c32bde28 | 15199 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15200 | PyObject *resultobj; |
15201 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 15202 | int arg2 ; |
d14a1e28 | 15203 | PyObject * obj0 = 0 ; |
994141e6 | 15204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15205 | char *kwnames[] = { |
15206 | (char *) "self",(char *) "m_y", NULL | |
15207 | }; | |
15208 | ||
994141e6 | 15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15212 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15213 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15214 | if (arg1) (arg1)->m_y = arg2; |
15215 | ||
15216 | Py_INCREF(Py_None); resultobj = Py_None; | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
c32bde28 | 15223 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15224 | PyObject *resultobj; |
15225 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 15226 | int result; |
d14a1e28 RD |
15227 | PyObject * obj0 = 0 ; |
15228 | char *kwnames[] = { | |
15229 | (char *) "self", NULL | |
15230 | }; | |
15231 | ||
15232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15235 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15236 | |
c32bde28 | 15237 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15238 | return resultobj; |
15239 | fail: | |
15240 | return NULL; | |
15241 | } | |
15242 | ||
15243 | ||
c32bde28 | 15244 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15245 | PyObject *resultobj; |
15246 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15247 | bool arg2 ; | |
15248 | PyObject * obj0 = 0 ; | |
15249 | PyObject * obj1 = 0 ; | |
15250 | char *kwnames[] = { | |
15251 | (char *) "self",(char *) "m_leftDown", NULL | |
15252 | }; | |
15253 | ||
15254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15257 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15258 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15259 | if (arg1) (arg1)->m_leftDown = arg2; |
15260 | ||
15261 | Py_INCREF(Py_None); resultobj = Py_None; | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
c32bde28 | 15268 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15269 | PyObject *resultobj; |
15270 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15271 | bool result; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15280 | result = (bool) ((arg1)->m_leftDown); |
15281 | ||
4f89f6a3 RD |
15282 | { |
15283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15284 | } | |
d14a1e28 RD |
15285 | return resultobj; |
15286 | fail: | |
15287 | return NULL; | |
15288 | } | |
15289 | ||
15290 | ||
c32bde28 | 15291 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15292 | PyObject *resultobj; |
15293 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15294 | bool arg2 ; | |
15295 | PyObject * obj0 = 0 ; | |
15296 | PyObject * obj1 = 0 ; | |
15297 | char *kwnames[] = { | |
15298 | (char *) "self",(char *) "m_middleDown", NULL | |
15299 | }; | |
15300 | ||
15301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15304 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15305 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15306 | if (arg1) (arg1)->m_middleDown = arg2; |
15307 | ||
15308 | Py_INCREF(Py_None); resultobj = Py_None; | |
15309 | return resultobj; | |
15310 | fail: | |
15311 | return NULL; | |
15312 | } | |
15313 | ||
15314 | ||
c32bde28 | 15315 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15316 | PyObject *resultobj; |
15317 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15318 | bool result; | |
15319 | PyObject * obj0 = 0 ; | |
15320 | char *kwnames[] = { | |
15321 | (char *) "self", NULL | |
15322 | }; | |
15323 | ||
15324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15327 | result = (bool) ((arg1)->m_middleDown); |
15328 | ||
4f89f6a3 RD |
15329 | { |
15330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15331 | } | |
d14a1e28 RD |
15332 | return resultobj; |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
c32bde28 | 15338 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15339 | PyObject *resultobj; |
15340 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15341 | bool arg2 ; | |
15342 | PyObject * obj0 = 0 ; | |
15343 | PyObject * obj1 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "self",(char *) "m_rightDown", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15351 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15353 | if (arg1) (arg1)->m_rightDown = arg2; |
15354 | ||
15355 | Py_INCREF(Py_None); resultobj = Py_None; | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
c32bde28 | 15362 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15363 | PyObject *resultobj; |
15364 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15365 | bool result; | |
15366 | PyObject * obj0 = 0 ; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "self", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15374 | result = (bool) ((arg1)->m_rightDown); |
15375 | ||
4f89f6a3 RD |
15376 | { |
15377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15378 | } | |
d14a1e28 RD |
15379 | return resultobj; |
15380 | fail: | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
c32bde28 | 15385 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15386 | PyObject *resultobj; |
15387 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15388 | bool arg2 ; | |
15389 | PyObject * obj0 = 0 ; | |
15390 | PyObject * obj1 = 0 ; | |
15391 | char *kwnames[] = { | |
15392 | (char *) "self",(char *) "m_controlDown", NULL | |
15393 | }; | |
15394 | ||
15395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15398 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15399 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15400 | if (arg1) (arg1)->m_controlDown = arg2; |
15401 | ||
15402 | Py_INCREF(Py_None); resultobj = Py_None; | |
15403 | return resultobj; | |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
c32bde28 | 15409 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15410 | PyObject *resultobj; |
15411 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15412 | bool result; | |
15413 | PyObject * obj0 = 0 ; | |
15414 | char *kwnames[] = { | |
15415 | (char *) "self", NULL | |
15416 | }; | |
15417 | ||
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15421 | result = (bool) ((arg1)->m_controlDown); |
15422 | ||
4f89f6a3 RD |
15423 | { |
15424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15425 | } | |
d14a1e28 RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
c32bde28 | 15432 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15433 | PyObject *resultobj; |
15434 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15435 | bool arg2 ; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | PyObject * obj1 = 0 ; | |
15438 | char *kwnames[] = { | |
15439 | (char *) "self",(char *) "m_shiftDown", NULL | |
15440 | }; | |
15441 | ||
15442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15445 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15446 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15447 | if (arg1) (arg1)->m_shiftDown = arg2; |
15448 | ||
15449 | Py_INCREF(Py_None); resultobj = Py_None; | |
15450 | return resultobj; | |
15451 | fail: | |
15452 | return NULL; | |
15453 | } | |
15454 | ||
15455 | ||
c32bde28 | 15456 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15457 | PyObject *resultobj; |
15458 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15459 | bool result; | |
15460 | PyObject * obj0 = 0 ; | |
15461 | char *kwnames[] = { | |
15462 | (char *) "self", NULL | |
15463 | }; | |
15464 | ||
15465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15468 | result = (bool) ((arg1)->m_shiftDown); |
15469 | ||
4f89f6a3 RD |
15470 | { |
15471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15472 | } | |
d14a1e28 RD |
15473 | return resultobj; |
15474 | fail: | |
15475 | return NULL; | |
15476 | } | |
15477 | ||
15478 | ||
c32bde28 | 15479 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15480 | PyObject *resultobj; |
15481 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15482 | bool arg2 ; | |
15483 | PyObject * obj0 = 0 ; | |
15484 | PyObject * obj1 = 0 ; | |
15485 | char *kwnames[] = { | |
15486 | (char *) "self",(char *) "m_altDown", NULL | |
15487 | }; | |
15488 | ||
15489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15492 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15493 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15494 | if (arg1) (arg1)->m_altDown = arg2; |
15495 | ||
15496 | Py_INCREF(Py_None); resultobj = Py_None; | |
15497 | return resultobj; | |
15498 | fail: | |
15499 | return NULL; | |
15500 | } | |
15501 | ||
15502 | ||
c32bde28 | 15503 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15504 | PyObject *resultobj; |
15505 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15506 | bool result; | |
15507 | PyObject * obj0 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15515 | result = (bool) ((arg1)->m_altDown); |
15516 | ||
4f89f6a3 RD |
15517 | { |
15518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15519 | } | |
d14a1e28 RD |
15520 | return resultobj; |
15521 | fail: | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
c32bde28 | 15526 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15527 | PyObject *resultobj; |
15528 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15529 | bool arg2 ; | |
15530 | PyObject * obj0 = 0 ; | |
15531 | PyObject * obj1 = 0 ; | |
15532 | char *kwnames[] = { | |
15533 | (char *) "self",(char *) "m_metaDown", NULL | |
15534 | }; | |
15535 | ||
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15539 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15540 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15541 | if (arg1) (arg1)->m_metaDown = arg2; |
15542 | ||
15543 | Py_INCREF(Py_None); resultobj = Py_None; | |
15544 | return resultobj; | |
15545 | fail: | |
15546 | return NULL; | |
15547 | } | |
15548 | ||
15549 | ||
c32bde28 | 15550 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15551 | PyObject *resultobj; |
15552 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15553 | bool result; | |
15554 | PyObject * obj0 = 0 ; | |
15555 | char *kwnames[] = { | |
15556 | (char *) "self", NULL | |
15557 | }; | |
15558 | ||
15559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15562 | result = (bool) ((arg1)->m_metaDown); |
15563 | ||
4f89f6a3 RD |
15564 | { |
15565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15566 | } | |
d14a1e28 RD |
15567 | return resultobj; |
15568 | fail: | |
15569 | return NULL; | |
15570 | } | |
15571 | ||
15572 | ||
c32bde28 | 15573 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15574 | PyObject *resultobj; |
15575 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15576 | int arg2 ; | |
15577 | PyObject * obj0 = 0 ; | |
994141e6 | 15578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15579 | char *kwnames[] = { |
15580 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15581 | }; | |
15582 | ||
994141e6 | 15583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15586 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15587 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15588 | if (arg1) (arg1)->m_wheelRotation = arg2; |
15589 | ||
15590 | Py_INCREF(Py_None); resultobj = Py_None; | |
15591 | return resultobj; | |
15592 | fail: | |
15593 | return NULL; | |
15594 | } | |
15595 | ||
15596 | ||
c32bde28 | 15597 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15598 | PyObject *resultobj; |
15599 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15600 | int result; | |
15601 | PyObject * obj0 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15609 | result = (int) ((arg1)->m_wheelRotation); |
15610 | ||
c32bde28 | 15611 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15612 | return resultobj; |
15613 | fail: | |
15614 | return NULL; | |
15615 | } | |
15616 | ||
15617 | ||
c32bde28 | 15618 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15619 | PyObject *resultobj; |
15620 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15621 | int arg2 ; | |
15622 | PyObject * obj0 = 0 ; | |
994141e6 | 15623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15624 | char *kwnames[] = { |
15625 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15626 | }; | |
15627 | ||
994141e6 | 15628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15631 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15632 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15633 | if (arg1) (arg1)->m_wheelDelta = arg2; |
15634 | ||
15635 | Py_INCREF(Py_None); resultobj = Py_None; | |
15636 | return resultobj; | |
15637 | fail: | |
15638 | return NULL; | |
15639 | } | |
15640 | ||
15641 | ||
c32bde28 | 15642 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15643 | PyObject *resultobj; |
15644 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15645 | int result; | |
15646 | PyObject * obj0 = 0 ; | |
15647 | char *kwnames[] = { | |
15648 | (char *) "self", NULL | |
15649 | }; | |
15650 | ||
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15654 | result = (int) ((arg1)->m_wheelDelta); |
15655 | ||
c32bde28 | 15656 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15657 | return resultobj; |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
c32bde28 | 15663 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15664 | PyObject *resultobj; |
15665 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15666 | int arg2 ; | |
15667 | PyObject * obj0 = 0 ; | |
994141e6 | 15668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15669 | char *kwnames[] = { |
15670 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15671 | }; | |
15672 | ||
994141e6 | 15673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15676 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15677 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15678 | if (arg1) (arg1)->m_linesPerAction = arg2; |
15679 | ||
15680 | Py_INCREF(Py_None); resultobj = Py_None; | |
15681 | return resultobj; | |
15682 | fail: | |
15683 | return NULL; | |
15684 | } | |
15685 | ||
15686 | ||
c32bde28 | 15687 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15688 | PyObject *resultobj; |
15689 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15690 | int result; | |
15691 | PyObject * obj0 = 0 ; | |
15692 | char *kwnames[] = { | |
15693 | (char *) "self", NULL | |
15694 | }; | |
15695 | ||
15696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15699 | result = (int) ((arg1)->m_linesPerAction); |
15700 | ||
c32bde28 | 15701 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15702 | return resultobj; |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
c32bde28 | 15708 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15709 | PyObject *obj; |
15710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15711 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15712 | Py_INCREF(obj); | |
15713 | return Py_BuildValue((char *)""); | |
15714 | } | |
c32bde28 | 15715 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15716 | PyObject *resultobj; |
e811c8ce RD |
15717 | int arg1 = (int) 0 ; |
15718 | int arg2 = (int) 0 ; | |
d14a1e28 | 15719 | wxSetCursorEvent *result; |
994141e6 RD |
15720 | PyObject * obj0 = 0 ; |
15721 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15722 | char *kwnames[] = { |
15723 | (char *) "x",(char *) "y", NULL | |
15724 | }; | |
15725 | ||
994141e6 RD |
15726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15727 | if (obj0) { | |
c32bde28 | 15728 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 15729 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15730 | } |
15731 | if (obj1) { | |
c32bde28 | 15732 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15733 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15734 | } |
d14a1e28 RD |
15735 | { |
15736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15737 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15738 | ||
15739 | wxPyEndAllowThreads(__tstate); | |
15740 | if (PyErr_Occurred()) SWIG_fail; | |
15741 | } | |
15afbcd0 | 15742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15743 | return resultobj; |
15744 | fail: | |
15745 | return NULL; | |
15746 | } | |
15747 | ||
15748 | ||
c32bde28 | 15749 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15750 | PyObject *resultobj; |
15751 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15752 | int result; |
d14a1e28 RD |
15753 | PyObject * obj0 = 0 ; |
15754 | char *kwnames[] = { | |
15755 | (char *) "self", NULL | |
15756 | }; | |
15757 | ||
15758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15761 | { |
15762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15763 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15764 | |
15765 | wxPyEndAllowThreads(__tstate); | |
15766 | if (PyErr_Occurred()) SWIG_fail; | |
15767 | } | |
c32bde28 | 15768 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15769 | return resultobj; |
15770 | fail: | |
15771 | return NULL; | |
15772 | } | |
15773 | ||
15774 | ||
c32bde28 | 15775 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15776 | PyObject *resultobj; |
15777 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15778 | int result; |
d14a1e28 RD |
15779 | PyObject * obj0 = 0 ; |
15780 | char *kwnames[] = { | |
15781 | (char *) "self", NULL | |
15782 | }; | |
15783 | ||
15784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15787 | { |
15788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15789 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15790 | |
15791 | wxPyEndAllowThreads(__tstate); | |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
c32bde28 | 15794 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15795 | return resultobj; |
15796 | fail: | |
15797 | return NULL; | |
15798 | } | |
15799 | ||
15800 | ||
c32bde28 | 15801 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15802 | PyObject *resultobj; |
15803 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15804 | wxCursor *arg2 = 0 ; | |
15805 | PyObject * obj0 = 0 ; | |
15806 | PyObject * obj1 = 0 ; | |
15807 | char *kwnames[] = { | |
15808 | (char *) "self",(char *) "cursor", NULL | |
15809 | }; | |
15810 | ||
15811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15816 | SWIG_fail; | |
d14a1e28 | 15817 | if (arg2 == NULL) { |
15afbcd0 RD |
15818 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15819 | SWIG_fail; | |
d14a1e28 RD |
15820 | } |
15821 | { | |
15822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15823 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15824 | ||
15825 | wxPyEndAllowThreads(__tstate); | |
15826 | if (PyErr_Occurred()) SWIG_fail; | |
15827 | } | |
15828 | Py_INCREF(Py_None); resultobj = Py_None; | |
15829 | return resultobj; | |
15830 | fail: | |
15831 | return NULL; | |
15832 | } | |
15833 | ||
15834 | ||
c32bde28 | 15835 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15836 | PyObject *resultobj; |
15837 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15838 | wxCursor *result; | |
15839 | PyObject * obj0 = 0 ; | |
15840 | char *kwnames[] = { | |
15841 | (char *) "self", NULL | |
15842 | }; | |
15843 | ||
15844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15847 | { |
15848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15849 | { | |
15850 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15851 | result = (wxCursor *) &_result_ref; | |
15852 | } | |
15853 | ||
15854 | wxPyEndAllowThreads(__tstate); | |
15855 | if (PyErr_Occurred()) SWIG_fail; | |
15856 | } | |
4276dc52 RD |
15857 | { |
15858 | wxCursor* resultptr = new wxCursor(*result); | |
15859 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15860 | } | |
d14a1e28 RD |
15861 | return resultobj; |
15862 | fail: | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
c32bde28 | 15867 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15868 | PyObject *resultobj; |
15869 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15870 | bool result; | |
15871 | PyObject * obj0 = 0 ; | |
15872 | char *kwnames[] = { | |
15873 | (char *) "self", NULL | |
15874 | }; | |
15875 | ||
15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15879 | { |
15880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15881 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15882 | ||
15883 | wxPyEndAllowThreads(__tstate); | |
15884 | if (PyErr_Occurred()) SWIG_fail; | |
15885 | } | |
4f89f6a3 RD |
15886 | { |
15887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15888 | } | |
d14a1e28 RD |
15889 | return resultobj; |
15890 | fail: | |
15891 | return NULL; | |
15892 | } | |
15893 | ||
15894 | ||
c32bde28 | 15895 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15896 | PyObject *obj; |
15897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15898 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15899 | Py_INCREF(obj); | |
15900 | return Py_BuildValue((char *)""); | |
15901 | } | |
c32bde28 | 15902 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15903 | PyObject *resultobj; |
15904 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15905 | wxKeyEvent *result; | |
994141e6 | 15906 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15907 | char *kwnames[] = { |
15908 | (char *) "keyType", NULL | |
15909 | }; | |
15910 | ||
994141e6 RD |
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15912 | if (obj0) { | |
c32bde28 | 15913 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15914 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15915 | } |
d14a1e28 RD |
15916 | { |
15917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15918 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15919 | ||
15920 | wxPyEndAllowThreads(__tstate); | |
15921 | if (PyErr_Occurred()) SWIG_fail; | |
15922 | } | |
15afbcd0 | 15923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15924 | return resultobj; |
15925 | fail: | |
15926 | return NULL; | |
15927 | } | |
15928 | ||
15929 | ||
c32bde28 | 15930 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15931 | PyObject *resultobj; |
15932 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15933 | bool result; | |
15934 | PyObject * obj0 = 0 ; | |
15935 | char *kwnames[] = { | |
15936 | (char *) "self", NULL | |
15937 | }; | |
15938 | ||
15939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15942 | { |
15943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15944 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15945 | ||
15946 | wxPyEndAllowThreads(__tstate); | |
15947 | if (PyErr_Occurred()) SWIG_fail; | |
15948 | } | |
4f89f6a3 RD |
15949 | { |
15950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15951 | } | |
d14a1e28 RD |
15952 | return resultobj; |
15953 | fail: | |
15954 | return NULL; | |
15955 | } | |
15956 | ||
15957 | ||
c32bde28 | 15958 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15959 | PyObject *resultobj; |
15960 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15961 | bool result; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | char *kwnames[] = { | |
15964 | (char *) "self", NULL | |
15965 | }; | |
15966 | ||
15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15970 | { |
15971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15972 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15973 | ||
15974 | wxPyEndAllowThreads(__tstate); | |
15975 | if (PyErr_Occurred()) SWIG_fail; | |
15976 | } | |
4f89f6a3 RD |
15977 | { |
15978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15979 | } | |
d14a1e28 RD |
15980 | return resultobj; |
15981 | fail: | |
15982 | return NULL; | |
15983 | } | |
15984 | ||
15985 | ||
c32bde28 | 15986 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15987 | PyObject *resultobj; |
15988 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15989 | bool result; | |
15990 | PyObject * obj0 = 0 ; | |
15991 | char *kwnames[] = { | |
15992 | (char *) "self", NULL | |
15993 | }; | |
15994 | ||
15995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15998 | { |
15999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16000 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
16001 | ||
16002 | wxPyEndAllowThreads(__tstate); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
16004 | } | |
4f89f6a3 RD |
16005 | { |
16006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16007 | } | |
d14a1e28 RD |
16008 | return resultobj; |
16009 | fail: | |
16010 | return NULL; | |
16011 | } | |
16012 | ||
16013 | ||
c32bde28 | 16014 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16015 | PyObject *resultobj; |
16016 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16017 | bool result; | |
16018 | PyObject * obj0 = 0 ; | |
16019 | char *kwnames[] = { | |
16020 | (char *) "self", NULL | |
16021 | }; | |
16022 | ||
16023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16026 | { |
16027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16028 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
16029 | ||
16030 | wxPyEndAllowThreads(__tstate); | |
16031 | if (PyErr_Occurred()) SWIG_fail; | |
16032 | } | |
4f89f6a3 RD |
16033 | { |
16034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16035 | } | |
d14a1e28 RD |
16036 | return resultobj; |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
c32bde28 | 16042 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16043 | PyObject *resultobj; |
16044 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16045 | bool result; | |
16046 | PyObject * obj0 = 0 ; | |
16047 | char *kwnames[] = { | |
16048 | (char *) "self", NULL | |
16049 | }; | |
16050 | ||
16051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
16052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16054 | { | |
16055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16056 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
16057 | ||
16058 | wxPyEndAllowThreads(__tstate); | |
16059 | if (PyErr_Occurred()) SWIG_fail; | |
16060 | } | |
16061 | { | |
16062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16063 | } | |
16064 | return resultobj; | |
16065 | fail: | |
16066 | return NULL; | |
16067 | } | |
16068 | ||
16069 | ||
c32bde28 | 16070 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16071 | PyObject *resultobj; |
16072 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16073 | bool result; | |
16074 | PyObject * obj0 = 0 ; | |
16075 | char *kwnames[] = { | |
16076 | (char *) "self", NULL | |
16077 | }; | |
16078 | ||
16079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16082 | { |
16083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16084 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
16085 | ||
16086 | wxPyEndAllowThreads(__tstate); | |
16087 | if (PyErr_Occurred()) SWIG_fail; | |
16088 | } | |
4f89f6a3 RD |
16089 | { |
16090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16091 | } | |
d14a1e28 RD |
16092 | return resultobj; |
16093 | fail: | |
16094 | return NULL; | |
16095 | } | |
16096 | ||
16097 | ||
c32bde28 | 16098 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16099 | PyObject *resultobj; |
16100 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16101 | int result; | |
16102 | PyObject * obj0 = 0 ; | |
16103 | char *kwnames[] = { | |
16104 | (char *) "self", NULL | |
16105 | }; | |
16106 | ||
16107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16110 | { |
16111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16112 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
16113 | ||
16114 | wxPyEndAllowThreads(__tstate); | |
16115 | if (PyErr_Occurred()) SWIG_fail; | |
16116 | } | |
c32bde28 | 16117 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16118 | return resultobj; |
16119 | fail: | |
16120 | return NULL; | |
16121 | } | |
16122 | ||
16123 | ||
c32bde28 | 16124 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16125 | PyObject *resultobj; |
16126 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16127 | int result; | |
16128 | PyObject * obj0 = 0 ; | |
16129 | char *kwnames[] = { | |
16130 | (char *) "self", NULL | |
16131 | }; | |
16132 | ||
19272049 | 16133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16136 | { |
16137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 16138 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d14a1e28 RD |
16139 | |
16140 | wxPyEndAllowThreads(__tstate); | |
16141 | if (PyErr_Occurred()) SWIG_fail; | |
16142 | } | |
c32bde28 | 16143 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16144 | return resultobj; |
16145 | fail: | |
16146 | return NULL; | |
16147 | } | |
16148 | ||
16149 | ||
c32bde28 | 16150 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16151 | PyObject *resultobj; |
16152 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16153 | unsigned int result; |
d14a1e28 RD |
16154 | PyObject * obj0 = 0 ; |
16155 | char *kwnames[] = { | |
16156 | (char *) "self", NULL | |
16157 | }; | |
16158 | ||
16159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16162 | { |
16163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 16164 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
16165 | |
16166 | wxPyEndAllowThreads(__tstate); | |
16167 | if (PyErr_Occurred()) SWIG_fail; | |
16168 | } | |
c32bde28 | 16169 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
16170 | return resultobj; |
16171 | fail: | |
16172 | return NULL; | |
16173 | } | |
16174 | ||
16175 | ||
c32bde28 | 16176 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16177 | PyObject *resultobj; |
16178 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16179 | unsigned int result; |
d14a1e28 RD |
16180 | PyObject * obj0 = 0 ; |
16181 | char *kwnames[] = { | |
16182 | (char *) "self", NULL | |
16183 | }; | |
16184 | ||
16185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16188 | { |
16189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 16190 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
16191 | |
16192 | wxPyEndAllowThreads(__tstate); | |
16193 | if (PyErr_Occurred()) SWIG_fail; | |
16194 | } | |
c32bde28 | 16195 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
16196 | return resultobj; |
16197 | fail: | |
16198 | return NULL; | |
16199 | } | |
16200 | ||
16201 | ||
c32bde28 | 16202 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16203 | PyObject *resultobj; |
16204 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16205 | wxPoint result; | |
16206 | PyObject * obj0 = 0 ; | |
16207 | char *kwnames[] = { | |
16208 | (char *) "self", NULL | |
16209 | }; | |
16210 | ||
16211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16214 | { |
16215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16216 | result = (arg1)->GetPosition(); | |
16217 | ||
16218 | wxPyEndAllowThreads(__tstate); | |
16219 | if (PyErr_Occurred()) SWIG_fail; | |
16220 | } | |
16221 | { | |
16222 | wxPoint * resultptr; | |
16223 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 16224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16225 | } |
16226 | return resultobj; | |
16227 | fail: | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
c32bde28 | 16232 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16233 | PyObject *resultobj; |
16234 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16235 | long *arg2 = (long *) 0 ; | |
16236 | long *arg3 = (long *) 0 ; | |
16237 | long temp2 ; | |
c32bde28 | 16238 | int res2 = 0 ; |
d14a1e28 | 16239 | long temp3 ; |
c32bde28 | 16240 | int res3 = 0 ; |
d14a1e28 RD |
16241 | PyObject * obj0 = 0 ; |
16242 | char *kwnames[] = { | |
16243 | (char *) "self", NULL | |
16244 | }; | |
16245 | ||
c32bde28 RD |
16246 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16247 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | (arg1)->GetPosition(arg2,arg3); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
16258 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16259 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16260 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16261 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16262 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
16263 | return resultobj; |
16264 | fail: | |
16265 | return NULL; | |
16266 | } | |
16267 | ||
16268 | ||
c32bde28 | 16269 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16270 | PyObject *resultobj; |
16271 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16272 | int result; |
d14a1e28 RD |
16273 | PyObject * obj0 = 0 ; |
16274 | char *kwnames[] = { | |
16275 | (char *) "self", NULL | |
16276 | }; | |
16277 | ||
16278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16281 | { |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 16283 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
16284 | |
16285 | wxPyEndAllowThreads(__tstate); | |
16286 | if (PyErr_Occurred()) SWIG_fail; | |
16287 | } | |
c32bde28 | 16288 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16289 | return resultobj; |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
c32bde28 | 16295 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16296 | PyObject *resultobj; |
16297 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16298 | int result; |
d14a1e28 RD |
16299 | PyObject * obj0 = 0 ; |
16300 | char *kwnames[] = { | |
16301 | (char *) "self", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16307 | { |
16308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 16309 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
16310 | |
16311 | wxPyEndAllowThreads(__tstate); | |
16312 | if (PyErr_Occurred()) SWIG_fail; | |
16313 | } | |
c32bde28 | 16314 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16315 | return resultobj; |
16316 | fail: | |
16317 | return NULL; | |
16318 | } | |
16319 | ||
16320 | ||
c32bde28 | 16321 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16322 | PyObject *resultobj; |
16323 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16324 | int arg2 ; |
d14a1e28 | 16325 | PyObject * obj0 = 0 ; |
994141e6 | 16326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16327 | char *kwnames[] = { |
16328 | (char *) "self",(char *) "m_x", NULL | |
16329 | }; | |
16330 | ||
994141e6 | 16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16334 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16335 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16336 | if (arg1) (arg1)->m_x = arg2; |
16337 | ||
16338 | Py_INCREF(Py_None); resultobj = Py_None; | |
16339 | return resultobj; | |
16340 | fail: | |
16341 | return NULL; | |
16342 | } | |
16343 | ||
16344 | ||
c32bde28 | 16345 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16346 | PyObject *resultobj; |
16347 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16348 | int result; |
d14a1e28 RD |
16349 | PyObject * obj0 = 0 ; |
16350 | char *kwnames[] = { | |
16351 | (char *) "self", NULL | |
16352 | }; | |
16353 | ||
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16357 | result = (int) ((arg1)->m_x); |
d14a1e28 | 16358 | |
c32bde28 | 16359 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16360 | return resultobj; |
16361 | fail: | |
16362 | return NULL; | |
16363 | } | |
16364 | ||
16365 | ||
c32bde28 | 16366 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16367 | PyObject *resultobj; |
16368 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16369 | int arg2 ; |
d14a1e28 | 16370 | PyObject * obj0 = 0 ; |
994141e6 | 16371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16372 | char *kwnames[] = { |
16373 | (char *) "self",(char *) "m_y", NULL | |
16374 | }; | |
16375 | ||
994141e6 | 16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16379 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16380 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16381 | if (arg1) (arg1)->m_y = arg2; |
16382 | ||
16383 | Py_INCREF(Py_None); resultobj = Py_None; | |
16384 | return resultobj; | |
16385 | fail: | |
16386 | return NULL; | |
16387 | } | |
16388 | ||
16389 | ||
c32bde28 | 16390 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16391 | PyObject *resultobj; |
16392 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16393 | int result; |
d14a1e28 RD |
16394 | PyObject * obj0 = 0 ; |
16395 | char *kwnames[] = { | |
16396 | (char *) "self", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16402 | result = (int) ((arg1)->m_y); |
d14a1e28 | 16403 | |
c32bde28 | 16404 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16405 | return resultobj; |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
c32bde28 | 16411 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16412 | PyObject *resultobj; |
16413 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16414 | long arg2 ; | |
16415 | PyObject * obj0 = 0 ; | |
994141e6 | 16416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16417 | char *kwnames[] = { |
16418 | (char *) "self",(char *) "m_keyCode", NULL | |
16419 | }; | |
16420 | ||
994141e6 | 16421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16424 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 16425 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16426 | if (arg1) (arg1)->m_keyCode = arg2; |
16427 | ||
16428 | Py_INCREF(Py_None); resultobj = Py_None; | |
16429 | return resultobj; | |
16430 | fail: | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
c32bde28 | 16435 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16436 | PyObject *resultobj; |
16437 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16438 | long result; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | char *kwnames[] = { | |
16441 | (char *) "self", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16447 | result = (long) ((arg1)->m_keyCode); |
16448 | ||
c32bde28 | 16449 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
16450 | return resultobj; |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
c32bde28 | 16456 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16457 | PyObject *resultobj; |
16458 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16459 | bool arg2 ; | |
16460 | PyObject * obj0 = 0 ; | |
16461 | PyObject * obj1 = 0 ; | |
16462 | char *kwnames[] = { | |
16463 | (char *) "self",(char *) "m_controlDown", NULL | |
16464 | }; | |
16465 | ||
16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16469 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16470 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16471 | if (arg1) (arg1)->m_controlDown = arg2; |
16472 | ||
16473 | Py_INCREF(Py_None); resultobj = Py_None; | |
16474 | return resultobj; | |
16475 | fail: | |
16476 | return NULL; | |
16477 | } | |
16478 | ||
16479 | ||
c32bde28 | 16480 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16481 | PyObject *resultobj; |
16482 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16483 | bool result; | |
16484 | PyObject * obj0 = 0 ; | |
16485 | char *kwnames[] = { | |
16486 | (char *) "self", NULL | |
16487 | }; | |
16488 | ||
16489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16492 | result = (bool) ((arg1)->m_controlDown); |
16493 | ||
4f89f6a3 RD |
16494 | { |
16495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16496 | } | |
d14a1e28 RD |
16497 | return resultobj; |
16498 | fail: | |
16499 | return NULL; | |
16500 | } | |
16501 | ||
16502 | ||
c32bde28 | 16503 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16504 | PyObject *resultobj; |
16505 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16506 | bool arg2 ; | |
16507 | PyObject * obj0 = 0 ; | |
16508 | PyObject * obj1 = 0 ; | |
16509 | char *kwnames[] = { | |
16510 | (char *) "self",(char *) "m_shiftDown", NULL | |
16511 | }; | |
16512 | ||
16513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16516 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16517 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16518 | if (arg1) (arg1)->m_shiftDown = arg2; |
16519 | ||
16520 | Py_INCREF(Py_None); resultobj = Py_None; | |
16521 | return resultobj; | |
16522 | fail: | |
16523 | return NULL; | |
16524 | } | |
16525 | ||
16526 | ||
c32bde28 | 16527 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16528 | PyObject *resultobj; |
16529 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16530 | bool result; | |
16531 | PyObject * obj0 = 0 ; | |
16532 | char *kwnames[] = { | |
16533 | (char *) "self", NULL | |
16534 | }; | |
16535 | ||
16536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16539 | result = (bool) ((arg1)->m_shiftDown); |
16540 | ||
4f89f6a3 RD |
16541 | { |
16542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16543 | } | |
d14a1e28 RD |
16544 | return resultobj; |
16545 | fail: | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
c32bde28 | 16550 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16551 | PyObject *resultobj; |
16552 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16553 | bool arg2 ; | |
16554 | PyObject * obj0 = 0 ; | |
16555 | PyObject * obj1 = 0 ; | |
16556 | char *kwnames[] = { | |
16557 | (char *) "self",(char *) "m_altDown", NULL | |
16558 | }; | |
16559 | ||
16560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16563 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16564 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16565 | if (arg1) (arg1)->m_altDown = arg2; |
16566 | ||
16567 | Py_INCREF(Py_None); resultobj = Py_None; | |
16568 | return resultobj; | |
16569 | fail: | |
16570 | return NULL; | |
16571 | } | |
16572 | ||
16573 | ||
c32bde28 | 16574 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16575 | PyObject *resultobj; |
16576 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16577 | bool result; | |
16578 | PyObject * obj0 = 0 ; | |
16579 | char *kwnames[] = { | |
16580 | (char *) "self", NULL | |
16581 | }; | |
16582 | ||
16583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16586 | result = (bool) ((arg1)->m_altDown); |
16587 | ||
4f89f6a3 RD |
16588 | { |
16589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16590 | } | |
d14a1e28 RD |
16591 | return resultobj; |
16592 | fail: | |
16593 | return NULL; | |
16594 | } | |
16595 | ||
16596 | ||
c32bde28 | 16597 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16598 | PyObject *resultobj; |
16599 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16600 | bool arg2 ; | |
16601 | PyObject * obj0 = 0 ; | |
16602 | PyObject * obj1 = 0 ; | |
16603 | char *kwnames[] = { | |
16604 | (char *) "self",(char *) "m_metaDown", NULL | |
16605 | }; | |
16606 | ||
16607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16610 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16611 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16612 | if (arg1) (arg1)->m_metaDown = arg2; |
16613 | ||
16614 | Py_INCREF(Py_None); resultobj = Py_None; | |
16615 | return resultobj; | |
16616 | fail: | |
16617 | return NULL; | |
16618 | } | |
16619 | ||
16620 | ||
c32bde28 | 16621 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16622 | PyObject *resultobj; |
16623 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16624 | bool result; | |
16625 | PyObject * obj0 = 0 ; | |
16626 | char *kwnames[] = { | |
16627 | (char *) "self", NULL | |
16628 | }; | |
16629 | ||
16630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16633 | result = (bool) ((arg1)->m_metaDown); |
16634 | ||
4f89f6a3 RD |
16635 | { |
16636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16637 | } | |
d14a1e28 RD |
16638 | return resultobj; |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
c32bde28 | 16644 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16645 | PyObject *resultobj; |
16646 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16647 | bool arg2 ; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | PyObject * obj1 = 0 ; | |
16650 | char *kwnames[] = { | |
16651 | (char *) "self",(char *) "m_scanCode", NULL | |
16652 | }; | |
16653 | ||
16654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16657 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16658 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16659 | if (arg1) (arg1)->m_scanCode = arg2; |
16660 | ||
16661 | Py_INCREF(Py_None); resultobj = Py_None; | |
16662 | return resultobj; | |
16663 | fail: | |
16664 | return NULL; | |
16665 | } | |
16666 | ||
16667 | ||
c32bde28 | 16668 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16669 | PyObject *resultobj; |
16670 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16671 | bool result; | |
16672 | PyObject * obj0 = 0 ; | |
16673 | char *kwnames[] = { | |
16674 | (char *) "self", NULL | |
16675 | }; | |
16676 | ||
16677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16680 | result = (bool) ((arg1)->m_scanCode); |
16681 | ||
4f89f6a3 RD |
16682 | { |
16683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16684 | } | |
d14a1e28 RD |
16685 | return resultobj; |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
c32bde28 | 16691 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16692 | PyObject *resultobj; |
16693 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16694 | unsigned int arg2 ; |
d14a1e28 RD |
16695 | PyObject * obj0 = 0 ; |
16696 | PyObject * obj1 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "self",(char *) "m_rawCode", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16704 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 16705 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16706 | if (arg1) (arg1)->m_rawCode = arg2; |
16707 | ||
16708 | Py_INCREF(Py_None); resultobj = Py_None; | |
16709 | return resultobj; | |
16710 | fail: | |
16711 | return NULL; | |
16712 | } | |
16713 | ||
16714 | ||
c32bde28 | 16715 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16716 | PyObject *resultobj; |
16717 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16718 | unsigned int result; |
d14a1e28 RD |
16719 | PyObject * obj0 = 0 ; |
16720 | char *kwnames[] = { | |
16721 | (char *) "self", NULL | |
16722 | }; | |
16723 | ||
16724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16727 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16728 | |
c32bde28 | 16729 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
16730 | return resultobj; |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
c32bde28 | 16736 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16737 | PyObject *resultobj; |
16738 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16739 | unsigned int arg2 ; |
d14a1e28 RD |
16740 | PyObject * obj0 = 0 ; |
16741 | PyObject * obj1 = 0 ; | |
16742 | char *kwnames[] = { | |
16743 | (char *) "self",(char *) "m_rawFlags", NULL | |
16744 | }; | |
16745 | ||
16746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16749 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 16750 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16751 | if (arg1) (arg1)->m_rawFlags = arg2; |
16752 | ||
16753 | Py_INCREF(Py_None); resultobj = Py_None; | |
16754 | return resultobj; | |
16755 | fail: | |
16756 | return NULL; | |
16757 | } | |
16758 | ||
16759 | ||
c32bde28 | 16760 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16761 | PyObject *resultobj; |
16762 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16763 | unsigned int result; |
d14a1e28 RD |
16764 | PyObject * obj0 = 0 ; |
16765 | char *kwnames[] = { | |
16766 | (char *) "self", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16772 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16773 | |
c32bde28 | 16774 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
16775 | return resultobj; |
16776 | fail: | |
16777 | return NULL; | |
16778 | } | |
16779 | ||
16780 | ||
c32bde28 | 16781 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16782 | PyObject *obj; |
16783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16784 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16785 | Py_INCREF(obj); | |
16786 | return Py_BuildValue((char *)""); | |
16787 | } | |
c32bde28 | 16788 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16789 | PyObject *resultobj; |
16790 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16791 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16792 | int arg2 = (int) 0 ; | |
16793 | wxSizeEvent *result; | |
16794 | wxSize temp1 ; | |
16795 | PyObject * obj0 = 0 ; | |
994141e6 | 16796 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16797 | char *kwnames[] = { |
16798 | (char *) "sz",(char *) "winid", NULL | |
16799 | }; | |
16800 | ||
994141e6 | 16801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16802 | if (obj0) { |
16803 | { | |
16804 | arg1 = &temp1; | |
16805 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16806 | } | |
16807 | } | |
994141e6 | 16808 | if (obj1) { |
c32bde28 | 16809 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16810 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16811 | } |
d14a1e28 RD |
16812 | { |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
15afbcd0 | 16819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16820 | return resultobj; |
16821 | fail: | |
16822 | return NULL; | |
16823 | } | |
16824 | ||
16825 | ||
c32bde28 | 16826 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16827 | PyObject *resultobj; |
16828 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16829 | wxSize result; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16838 | { |
16839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16840 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16841 | ||
16842 | wxPyEndAllowThreads(__tstate); | |
16843 | if (PyErr_Occurred()) SWIG_fail; | |
16844 | } | |
16845 | { | |
16846 | wxSize * resultptr; | |
16847 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16849 | } |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
c32bde28 | 16856 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16857 | PyObject *resultobj; |
16858 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16859 | wxRect result; | |
16860 | PyObject * obj0 = 0 ; | |
16861 | char *kwnames[] = { | |
16862 | (char *) "self", NULL | |
16863 | }; | |
16864 | ||
16865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16868 | { |
16869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16870 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16871 | ||
16872 | wxPyEndAllowThreads(__tstate); | |
16873 | if (PyErr_Occurred()) SWIG_fail; | |
16874 | } | |
16875 | { | |
16876 | wxRect * resultptr; | |
16877 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16879 | } |
16880 | return resultobj; | |
16881 | fail: | |
16882 | return NULL; | |
16883 | } | |
16884 | ||
16885 | ||
c32bde28 | 16886 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16887 | PyObject *resultobj; |
16888 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16889 | wxRect arg2 ; | |
16890 | wxRect *argp2 ; | |
16891 | PyObject * obj0 = 0 ; | |
16892 | PyObject * obj1 = 0 ; | |
16893 | char *kwnames[] = { | |
16894 | (char *) "self",(char *) "rect", NULL | |
16895 | }; | |
16896 | ||
16897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16900 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16901 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16902 | arg2 = *argp2; | |
d14a1e28 RD |
16903 | { |
16904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16905 | (arg1)->SetRect(arg2); | |
16906 | ||
16907 | wxPyEndAllowThreads(__tstate); | |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
16909 | } | |
16910 | Py_INCREF(Py_None); resultobj = Py_None; | |
16911 | return resultobj; | |
16912 | fail: | |
16913 | return NULL; | |
16914 | } | |
16915 | ||
16916 | ||
c32bde28 | 16917 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16918 | PyObject *resultobj; |
16919 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16920 | wxSize arg2 ; | |
16921 | wxSize *argp2 ; | |
16922 | PyObject * obj0 = 0 ; | |
16923 | PyObject * obj1 = 0 ; | |
16924 | char *kwnames[] = { | |
16925 | (char *) "self",(char *) "size", NULL | |
16926 | }; | |
16927 | ||
16928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16931 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16932 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16933 | arg2 = *argp2; | |
d14a1e28 RD |
16934 | { |
16935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16936 | wxSizeEvent_SetSize(arg1,arg2); | |
16937 | ||
16938 | wxPyEndAllowThreads(__tstate); | |
16939 | if (PyErr_Occurred()) SWIG_fail; | |
16940 | } | |
16941 | Py_INCREF(Py_None); resultobj = Py_None; | |
16942 | return resultobj; | |
16943 | fail: | |
16944 | return NULL; | |
16945 | } | |
16946 | ||
16947 | ||
c32bde28 | 16948 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16949 | PyObject *resultobj; |
16950 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16951 | wxSize *arg2 = (wxSize *) 0 ; | |
16952 | PyObject * obj0 = 0 ; | |
16953 | PyObject * obj1 = 0 ; | |
16954 | char *kwnames[] = { | |
16955 | (char *) "self",(char *) "m_size", NULL | |
16956 | }; | |
16957 | ||
16958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16963 | if (arg1) (arg1)->m_size = *arg2; |
16964 | ||
16965 | Py_INCREF(Py_None); resultobj = Py_None; | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | return NULL; | |
16969 | } | |
16970 | ||
16971 | ||
c32bde28 | 16972 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16973 | PyObject *resultobj; |
16974 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16975 | wxSize *result; | |
16976 | PyObject * obj0 = 0 ; | |
16977 | char *kwnames[] = { | |
16978 | (char *) "self", NULL | |
16979 | }; | |
16980 | ||
16981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16984 | result = (wxSize *)& ((arg1)->m_size); |
16985 | ||
15afbcd0 | 16986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16987 | return resultobj; |
16988 | fail: | |
16989 | return NULL; | |
16990 | } | |
16991 | ||
16992 | ||
c32bde28 | 16993 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16994 | PyObject *resultobj; |
16995 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16996 | wxRect *arg2 = (wxRect *) 0 ; | |
16997 | PyObject * obj0 = 0 ; | |
16998 | PyObject * obj1 = 0 ; | |
16999 | char *kwnames[] = { | |
17000 | (char *) "self",(char *) "m_rect", NULL | |
17001 | }; | |
17002 | ||
17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
17005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17008 | if (arg1) (arg1)->m_rect = *arg2; |
17009 | ||
17010 | Py_INCREF(Py_None); resultobj = Py_None; | |
17011 | return resultobj; | |
17012 | fail: | |
17013 | return NULL; | |
17014 | } | |
17015 | ||
17016 | ||
c32bde28 | 17017 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17018 | PyObject *resultobj; |
17019 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17020 | wxRect *result; | |
17021 | PyObject * obj0 = 0 ; | |
17022 | char *kwnames[] = { | |
17023 | (char *) "self", NULL | |
17024 | }; | |
17025 | ||
17026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
17028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17029 | result = (wxRect *)& ((arg1)->m_rect); |
17030 | ||
15afbcd0 | 17031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
17032 | return resultobj; |
17033 | fail: | |
17034 | return NULL; | |
17035 | } | |
17036 | ||
17037 | ||
c32bde28 | 17038 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17039 | PyObject *obj; |
17040 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17041 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
17042 | Py_INCREF(obj); | |
17043 | return Py_BuildValue((char *)""); | |
17044 | } | |
c32bde28 | 17045 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17046 | PyObject *resultobj; |
17047 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
17048 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
17049 | int arg2 = (int) 0 ; | |
17050 | wxMoveEvent *result; | |
17051 | wxPoint temp1 ; | |
17052 | PyObject * obj0 = 0 ; | |
994141e6 | 17053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17054 | char *kwnames[] = { |
17055 | (char *) "pos",(char *) "winid", NULL | |
17056 | }; | |
17057 | ||
994141e6 | 17058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
17059 | if (obj0) { |
17060 | { | |
17061 | arg1 = &temp1; | |
17062 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
17063 | } | |
17064 | } | |
994141e6 | 17065 | if (obj1) { |
c32bde28 | 17066 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17067 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17068 | } |
d14a1e28 RD |
17069 | { |
17070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17071 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
17072 | ||
17073 | wxPyEndAllowThreads(__tstate); | |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
17075 | } | |
15afbcd0 | 17076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
17077 | return resultobj; |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
c32bde28 | 17083 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17084 | PyObject *resultobj; |
17085 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17086 | wxPoint result; | |
17087 | PyObject * obj0 = 0 ; | |
17088 | char *kwnames[] = { | |
17089 | (char *) "self", NULL | |
17090 | }; | |
17091 | ||
17092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17095 | { |
17096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17097 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
17098 | ||
17099 | wxPyEndAllowThreads(__tstate); | |
17100 | if (PyErr_Occurred()) SWIG_fail; | |
17101 | } | |
17102 | { | |
17103 | wxPoint * resultptr; | |
17104 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 17105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17106 | } |
17107 | return resultobj; | |
17108 | fail: | |
17109 | return NULL; | |
17110 | } | |
17111 | ||
17112 | ||
c32bde28 | 17113 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17114 | PyObject *resultobj; |
17115 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17116 | wxRect result; | |
17117 | PyObject * obj0 = 0 ; | |
17118 | char *kwnames[] = { | |
17119 | (char *) "self", NULL | |
17120 | }; | |
17121 | ||
17122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17125 | { |
17126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17127 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
17128 | ||
17129 | wxPyEndAllowThreads(__tstate); | |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
17131 | } | |
17132 | { | |
17133 | wxRect * resultptr; | |
17134 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 17135 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
17136 | } |
17137 | return resultobj; | |
17138 | fail: | |
17139 | return NULL; | |
17140 | } | |
17141 | ||
17142 | ||
c32bde28 | 17143 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17144 | PyObject *resultobj; |
17145 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17146 | wxRect arg2 ; | |
17147 | wxRect *argp2 ; | |
17148 | PyObject * obj0 = 0 ; | |
17149 | PyObject * obj1 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "self",(char *) "rect", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17157 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
17158 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17159 | arg2 = *argp2; | |
d14a1e28 RD |
17160 | { |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | (arg1)->SetRect(arg2); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | Py_INCREF(Py_None); resultobj = Py_None; | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
c32bde28 | 17174 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17175 | PyObject *resultobj; |
17176 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17177 | wxPoint arg2 ; | |
17178 | wxPoint *argp2 ; | |
17179 | PyObject * obj0 = 0 ; | |
17180 | PyObject * obj1 = 0 ; | |
17181 | char *kwnames[] = { | |
17182 | (char *) "self",(char *) "pos", NULL | |
17183 | }; | |
17184 | ||
17185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17188 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17189 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17190 | arg2 = *argp2; | |
d14a1e28 RD |
17191 | { |
17192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17193 | wxMoveEvent_SetPosition(arg1,arg2); | |
17194 | ||
17195 | wxPyEndAllowThreads(__tstate); | |
17196 | if (PyErr_Occurred()) SWIG_fail; | |
17197 | } | |
17198 | Py_INCREF(Py_None); resultobj = Py_None; | |
17199 | return resultobj; | |
17200 | fail: | |
17201 | return NULL; | |
17202 | } | |
17203 | ||
17204 | ||
c32bde28 | 17205 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17206 | PyObject *resultobj; |
17207 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17208 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17209 | PyObject * obj0 = 0 ; | |
17210 | PyObject * obj1 = 0 ; | |
17211 | char *kwnames[] = { | |
17212 | (char *) "self",(char *) "m_pos", NULL | |
17213 | }; | |
17214 | ||
17215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17220 | if (arg1) (arg1)->m_pos = *arg2; |
17221 | ||
17222 | Py_INCREF(Py_None); resultobj = Py_None; | |
17223 | return resultobj; | |
17224 | fail: | |
17225 | return NULL; | |
17226 | } | |
17227 | ||
17228 | ||
c32bde28 | 17229 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17230 | PyObject *resultobj; |
17231 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17232 | wxPoint *result; | |
17233 | PyObject * obj0 = 0 ; | |
17234 | char *kwnames[] = { | |
17235 | (char *) "self", NULL | |
17236 | }; | |
17237 | ||
17238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17241 | result = (wxPoint *)& ((arg1)->m_pos); |
17242 | ||
15afbcd0 | 17243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
17244 | return resultobj; |
17245 | fail: | |
17246 | return NULL; | |
17247 | } | |
17248 | ||
17249 | ||
c32bde28 | 17250 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17251 | PyObject *resultobj; |
17252 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17253 | wxRect *arg2 = (wxRect *) 0 ; | |
17254 | PyObject * obj0 = 0 ; | |
17255 | PyObject * obj1 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "self",(char *) "m_rect", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17265 | if (arg1) (arg1)->m_rect = *arg2; |
17266 | ||
17267 | Py_INCREF(Py_None); resultobj = Py_None; | |
17268 | return resultobj; | |
17269 | fail: | |
17270 | return NULL; | |
17271 | } | |
17272 | ||
17273 | ||
c32bde28 | 17274 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17275 | PyObject *resultobj; |
17276 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17277 | wxRect *result; | |
17278 | PyObject * obj0 = 0 ; | |
17279 | char *kwnames[] = { | |
17280 | (char *) "self", NULL | |
17281 | }; | |
17282 | ||
17283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
17285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17286 | result = (wxRect *)& ((arg1)->m_rect); |
17287 | ||
15afbcd0 | 17288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
17289 | return resultobj; |
17290 | fail: | |
17291 | return NULL; | |
17292 | } | |
17293 | ||
17294 | ||
c32bde28 | 17295 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17296 | PyObject *obj; |
17297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17298 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17299 | Py_INCREF(obj); | |
17300 | return Py_BuildValue((char *)""); | |
17301 | } | |
c32bde28 | 17302 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17303 | PyObject *resultobj; |
17304 | int arg1 = (int) 0 ; | |
17305 | wxPaintEvent *result; | |
994141e6 | 17306 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17307 | char *kwnames[] = { |
17308 | (char *) "Id", NULL | |
17309 | }; | |
17310 | ||
994141e6 RD |
17311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
17312 | if (obj0) { | |
c32bde28 | 17313 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 17314 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17315 | } |
d14a1e28 RD |
17316 | { |
17317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17318 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17319 | ||
17320 | wxPyEndAllowThreads(__tstate); | |
17321 | if (PyErr_Occurred()) SWIG_fail; | |
17322 | } | |
15afbcd0 | 17323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
17324 | return resultobj; |
17325 | fail: | |
17326 | return NULL; | |
17327 | } | |
17328 | ||
17329 | ||
c32bde28 | 17330 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17331 | PyObject *obj; |
17332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17333 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17334 | Py_INCREF(obj); | |
17335 | return Py_BuildValue((char *)""); | |
17336 | } | |
c32bde28 | 17337 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17338 | PyObject *resultobj; |
17339 | int arg1 = (int) 0 ; | |
17340 | wxNcPaintEvent *result; | |
994141e6 | 17341 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17342 | char *kwnames[] = { |
17343 | (char *) "winid", NULL | |
17344 | }; | |
17345 | ||
994141e6 RD |
17346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
17347 | if (obj0) { | |
c32bde28 | 17348 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 17349 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17350 | } |
d14a1e28 RD |
17351 | { |
17352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17353 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17354 | ||
17355 | wxPyEndAllowThreads(__tstate); | |
17356 | if (PyErr_Occurred()) SWIG_fail; | |
17357 | } | |
15afbcd0 | 17358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
17359 | return resultobj; |
17360 | fail: | |
17361 | return NULL; | |
17362 | } | |
17363 | ||
17364 | ||
c32bde28 | 17365 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17366 | PyObject *obj; |
17367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17368 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17369 | Py_INCREF(obj); | |
17370 | return Py_BuildValue((char *)""); | |
17371 | } | |
c32bde28 | 17372 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17373 | PyObject *resultobj; |
17374 | int arg1 = (int) 0 ; | |
17375 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17376 | wxEraseEvent *result; | |
994141e6 | 17377 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17378 | PyObject * obj1 = 0 ; |
17379 | char *kwnames[] = { | |
17380 | (char *) "Id",(char *) "dc", NULL | |
17381 | }; | |
17382 | ||
994141e6 RD |
17383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
17384 | if (obj0) { | |
c32bde28 | 17385 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 17386 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17387 | } |
d14a1e28 | 17388 | if (obj1) { |
15afbcd0 RD |
17389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
17390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17391 | } |
17392 | { | |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
15afbcd0 | 17399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
17400 | return resultobj; |
17401 | fail: | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
c32bde28 | 17406 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17407 | PyObject *resultobj; |
17408 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17409 | wxDC *result; | |
17410 | PyObject * obj0 = 0 ; | |
17411 | char *kwnames[] = { | |
17412 | (char *) "self", NULL | |
17413 | }; | |
17414 | ||
17415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
17417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17418 | { |
17419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17420 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17421 | ||
17422 | wxPyEndAllowThreads(__tstate); | |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
17424 | } | |
17425 | { | |
412d302d | 17426 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17427 | } |
17428 | return resultobj; | |
17429 | fail: | |
17430 | return NULL; | |
17431 | } | |
17432 | ||
17433 | ||
c32bde28 | 17434 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17435 | PyObject *obj; |
17436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17437 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17438 | Py_INCREF(obj); | |
17439 | return Py_BuildValue((char *)""); | |
17440 | } | |
c32bde28 | 17441 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17442 | PyObject *resultobj; |
17443 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17444 | int arg2 = (int) 0 ; | |
17445 | wxFocusEvent *result; | |
994141e6 RD |
17446 | PyObject * obj0 = 0 ; |
17447 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17448 | char *kwnames[] = { |
17449 | (char *) "type",(char *) "winid", NULL | |
17450 | }; | |
17451 | ||
994141e6 RD |
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
17453 | if (obj0) { | |
c32bde28 | 17454 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 17455 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17456 | } |
17457 | if (obj1) { | |
c32bde28 | 17458 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17459 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17460 | } |
d14a1e28 RD |
17461 | { |
17462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17463 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17464 | ||
17465 | wxPyEndAllowThreads(__tstate); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | } | |
15afbcd0 | 17468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
17469 | return resultobj; |
17470 | fail: | |
17471 | return NULL; | |
17472 | } | |
17473 | ||
17474 | ||
c32bde28 | 17475 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17476 | PyObject *resultobj; |
17477 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17478 | wxWindow *result; | |
17479 | PyObject * obj0 = 0 ; | |
17480 | char *kwnames[] = { | |
17481 | (char *) "self", NULL | |
17482 | }; | |
17483 | ||
17484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
17486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17487 | { |
17488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17489 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17490 | ||
17491 | wxPyEndAllowThreads(__tstate); | |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
17493 | } | |
17494 | { | |
412d302d | 17495 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17496 | } |
17497 | return resultobj; | |
17498 | fail: | |
17499 | return NULL; | |
17500 | } | |
17501 | ||
17502 | ||
c32bde28 | 17503 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17504 | PyObject *resultobj; |
17505 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17506 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17507 | PyObject * obj0 = 0 ; | |
17508 | PyObject * obj1 = 0 ; | |
17509 | char *kwnames[] = { | |
17510 | (char *) "self",(char *) "win", NULL | |
17511 | }; | |
17512 | ||
17513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
17515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17518 | { |
17519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17520 | (arg1)->SetWindow(arg2); | |
17521 | ||
17522 | wxPyEndAllowThreads(__tstate); | |
17523 | if (PyErr_Occurred()) SWIG_fail; | |
17524 | } | |
17525 | Py_INCREF(Py_None); resultobj = Py_None; | |
17526 | return resultobj; | |
17527 | fail: | |
17528 | return NULL; | |
17529 | } | |
17530 | ||
17531 | ||
c32bde28 | 17532 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17533 | PyObject *obj; |
17534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17535 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17536 | Py_INCREF(obj); | |
17537 | return Py_BuildValue((char *)""); | |
17538 | } | |
c32bde28 | 17539 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17540 | PyObject *resultobj; |
17541 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17542 | wxChildFocusEvent *result; | |
17543 | PyObject * obj0 = 0 ; | |
17544 | char *kwnames[] = { | |
17545 | (char *) "win", NULL | |
17546 | }; | |
17547 | ||
17548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17549 | if (obj0) { | |
15afbcd0 RD |
17550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17552 | } |
17553 | { | |
17554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17555 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17556 | ||
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
15afbcd0 | 17560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
17561 | return resultobj; |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
c32bde28 | 17567 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17568 | PyObject *resultobj; |
17569 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17570 | wxWindow *result; | |
17571 | PyObject * obj0 = 0 ; | |
17572 | char *kwnames[] = { | |
17573 | (char *) "self", NULL | |
17574 | }; | |
17575 | ||
17576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
17578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17579 | { |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | { | |
412d302d | 17587 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17588 | } |
17589 | return resultobj; | |
17590 | fail: | |
17591 | return NULL; | |
17592 | } | |
17593 | ||
17594 | ||
c32bde28 | 17595 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17596 | PyObject *obj; |
17597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17598 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17599 | Py_INCREF(obj); | |
17600 | return Py_BuildValue((char *)""); | |
17601 | } | |
c32bde28 | 17602 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17603 | PyObject *resultobj; |
17604 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 17605 | bool arg2 = (bool) true ; |
d14a1e28 RD |
17606 | int arg3 = (int) 0 ; |
17607 | wxActivateEvent *result; | |
994141e6 | 17608 | PyObject * obj0 = 0 ; |
d14a1e28 | 17609 | PyObject * obj1 = 0 ; |
994141e6 | 17610 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17611 | char *kwnames[] = { |
17612 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17613 | }; | |
17614 | ||
994141e6 RD |
17615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17616 | if (obj0) { | |
c32bde28 | 17617 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 17618 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17619 | } |
d14a1e28 | 17620 | if (obj1) { |
c32bde28 | 17621 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17622 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17623 | } |
17624 | if (obj2) { | |
c32bde28 | 17625 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17627 | } |
17628 | { | |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
15afbcd0 | 17635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
17636 | return resultobj; |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
c32bde28 | 17642 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17643 | PyObject *resultobj; |
17644 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17645 | bool result; | |
17646 | PyObject * obj0 = 0 ; | |
17647 | char *kwnames[] = { | |
17648 | (char *) "self", NULL | |
17649 | }; | |
17650 | ||
17651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
17653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17654 | { |
17655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17656 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17657 | ||
17658 | wxPyEndAllowThreads(__tstate); | |
17659 | if (PyErr_Occurred()) SWIG_fail; | |
17660 | } | |
4f89f6a3 RD |
17661 | { |
17662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17663 | } | |
d14a1e28 RD |
17664 | return resultobj; |
17665 | fail: | |
17666 | return NULL; | |
17667 | } | |
17668 | ||
17669 | ||
c32bde28 | 17670 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17671 | PyObject *obj; |
17672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17673 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17674 | Py_INCREF(obj); | |
17675 | return Py_BuildValue((char *)""); | |
17676 | } | |
c32bde28 | 17677 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17678 | PyObject *resultobj; |
17679 | int arg1 = (int) 0 ; | |
17680 | wxInitDialogEvent *result; | |
994141e6 | 17681 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17682 | char *kwnames[] = { |
17683 | (char *) "Id", NULL | |
17684 | }; | |
17685 | ||
994141e6 RD |
17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
17687 | if (obj0) { | |
c32bde28 | 17688 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 17689 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17690 | } |
d14a1e28 RD |
17691 | { |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
15afbcd0 | 17698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
17699 | return resultobj; |
17700 | fail: | |
17701 | return NULL; | |
17702 | } | |
17703 | ||
17704 | ||
c32bde28 | 17705 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17706 | PyObject *obj; |
17707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17708 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17709 | Py_INCREF(obj); | |
17710 | return Py_BuildValue((char *)""); | |
17711 | } | |
c32bde28 | 17712 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17713 | PyObject *resultobj; |
17714 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17715 | int arg2 = (int) 0 ; | |
17716 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17717 | wxMenuEvent *result; | |
994141e6 RD |
17718 | PyObject * obj0 = 0 ; |
17719 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17720 | PyObject * obj2 = 0 ; |
17721 | char *kwnames[] = { | |
17722 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17723 | }; | |
17724 | ||
994141e6 RD |
17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17726 | if (obj0) { | |
c32bde28 | 17727 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 17728 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17729 | } |
17730 | if (obj1) { | |
c32bde28 | 17731 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17732 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17733 | } |
d14a1e28 | 17734 | if (obj2) { |
15afbcd0 RD |
17735 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17737 | } |
17738 | { | |
17739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17740 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17741 | ||
17742 | wxPyEndAllowThreads(__tstate); | |
17743 | if (PyErr_Occurred()) SWIG_fail; | |
17744 | } | |
15afbcd0 | 17745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17746 | return resultobj; |
17747 | fail: | |
17748 | return NULL; | |
17749 | } | |
17750 | ||
17751 | ||
c32bde28 | 17752 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17753 | PyObject *resultobj; |
17754 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17755 | int result; | |
17756 | PyObject * obj0 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17764 | { |
17765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17766 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17767 | ||
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
c32bde28 | 17771 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
17772 | return resultobj; |
17773 | fail: | |
17774 | return NULL; | |
17775 | } | |
17776 | ||
17777 | ||
c32bde28 | 17778 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17779 | PyObject *resultobj; |
17780 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17781 | bool result; | |
17782 | PyObject * obj0 = 0 ; | |
17783 | char *kwnames[] = { | |
17784 | (char *) "self", NULL | |
17785 | }; | |
17786 | ||
17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17790 | { |
17791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17792 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17793 | ||
17794 | wxPyEndAllowThreads(__tstate); | |
17795 | if (PyErr_Occurred()) SWIG_fail; | |
17796 | } | |
4f89f6a3 RD |
17797 | { |
17798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17799 | } | |
d14a1e28 RD |
17800 | return resultobj; |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
c32bde28 | 17806 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17807 | PyObject *resultobj; |
17808 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17809 | wxMenu *result; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | char *kwnames[] = { | |
17812 | (char *) "self", NULL | |
17813 | }; | |
17814 | ||
17815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17818 | { |
17819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17820 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17821 | ||
17822 | wxPyEndAllowThreads(__tstate); | |
17823 | if (PyErr_Occurred()) SWIG_fail; | |
17824 | } | |
17825 | { | |
412d302d | 17826 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17827 | } |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
c32bde28 | 17834 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17835 | PyObject *obj; |
17836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17837 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17838 | Py_INCREF(obj); | |
17839 | return Py_BuildValue((char *)""); | |
17840 | } | |
c32bde28 | 17841 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17842 | PyObject *resultobj; |
17843 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17844 | int arg2 = (int) 0 ; | |
17845 | wxCloseEvent *result; | |
994141e6 RD |
17846 | PyObject * obj0 = 0 ; |
17847 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17848 | char *kwnames[] = { |
17849 | (char *) "type",(char *) "winid", NULL | |
17850 | }; | |
17851 | ||
994141e6 RD |
17852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17853 | if (obj0) { | |
c32bde28 | 17854 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 17855 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
17856 | } |
17857 | if (obj1) { | |
c32bde28 | 17858 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17859 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17860 | } |
d14a1e28 RD |
17861 | { |
17862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17863 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17864 | ||
17865 | wxPyEndAllowThreads(__tstate); | |
17866 | if (PyErr_Occurred()) SWIG_fail; | |
17867 | } | |
15afbcd0 | 17868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17869 | return resultobj; |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
c32bde28 | 17875 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17876 | PyObject *resultobj; |
17877 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17878 | bool arg2 ; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | PyObject * obj1 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self",(char *) "logOff", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17888 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17889 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17890 | { |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | (arg1)->SetLoggingOff(arg2); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | Py_INCREF(Py_None); resultobj = Py_None; | |
17898 | return resultobj; | |
17899 | fail: | |
17900 | return NULL; | |
17901 | } | |
17902 | ||
17903 | ||
c32bde28 | 17904 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17905 | PyObject *resultobj; |
17906 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17907 | bool result; | |
17908 | PyObject * obj0 = 0 ; | |
17909 | char *kwnames[] = { | |
17910 | (char *) "self", NULL | |
17911 | }; | |
17912 | ||
17913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17916 | { |
17917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17918 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17919 | ||
17920 | wxPyEndAllowThreads(__tstate); | |
17921 | if (PyErr_Occurred()) SWIG_fail; | |
17922 | } | |
4f89f6a3 RD |
17923 | { |
17924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17925 | } | |
d14a1e28 RD |
17926 | return resultobj; |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
c32bde28 | 17932 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17933 | PyObject *resultobj; |
17934 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 17935 | bool arg2 = (bool) true ; |
d14a1e28 RD |
17936 | PyObject * obj0 = 0 ; |
17937 | PyObject * obj1 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self",(char *) "veto", NULL | |
17940 | }; | |
17941 | ||
17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17945 | if (obj1) { |
c32bde28 | 17946 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17947 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17948 | } |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | (arg1)->Veto(arg2); | |
17952 | ||
17953 | wxPyEndAllowThreads(__tstate); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
17956 | Py_INCREF(Py_None); resultobj = Py_None; | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
c32bde28 | 17963 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17964 | PyObject *resultobj; |
17965 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17966 | bool arg2 ; | |
17967 | PyObject * obj0 = 0 ; | |
17968 | PyObject * obj1 = 0 ; | |
17969 | char *kwnames[] = { | |
17970 | (char *) "self",(char *) "canVeto", NULL | |
17971 | }; | |
17972 | ||
17973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17976 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17977 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17978 | { |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | (arg1)->SetCanVeto(arg2); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | Py_INCREF(Py_None); resultobj = Py_None; | |
17986 | return resultobj; | |
17987 | fail: | |
17988 | return NULL; | |
17989 | } | |
17990 | ||
17991 | ||
c32bde28 | 17992 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17993 | PyObject *resultobj; |
17994 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17995 | bool result; | |
17996 | PyObject * obj0 = 0 ; | |
17997 | char *kwnames[] = { | |
17998 | (char *) "self", NULL | |
17999 | }; | |
18000 | ||
18001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
18003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18004 | { |
18005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18006 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
18007 | ||
18008 | wxPyEndAllowThreads(__tstate); | |
18009 | if (PyErr_Occurred()) SWIG_fail; | |
18010 | } | |
4f89f6a3 RD |
18011 | { |
18012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18013 | } | |
d14a1e28 RD |
18014 | return resultobj; |
18015 | fail: | |
18016 | return NULL; | |
18017 | } | |
18018 | ||
18019 | ||
c32bde28 | 18020 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18021 | PyObject *resultobj; |
18022 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18023 | bool result; | |
18024 | PyObject * obj0 = 0 ; | |
18025 | char *kwnames[] = { | |
18026 | (char *) "self", NULL | |
18027 | }; | |
18028 | ||
18029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
18031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18032 | { |
18033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18034 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
18035 | ||
18036 | wxPyEndAllowThreads(__tstate); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
18038 | } | |
4f89f6a3 RD |
18039 | { |
18040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18041 | } | |
d14a1e28 RD |
18042 | return resultobj; |
18043 | fail: | |
18044 | return NULL; | |
18045 | } | |
18046 | ||
18047 | ||
c32bde28 | 18048 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18049 | PyObject *obj; |
18050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18051 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
18052 | Py_INCREF(obj); | |
18053 | return Py_BuildValue((char *)""); | |
18054 | } | |
c32bde28 | 18055 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18056 | PyObject *resultobj; |
18057 | int arg1 = (int) 0 ; | |
ae8162c8 | 18058 | bool arg2 = (bool) false ; |
d14a1e28 | 18059 | wxShowEvent *result; |
994141e6 | 18060 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18061 | PyObject * obj1 = 0 ; |
18062 | char *kwnames[] = { | |
18063 | (char *) "winid",(char *) "show", NULL | |
18064 | }; | |
18065 | ||
994141e6 RD |
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
18067 | if (obj0) { | |
c32bde28 | 18068 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18069 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18070 | } |
d14a1e28 | 18071 | if (obj1) { |
c32bde28 | 18072 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 18073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18074 | } |
18075 | { | |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18077 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
18078 | ||
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
15afbcd0 | 18082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
18083 | return resultobj; |
18084 | fail: | |
18085 | return NULL; | |
18086 | } | |
18087 | ||
18088 | ||
c32bde28 | 18089 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18090 | PyObject *resultobj; |
18091 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18092 | bool arg2 ; | |
18093 | PyObject * obj0 = 0 ; | |
18094 | PyObject * obj1 = 0 ; | |
18095 | char *kwnames[] = { | |
18096 | (char *) "self",(char *) "show", NULL | |
18097 | }; | |
18098 | ||
18099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
18101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18102 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 18103 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18104 | { |
18105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18106 | (arg1)->SetShow(arg2); | |
18107 | ||
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | Py_INCREF(Py_None); resultobj = Py_None; | |
18112 | return resultobj; | |
18113 | fail: | |
18114 | return NULL; | |
18115 | } | |
18116 | ||
18117 | ||
c32bde28 | 18118 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18119 | PyObject *resultobj; |
18120 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18121 | bool result; | |
18122 | PyObject * obj0 = 0 ; | |
18123 | char *kwnames[] = { | |
18124 | (char *) "self", NULL | |
18125 | }; | |
18126 | ||
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
18129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18130 | { |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
18133 | ||
18134 | wxPyEndAllowThreads(__tstate); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | } | |
4f89f6a3 RD |
18137 | { |
18138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18139 | } | |
d14a1e28 RD |
18140 | return resultobj; |
18141 | fail: | |
18142 | return NULL; | |
18143 | } | |
18144 | ||
18145 | ||
c32bde28 | 18146 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18147 | PyObject *obj; |
18148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18149 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
18150 | Py_INCREF(obj); | |
18151 | return Py_BuildValue((char *)""); | |
18152 | } | |
c32bde28 | 18153 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18154 | PyObject *resultobj; |
18155 | int arg1 = (int) 0 ; | |
ae8162c8 | 18156 | bool arg2 = (bool) true ; |
d14a1e28 | 18157 | wxIconizeEvent *result; |
994141e6 | 18158 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18159 | PyObject * obj1 = 0 ; |
18160 | char *kwnames[] = { | |
18161 | (char *) "id",(char *) "iconized", NULL | |
18162 | }; | |
18163 | ||
994141e6 RD |
18164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
18165 | if (obj0) { | |
c32bde28 | 18166 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18167 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18168 | } |
d14a1e28 | 18169 | if (obj1) { |
c32bde28 | 18170 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 18171 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18172 | } |
18173 | { | |
18174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18175 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18176 | ||
18177 | wxPyEndAllowThreads(__tstate); | |
18178 | if (PyErr_Occurred()) SWIG_fail; | |
18179 | } | |
15afbcd0 | 18180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
18181 | return resultobj; |
18182 | fail: | |
18183 | return NULL; | |
18184 | } | |
18185 | ||
18186 | ||
c32bde28 | 18187 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18188 | PyObject *resultobj; |
18189 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18190 | bool result; | |
18191 | PyObject * obj0 = 0 ; | |
18192 | char *kwnames[] = { | |
18193 | (char *) "self", NULL | |
18194 | }; | |
18195 | ||
18196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
18198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18199 | { |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (bool)(arg1)->Iconized(); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
4f89f6a3 RD |
18206 | { |
18207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18208 | } | |
d14a1e28 RD |
18209 | return resultobj; |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
c32bde28 | 18215 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18216 | PyObject *obj; |
18217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18218 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18219 | Py_INCREF(obj); | |
18220 | return Py_BuildValue((char *)""); | |
18221 | } | |
c32bde28 | 18222 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18223 | PyObject *resultobj; |
18224 | int arg1 = (int) 0 ; | |
18225 | wxMaximizeEvent *result; | |
994141e6 | 18226 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18227 | char *kwnames[] = { |
18228 | (char *) "id", NULL | |
18229 | }; | |
18230 | ||
994141e6 RD |
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
18232 | if (obj0) { | |
c32bde28 | 18233 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18234 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18235 | } |
d14a1e28 RD |
18236 | { |
18237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18238 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18239 | ||
18240 | wxPyEndAllowThreads(__tstate); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
15afbcd0 | 18243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
18244 | return resultobj; |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
c32bde28 | 18250 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18251 | PyObject *obj; |
18252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18253 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18254 | Py_INCREF(obj); | |
18255 | return Py_BuildValue((char *)""); | |
18256 | } | |
c32bde28 | 18257 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18258 | PyObject *resultobj; |
18259 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18260 | wxPoint result; | |
18261 | PyObject * obj0 = 0 ; | |
18262 | char *kwnames[] = { | |
18263 | (char *) "self", NULL | |
18264 | }; | |
18265 | ||
18266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
18268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18269 | { |
18270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18271 | result = (arg1)->GetPosition(); | |
18272 | ||
18273 | wxPyEndAllowThreads(__tstate); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | } | |
18276 | { | |
18277 | wxPoint * resultptr; | |
18278 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 18279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
18280 | } |
18281 | return resultobj; | |
18282 | fail: | |
18283 | return NULL; | |
18284 | } | |
18285 | ||
18286 | ||
c32bde28 | 18287 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18288 | PyObject *resultobj; |
18289 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18290 | int result; | |
18291 | PyObject * obj0 = 0 ; | |
18292 | char *kwnames[] = { | |
18293 | (char *) "self", NULL | |
18294 | }; | |
18295 | ||
18296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
18298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18299 | { |
18300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18301 | result = (int)(arg1)->GetNumberOfFiles(); | |
18302 | ||
18303 | wxPyEndAllowThreads(__tstate); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | } | |
c32bde28 | 18306 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18307 | return resultobj; |
18308 | fail: | |
18309 | return NULL; | |
18310 | } | |
18311 | ||
18312 | ||
c32bde28 | 18313 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18314 | PyObject *resultobj; |
18315 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18316 | PyObject *result; | |
18317 | PyObject * obj0 = 0 ; | |
18318 | char *kwnames[] = { | |
18319 | (char *) "self", NULL | |
18320 | }; | |
18321 | ||
18322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
18324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18325 | { |
18326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18327 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18328 | ||
18329 | wxPyEndAllowThreads(__tstate); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | resultobj = result; | |
18333 | return resultobj; | |
18334 | fail: | |
18335 | return NULL; | |
18336 | } | |
18337 | ||
18338 | ||
c32bde28 | 18339 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18340 | PyObject *obj; |
18341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18342 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18343 | Py_INCREF(obj); | |
18344 | return Py_BuildValue((char *)""); | |
18345 | } | |
c32bde28 | 18346 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18347 | PyObject *resultobj; |
e811c8ce | 18348 | int arg1 = (int) 0 ; |
d14a1e28 | 18349 | wxUpdateUIEvent *result; |
994141e6 | 18350 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18351 | char *kwnames[] = { |
18352 | (char *) "commandId", NULL | |
18353 | }; | |
18354 | ||
994141e6 RD |
18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
18356 | if (obj0) { | |
c32bde28 | 18357 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18358 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18359 | } |
d14a1e28 RD |
18360 | { |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
15afbcd0 | 18367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
18368 | return resultobj; |
18369 | fail: | |
18370 | return NULL; | |
18371 | } | |
18372 | ||
18373 | ||
c32bde28 | 18374 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18375 | PyObject *resultobj; |
18376 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18377 | bool result; | |
18378 | PyObject * obj0 = 0 ; | |
18379 | char *kwnames[] = { | |
18380 | (char *) "self", NULL | |
18381 | }; | |
18382 | ||
18383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18386 | { |
18387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18388 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18389 | ||
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
4f89f6a3 RD |
18393 | { |
18394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18395 | } | |
d14a1e28 RD |
18396 | return resultobj; |
18397 | fail: | |
18398 | return NULL; | |
18399 | } | |
18400 | ||
18401 | ||
c32bde28 | 18402 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18403 | PyObject *resultobj; |
18404 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18405 | bool result; | |
18406 | PyObject * obj0 = 0 ; | |
18407 | char *kwnames[] = { | |
18408 | (char *) "self", NULL | |
18409 | }; | |
18410 | ||
18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18414 | { |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
4f89f6a3 RD |
18421 | { |
18422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18423 | } | |
d14a1e28 RD |
18424 | return resultobj; |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
c32bde28 | 18430 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18431 | PyObject *resultobj; |
18432 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18433 | wxString result; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18442 | { |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | #if wxUSE_UNICODE | |
18451 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18452 | #else | |
18453 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18454 | #endif | |
18455 | } | |
18456 | return resultobj; | |
18457 | fail: | |
18458 | return NULL; | |
18459 | } | |
18460 | ||
18461 | ||
c32bde28 | 18462 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18463 | PyObject *resultobj; |
18464 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18465 | bool result; | |
18466 | PyObject * obj0 = 0 ; | |
18467 | char *kwnames[] = { | |
18468 | (char *) "self", NULL | |
18469 | }; | |
18470 | ||
18471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18474 | { |
18475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18476 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18477 | ||
18478 | wxPyEndAllowThreads(__tstate); | |
18479 | if (PyErr_Occurred()) SWIG_fail; | |
18480 | } | |
4f89f6a3 RD |
18481 | { |
18482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18483 | } | |
d14a1e28 RD |
18484 | return resultobj; |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
c32bde28 | 18490 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18491 | PyObject *resultobj; |
18492 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18493 | bool result; | |
18494 | PyObject * obj0 = 0 ; | |
18495 | char *kwnames[] = { | |
18496 | (char *) "self", NULL | |
18497 | }; | |
18498 | ||
18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18502 | { |
18503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18504 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18505 | ||
18506 | wxPyEndAllowThreads(__tstate); | |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
18508 | } | |
4f89f6a3 RD |
18509 | { |
18510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18511 | } | |
d14a1e28 RD |
18512 | return resultobj; |
18513 | fail: | |
18514 | return NULL; | |
18515 | } | |
18516 | ||
18517 | ||
c32bde28 | 18518 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18519 | PyObject *resultobj; |
18520 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18521 | bool result; | |
18522 | PyObject * obj0 = 0 ; | |
18523 | char *kwnames[] = { | |
18524 | (char *) "self", NULL | |
18525 | }; | |
18526 | ||
18527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18530 | { |
18531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18532 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18533 | ||
18534 | wxPyEndAllowThreads(__tstate); | |
18535 | if (PyErr_Occurred()) SWIG_fail; | |
18536 | } | |
4f89f6a3 RD |
18537 | { |
18538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18539 | } | |
d14a1e28 RD |
18540 | return resultobj; |
18541 | fail: | |
18542 | return NULL; | |
18543 | } | |
18544 | ||
18545 | ||
c32bde28 | 18546 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18547 | PyObject *resultobj; |
18548 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18549 | bool arg2 ; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | PyObject * obj1 = 0 ; | |
18552 | char *kwnames[] = { | |
18553 | (char *) "self",(char *) "check", NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18559 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 18560 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18561 | { |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | (arg1)->Check(arg2); | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
18568 | Py_INCREF(Py_None); resultobj = Py_None; | |
18569 | return resultobj; | |
18570 | fail: | |
18571 | return NULL; | |
18572 | } | |
18573 | ||
18574 | ||
c32bde28 | 18575 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18576 | PyObject *resultobj; |
18577 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18578 | bool arg2 ; | |
18579 | PyObject * obj0 = 0 ; | |
18580 | PyObject * obj1 = 0 ; | |
18581 | char *kwnames[] = { | |
18582 | (char *) "self",(char *) "enable", NULL | |
18583 | }; | |
18584 | ||
18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18588 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 18589 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18590 | { |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | (arg1)->Enable(arg2); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
18597 | Py_INCREF(Py_None); resultobj = Py_None; | |
18598 | return resultobj; | |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
c32bde28 | 18604 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18605 | PyObject *resultobj; |
18606 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18607 | wxString *arg2 = 0 ; | |
ae8162c8 | 18608 | bool temp2 = false ; |
d14a1e28 RD |
18609 | PyObject * obj0 = 0 ; |
18610 | PyObject * obj1 = 0 ; | |
18611 | char *kwnames[] = { | |
18612 | (char *) "self",(char *) "text", NULL | |
18613 | }; | |
18614 | ||
18615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18618 | { |
18619 | arg2 = wxString_in_helper(obj1); | |
18620 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18621 | temp2 = true; |
d14a1e28 RD |
18622 | } |
18623 | { | |
18624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18625 | (arg1)->SetText((wxString const &)*arg2); | |
18626 | ||
18627 | wxPyEndAllowThreads(__tstate); | |
18628 | if (PyErr_Occurred()) SWIG_fail; | |
18629 | } | |
18630 | Py_INCREF(Py_None); resultobj = Py_None; | |
18631 | { | |
18632 | if (temp2) | |
18633 | delete arg2; | |
18634 | } | |
18635 | return resultobj; | |
18636 | fail: | |
18637 | { | |
18638 | if (temp2) | |
18639 | delete arg2; | |
18640 | } | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
c32bde28 | 18645 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18646 | PyObject *resultobj; |
18647 | long arg1 ; | |
994141e6 | 18648 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18649 | char *kwnames[] = { |
18650 | (char *) "updateInterval", NULL | |
18651 | }; | |
18652 | ||
994141e6 | 18653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
c32bde28 | 18654 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 18655 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18656 | { |
18657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18658 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18659 | ||
18660 | wxPyEndAllowThreads(__tstate); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | } | |
18663 | Py_INCREF(Py_None); resultobj = Py_None; | |
18664 | return resultobj; | |
18665 | fail: | |
18666 | return NULL; | |
18667 | } | |
18668 | ||
18669 | ||
c32bde28 | 18670 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18671 | PyObject *resultobj; |
18672 | long result; | |
18673 | char *kwnames[] = { | |
18674 | NULL | |
18675 | }; | |
18676 | ||
18677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18678 | { | |
18679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18680 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18681 | ||
18682 | wxPyEndAllowThreads(__tstate); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
c32bde28 | 18685 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
18686 | return resultobj; |
18687 | fail: | |
18688 | return NULL; | |
18689 | } | |
18690 | ||
18691 | ||
c32bde28 | 18692 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18693 | PyObject *resultobj; |
18694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18695 | bool result; | |
18696 | PyObject * obj0 = 0 ; | |
18697 | char *kwnames[] = { | |
18698 | (char *) "win", NULL | |
18699 | }; | |
18700 | ||
18701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18704 | { |
18705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18706 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18707 | ||
18708 | wxPyEndAllowThreads(__tstate); | |
18709 | if (PyErr_Occurred()) SWIG_fail; | |
18710 | } | |
4f89f6a3 RD |
18711 | { |
18712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18713 | } | |
d14a1e28 RD |
18714 | return resultobj; |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
c32bde28 | 18720 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18721 | PyObject *resultobj; |
18722 | char *kwnames[] = { | |
18723 | NULL | |
18724 | }; | |
18725 | ||
18726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18727 | { | |
18728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18729 | wxUpdateUIEvent::ResetUpdateTime(); | |
18730 | ||
18731 | wxPyEndAllowThreads(__tstate); | |
18732 | if (PyErr_Occurred()) SWIG_fail; | |
18733 | } | |
18734 | Py_INCREF(Py_None); resultobj = Py_None; | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | return NULL; | |
18738 | } | |
18739 | ||
18740 | ||
c32bde28 | 18741 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18742 | PyObject *resultobj; |
18743 | int arg1 ; | |
994141e6 | 18744 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18745 | char *kwnames[] = { |
18746 | (char *) "mode", NULL | |
18747 | }; | |
18748 | ||
994141e6 | 18749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
c32bde28 | 18750 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18751 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18752 | { |
18753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18754 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18755 | ||
18756 | wxPyEndAllowThreads(__tstate); | |
18757 | if (PyErr_Occurred()) SWIG_fail; | |
18758 | } | |
18759 | Py_INCREF(Py_None); resultobj = Py_None; | |
18760 | return resultobj; | |
18761 | fail: | |
18762 | return NULL; | |
18763 | } | |
18764 | ||
18765 | ||
c32bde28 | 18766 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18767 | PyObject *resultobj; |
18768 | int result; | |
18769 | char *kwnames[] = { | |
18770 | NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (int)wxUpdateUIEvent::GetMode(); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
c32bde28 | 18781 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18782 | return resultobj; |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
c32bde28 | 18788 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18789 | PyObject *obj; |
18790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18791 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18792 | Py_INCREF(obj); | |
18793 | return Py_BuildValue((char *)""); | |
18794 | } | |
c32bde28 | 18795 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18796 | PyObject *resultobj; |
18797 | wxSysColourChangedEvent *result; | |
18798 | char *kwnames[] = { | |
18799 | NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18803 | { | |
18804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18805 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18806 | ||
18807 | wxPyEndAllowThreads(__tstate); | |
18808 | if (PyErr_Occurred()) SWIG_fail; | |
18809 | } | |
15afbcd0 | 18810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18811 | return resultobj; |
18812 | fail: | |
18813 | return NULL; | |
18814 | } | |
18815 | ||
18816 | ||
c32bde28 | 18817 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18818 | PyObject *obj; |
18819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18820 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18821 | Py_INCREF(obj); | |
18822 | return Py_BuildValue((char *)""); | |
18823 | } | |
c32bde28 | 18824 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18825 | PyObject *resultobj; |
e811c8ce | 18826 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18827 | wxWindow *arg2 = (wxWindow *) NULL ; |
18828 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 18829 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18830 | PyObject * obj1 = 0 ; |
18831 | char *kwnames[] = { | |
18832 | (char *) "winid",(char *) "gainedCapture", NULL | |
18833 | }; | |
18834 | ||
994141e6 RD |
18835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18836 | if (obj0) { | |
c32bde28 | 18837 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18838 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18839 | } |
d14a1e28 | 18840 | if (obj1) { |
15afbcd0 RD |
18841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18843 | } |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
15afbcd0 | 18851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18852 | return resultobj; |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
c32bde28 | 18858 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18859 | PyObject *resultobj; |
18860 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18861 | wxWindow *result; | |
18862 | PyObject * obj0 = 0 ; | |
18863 | char *kwnames[] = { | |
18864 | (char *) "self", NULL | |
18865 | }; | |
18866 | ||
18867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18870 | { |
18871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18872 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18873 | ||
18874 | wxPyEndAllowThreads(__tstate); | |
18875 | if (PyErr_Occurred()) SWIG_fail; | |
18876 | } | |
18877 | { | |
412d302d | 18878 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18879 | } |
18880 | return resultobj; | |
18881 | fail: | |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
c32bde28 | 18886 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18887 | PyObject *obj; |
18888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18889 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18890 | Py_INCREF(obj); | |
18891 | return Py_BuildValue((char *)""); | |
18892 | } | |
c32bde28 | 18893 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18894 | PyObject *resultobj; |
18895 | wxDisplayChangedEvent *result; | |
18896 | char *kwnames[] = { | |
18897 | NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18901 | { | |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
15afbcd0 | 18908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18909 | return resultobj; |
18910 | fail: | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
c32bde28 | 18915 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18916 | PyObject *obj; |
18917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18918 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18919 | Py_INCREF(obj); | |
18920 | return Py_BuildValue((char *)""); | |
18921 | } | |
c32bde28 | 18922 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18923 | PyObject *resultobj; |
e811c8ce | 18924 | int arg1 = (int) 0 ; |
d14a1e28 | 18925 | wxPaletteChangedEvent *result; |
994141e6 | 18926 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18927 | char *kwnames[] = { |
18928 | (char *) "id", NULL | |
18929 | }; | |
18930 | ||
994141e6 RD |
18931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18932 | if (obj0) { | |
c32bde28 | 18933 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 18934 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18935 | } |
d14a1e28 RD |
18936 | { |
18937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18938 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18939 | ||
18940 | wxPyEndAllowThreads(__tstate); | |
18941 | if (PyErr_Occurred()) SWIG_fail; | |
18942 | } | |
15afbcd0 | 18943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18944 | return resultobj; |
18945 | fail: | |
18946 | return NULL; | |
18947 | } | |
18948 | ||
18949 | ||
c32bde28 | 18950 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18951 | PyObject *resultobj; |
18952 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18953 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18954 | PyObject * obj0 = 0 ; | |
18955 | PyObject * obj1 = 0 ; | |
18956 | char *kwnames[] = { | |
18957 | (char *) "self",(char *) "win", NULL | |
18958 | }; | |
18959 | ||
18960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18965 | { |
18966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18967 | (arg1)->SetChangedWindow(arg2); | |
18968 | ||
18969 | wxPyEndAllowThreads(__tstate); | |
18970 | if (PyErr_Occurred()) SWIG_fail; | |
18971 | } | |
18972 | Py_INCREF(Py_None); resultobj = Py_None; | |
18973 | return resultobj; | |
18974 | fail: | |
18975 | return NULL; | |
18976 | } | |
18977 | ||
18978 | ||
c32bde28 | 18979 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18980 | PyObject *resultobj; |
18981 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18982 | wxWindow *result; | |
18983 | PyObject * obj0 = 0 ; | |
18984 | char *kwnames[] = { | |
18985 | (char *) "self", NULL | |
18986 | }; | |
18987 | ||
18988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18991 | { |
18992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18993 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18994 | ||
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
18998 | { | |
412d302d | 18999 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19000 | } |
19001 | return resultobj; | |
19002 | fail: | |
19003 | return NULL; | |
19004 | } | |
19005 | ||
19006 | ||
c32bde28 | 19007 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19008 | PyObject *obj; |
19009 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19010 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
19011 | Py_INCREF(obj); | |
19012 | return Py_BuildValue((char *)""); | |
19013 | } | |
c32bde28 | 19014 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 19015 | PyObject *resultobj; |
e811c8ce | 19016 | int arg1 = (int) 0 ; |
d14a1e28 | 19017 | wxQueryNewPaletteEvent *result; |
994141e6 | 19018 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19019 | char *kwnames[] = { |
19020 | (char *) "winid", NULL | |
19021 | }; | |
19022 | ||
994141e6 RD |
19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
19024 | if (obj0) { | |
c32bde28 | 19025 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 19026 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19027 | } |
d14a1e28 RD |
19028 | { |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
19031 | ||
19032 | wxPyEndAllowThreads(__tstate); | |
19033 | if (PyErr_Occurred()) SWIG_fail; | |
19034 | } | |
15afbcd0 | 19035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
19036 | return resultobj; |
19037 | fail: | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
c32bde28 | 19042 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19043 | PyObject *resultobj; |
19044 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19045 | bool arg2 ; | |
19046 | PyObject * obj0 = 0 ; | |
19047 | PyObject * obj1 = 0 ; | |
19048 | char *kwnames[] = { | |
19049 | (char *) "self",(char *) "realized", NULL | |
19050 | }; | |
19051 | ||
19052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
19054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19055 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 19056 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19057 | { |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | (arg1)->SetPaletteRealized(arg2); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
19064 | Py_INCREF(Py_None); resultobj = Py_None; | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
c32bde28 | 19071 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19072 | PyObject *resultobj; |
19073 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19074 | bool result; | |
19075 | PyObject * obj0 = 0 ; | |
19076 | char *kwnames[] = { | |
19077 | (char *) "self", NULL | |
19078 | }; | |
19079 | ||
19080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
19082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19083 | { |
19084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19085 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
19086 | ||
19087 | wxPyEndAllowThreads(__tstate); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | } | |
4f89f6a3 RD |
19090 | { |
19091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19092 | } | |
d14a1e28 RD |
19093 | return resultobj; |
19094 | fail: | |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
c32bde28 | 19099 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19100 | PyObject *obj; |
19101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19102 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
19103 | Py_INCREF(obj); | |
19104 | return Py_BuildValue((char *)""); | |
19105 | } | |
c32bde28 | 19106 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19107 | PyObject *resultobj; |
19108 | wxNavigationKeyEvent *result; | |
19109 | char *kwnames[] = { | |
19110 | NULL | |
19111 | }; | |
19112 | ||
19113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
19114 | { | |
19115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19116 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
19117 | ||
19118 | wxPyEndAllowThreads(__tstate); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
15afbcd0 | 19121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
19122 | return resultobj; |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
c32bde28 | 19128 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19129 | PyObject *resultobj; |
19130 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19131 | bool result; | |
19132 | PyObject * obj0 = 0 ; | |
19133 | char *kwnames[] = { | |
19134 | (char *) "self", NULL | |
19135 | }; | |
19136 | ||
19137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19140 | { |
19141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19142 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
19143 | ||
19144 | wxPyEndAllowThreads(__tstate); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | } | |
4f89f6a3 RD |
19147 | { |
19148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19149 | } | |
d14a1e28 RD |
19150 | return resultobj; |
19151 | fail: | |
19152 | return NULL; | |
19153 | } | |
19154 | ||
19155 | ||
c32bde28 | 19156 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19157 | PyObject *resultobj; |
19158 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19159 | bool arg2 ; | |
19160 | PyObject * obj0 = 0 ; | |
19161 | PyObject * obj1 = 0 ; | |
19162 | char *kwnames[] = { | |
908b74cd | 19163 | (char *) "self",(char *) "forward", NULL |
d14a1e28 RD |
19164 | }; |
19165 | ||
19166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19169 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 19170 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19171 | { |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | (arg1)->SetDirection(arg2); | |
19174 | ||
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
19178 | Py_INCREF(Py_None); resultobj = Py_None; | |
19179 | return resultobj; | |
19180 | fail: | |
19181 | return NULL; | |
19182 | } | |
19183 | ||
19184 | ||
c32bde28 | 19185 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19186 | PyObject *resultobj; |
19187 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19188 | bool result; | |
19189 | PyObject * obj0 = 0 ; | |
19190 | char *kwnames[] = { | |
19191 | (char *) "self", NULL | |
19192 | }; | |
19193 | ||
19194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19197 | { |
19198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19199 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19200 | ||
19201 | wxPyEndAllowThreads(__tstate); | |
19202 | if (PyErr_Occurred()) SWIG_fail; | |
19203 | } | |
4f89f6a3 RD |
19204 | { |
19205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19206 | } | |
d14a1e28 RD |
19207 | return resultobj; |
19208 | fail: | |
19209 | return NULL; | |
19210 | } | |
19211 | ||
19212 | ||
c32bde28 | 19213 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19214 | PyObject *resultobj; |
19215 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19216 | bool arg2 ; | |
19217 | PyObject * obj0 = 0 ; | |
19218 | PyObject * obj1 = 0 ; | |
19219 | char *kwnames[] = { | |
908b74cd | 19220 | (char *) "self",(char *) "ischange", NULL |
d14a1e28 RD |
19221 | }; |
19222 | ||
19223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19226 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 19227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19228 | { |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | (arg1)->SetWindowChange(arg2); | |
19231 | ||
19232 | wxPyEndAllowThreads(__tstate); | |
19233 | if (PyErr_Occurred()) SWIG_fail; | |
19234 | } | |
19235 | Py_INCREF(Py_None); resultobj = Py_None; | |
19236 | return resultobj; | |
19237 | fail: | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
c32bde28 | 19242 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19243 | PyObject *resultobj; |
19244 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19245 | long arg2 ; | |
19246 | PyObject * obj0 = 0 ; | |
19247 | PyObject * obj1 = 0 ; | |
19248 | char *kwnames[] = { | |
19249 | (char *) "self",(char *) "flags", NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19255 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19256 | if (PyErr_Occurred()) SWIG_fail; |
19257 | { | |
19258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19259 | (arg1)->SetFlags(arg2); | |
19260 | ||
19261 | wxPyEndAllowThreads(__tstate); | |
19262 | if (PyErr_Occurred()) SWIG_fail; | |
19263 | } | |
19264 | Py_INCREF(Py_None); resultobj = Py_None; | |
19265 | return resultobj; | |
19266 | fail: | |
19267 | return NULL; | |
19268 | } | |
19269 | ||
19270 | ||
c32bde28 | 19271 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19272 | PyObject *resultobj; |
19273 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19274 | wxWindow *result; | |
19275 | PyObject * obj0 = 0 ; | |
19276 | char *kwnames[] = { | |
19277 | (char *) "self", NULL | |
19278 | }; | |
19279 | ||
19280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19283 | { |
19284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19285 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19286 | ||
19287 | wxPyEndAllowThreads(__tstate); | |
19288 | if (PyErr_Occurred()) SWIG_fail; | |
19289 | } | |
19290 | { | |
412d302d | 19291 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19292 | } |
19293 | return resultobj; | |
19294 | fail: | |
19295 | return NULL; | |
19296 | } | |
19297 | ||
19298 | ||
c32bde28 | 19299 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19300 | PyObject *resultobj; |
19301 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19302 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19303 | PyObject * obj0 = 0 ; | |
19304 | PyObject * obj1 = 0 ; | |
19305 | char *kwnames[] = { | |
19306 | (char *) "self",(char *) "win", NULL | |
19307 | }; | |
19308 | ||
19309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
19311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19314 | { |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | (arg1)->SetCurrentFocus(arg2); | |
19317 | ||
19318 | wxPyEndAllowThreads(__tstate); | |
19319 | if (PyErr_Occurred()) SWIG_fail; | |
19320 | } | |
19321 | Py_INCREF(Py_None); resultobj = Py_None; | |
19322 | return resultobj; | |
19323 | fail: | |
19324 | return NULL; | |
19325 | } | |
19326 | ||
19327 | ||
c32bde28 | 19328 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19329 | PyObject *obj; |
19330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19331 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19332 | Py_INCREF(obj); | |
19333 | return Py_BuildValue((char *)""); | |
19334 | } | |
c32bde28 | 19335 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19336 | PyObject *resultobj; |
19337 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19338 | wxWindowCreateEvent *result; | |
19339 | PyObject * obj0 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "win", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19345 | if (obj0) { | |
15afbcd0 RD |
19346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19348 | } |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
15afbcd0 | 19356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
19357 | return resultobj; |
19358 | fail: | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
c32bde28 | 19363 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19364 | PyObject *resultobj; |
19365 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19366 | wxWindow *result; | |
19367 | PyObject * obj0 = 0 ; | |
19368 | char *kwnames[] = { | |
19369 | (char *) "self", NULL | |
19370 | }; | |
19371 | ||
19372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
19374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19375 | { |
19376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19377 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19378 | ||
19379 | wxPyEndAllowThreads(__tstate); | |
19380 | if (PyErr_Occurred()) SWIG_fail; | |
19381 | } | |
19382 | { | |
412d302d | 19383 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19384 | } |
19385 | return resultobj; | |
19386 | fail: | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
c32bde28 | 19391 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19392 | PyObject *obj; |
19393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19394 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19395 | Py_INCREF(obj); | |
19396 | return Py_BuildValue((char *)""); | |
19397 | } | |
c32bde28 | 19398 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19399 | PyObject *resultobj; |
19400 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19401 | wxWindowDestroyEvent *result; | |
19402 | PyObject * obj0 = 0 ; | |
19403 | char *kwnames[] = { | |
19404 | (char *) "win", NULL | |
19405 | }; | |
19406 | ||
19407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19408 | if (obj0) { | |
15afbcd0 RD |
19409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19411 | } |
19412 | { | |
19413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19414 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19415 | ||
19416 | wxPyEndAllowThreads(__tstate); | |
19417 | if (PyErr_Occurred()) SWIG_fail; | |
19418 | } | |
15afbcd0 | 19419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
19420 | return resultobj; |
19421 | fail: | |
19422 | return NULL; | |
19423 | } | |
19424 | ||
19425 | ||
c32bde28 | 19426 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19427 | PyObject *resultobj; |
19428 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19429 | wxWindow *result; | |
19430 | PyObject * obj0 = 0 ; | |
19431 | char *kwnames[] = { | |
19432 | (char *) "self", NULL | |
19433 | }; | |
19434 | ||
19435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
19437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19438 | { |
19439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19440 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19441 | ||
19442 | wxPyEndAllowThreads(__tstate); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | { | |
412d302d | 19446 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19447 | } |
19448 | return resultobj; | |
19449 | fail: | |
19450 | return NULL; | |
19451 | } | |
19452 | ||
19453 | ||
c32bde28 | 19454 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19455 | PyObject *obj; |
19456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19457 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19458 | Py_INCREF(obj); | |
19459 | return Py_BuildValue((char *)""); | |
19460 | } | |
c32bde28 | 19461 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19462 | PyObject *resultobj; |
19463 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 19464 | int arg2 = (int) 0 ; |
d14a1e28 RD |
19465 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19466 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19467 | wxContextMenuEvent *result; | |
19468 | wxPoint temp3 ; | |
994141e6 RD |
19469 | PyObject * obj0 = 0 ; |
19470 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19471 | PyObject * obj2 = 0 ; |
19472 | char *kwnames[] = { | |
19473 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19474 | }; | |
19475 | ||
994141e6 RD |
19476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
19477 | if (obj0) { | |
c32bde28 | 19478 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 19479 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
19480 | } |
19481 | if (obj1) { | |
c32bde28 | 19482 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19483 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19484 | } |
d14a1e28 RD |
19485 | if (obj2) { |
19486 | { | |
19487 | arg3 = &temp3; | |
19488 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19489 | } | |
19490 | } | |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
15afbcd0 | 19498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
19499 | return resultobj; |
19500 | fail: | |
19501 | return NULL; | |
19502 | } | |
19503 | ||
19504 | ||
c32bde28 | 19505 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19506 | PyObject *resultobj; |
19507 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19508 | wxPoint *result; | |
19509 | PyObject * obj0 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
19516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19517 | { |
19518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19519 | { | |
19520 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19521 | result = (wxPoint *) &_result_ref; | |
19522 | } | |
19523 | ||
19524 | wxPyEndAllowThreads(__tstate); | |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
15afbcd0 | 19527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
19528 | return resultobj; |
19529 | fail: | |
19530 | return NULL; | |
19531 | } | |
19532 | ||
19533 | ||
c32bde28 | 19534 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19535 | PyObject *resultobj; |
19536 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19537 | wxPoint *arg2 = 0 ; | |
19538 | wxPoint temp2 ; | |
19539 | PyObject * obj0 = 0 ; | |
19540 | PyObject * obj1 = 0 ; | |
19541 | char *kwnames[] = { | |
19542 | (char *) "self",(char *) "pos", NULL | |
19543 | }; | |
19544 | ||
19545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
19547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19548 | { |
19549 | arg2 = &temp2; | |
19550 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19551 | } | |
19552 | { | |
19553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19554 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19555 | ||
19556 | wxPyEndAllowThreads(__tstate); | |
19557 | if (PyErr_Occurred()) SWIG_fail; | |
19558 | } | |
19559 | Py_INCREF(Py_None); resultobj = Py_None; | |
19560 | return resultobj; | |
19561 | fail: | |
19562 | return NULL; | |
19563 | } | |
19564 | ||
19565 | ||
c32bde28 | 19566 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19567 | PyObject *obj; |
19568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19569 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19570 | Py_INCREF(obj); | |
19571 | return Py_BuildValue((char *)""); | |
19572 | } | |
c32bde28 | 19573 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19574 | PyObject *resultobj; |
19575 | wxIdleEvent *result; | |
19576 | char *kwnames[] = { | |
19577 | NULL | |
19578 | }; | |
19579 | ||
19580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19581 | { | |
19582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19583 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19584 | ||
19585 | wxPyEndAllowThreads(__tstate); | |
19586 | if (PyErr_Occurred()) SWIG_fail; | |
19587 | } | |
15afbcd0 | 19588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
19589 | return resultobj; |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
c32bde28 | 19595 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19596 | PyObject *resultobj; |
19597 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 19598 | bool arg2 = (bool) true ; |
d14a1e28 RD |
19599 | PyObject * obj0 = 0 ; |
19600 | PyObject * obj1 = 0 ; | |
19601 | char *kwnames[] = { | |
19602 | (char *) "self",(char *) "needMore", NULL | |
19603 | }; | |
19604 | ||
19605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19608 | if (obj1) { |
c32bde28 | 19609 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 19610 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19611 | } |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | (arg1)->RequestMore(arg2); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
19619 | Py_INCREF(Py_None); resultobj = Py_None; | |
19620 | return resultobj; | |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
c32bde28 | 19626 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19627 | PyObject *resultobj; |
19628 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19629 | bool result; | |
19630 | PyObject * obj0 = 0 ; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "self", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19638 | { |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19641 | ||
19642 | wxPyEndAllowThreads(__tstate); | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | } | |
4f89f6a3 RD |
19645 | { |
19646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19647 | } | |
d14a1e28 RD |
19648 | return resultobj; |
19649 | fail: | |
19650 | return NULL; | |
19651 | } | |
19652 | ||
19653 | ||
c32bde28 | 19654 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19655 | PyObject *resultobj; |
19656 | int arg1 ; | |
994141e6 | 19657 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19658 | char *kwnames[] = { |
19659 | (char *) "mode", NULL | |
19660 | }; | |
19661 | ||
994141e6 | 19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
c32bde28 | 19663 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 19664 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19665 | { |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | Py_INCREF(Py_None); resultobj = Py_None; | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
c32bde28 | 19679 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19680 | PyObject *resultobj; |
19681 | int result; | |
19682 | char *kwnames[] = { | |
19683 | NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | result = (int)wxIdleEvent::GetMode(); | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
c32bde28 | 19694 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
19695 | return resultobj; |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
c32bde28 | 19701 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19702 | PyObject *resultobj; |
19703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19704 | bool result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "win", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19713 | { |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
4f89f6a3 RD |
19720 | { |
19721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19722 | } | |
d14a1e28 RD |
19723 | return resultobj; |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
c32bde28 | 19729 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19730 | PyObject *obj; |
19731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19732 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19733 | Py_INCREF(obj); | |
19734 | return Py_BuildValue((char *)""); | |
19735 | } | |
c32bde28 | 19736 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19737 | PyObject *resultobj; |
19738 | int arg1 = (int) 0 ; | |
19739 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19740 | wxPyEvent *result; | |
994141e6 RD |
19741 | PyObject * obj0 = 0 ; |
19742 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19743 | char *kwnames[] = { |
19744 | (char *) "winid",(char *) "commandType", NULL | |
19745 | }; | |
19746 | ||
994141e6 RD |
19747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19748 | if (obj0) { | |
c32bde28 | 19749 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 19750 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
19751 | } |
19752 | if (obj1) { | |
c32bde28 | 19753 | arg2 = (wxEventType)SWIG_As_int(obj1); |
15afbcd0 | 19754 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19755 | } |
d14a1e28 RD |
19756 | { |
19757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19758 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19759 | ||
19760 | wxPyEndAllowThreads(__tstate); | |
19761 | if (PyErr_Occurred()) SWIG_fail; | |
19762 | } | |
15afbcd0 | 19763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19764 | return resultobj; |
19765 | fail: | |
19766 | return NULL; | |
19767 | } | |
19768 | ||
19769 | ||
c32bde28 | 19770 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19771 | PyObject *resultobj; |
19772 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19773 | PyObject * obj0 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "self", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19781 | { |
19782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19783 | delete arg1; | |
19784 | ||
19785 | wxPyEndAllowThreads(__tstate); | |
19786 | if (PyErr_Occurred()) SWIG_fail; | |
19787 | } | |
19788 | Py_INCREF(Py_None); resultobj = Py_None; | |
19789 | return resultobj; | |
19790 | fail: | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
c32bde28 | 19795 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19796 | PyObject *resultobj; |
19797 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19798 | PyObject *arg2 = (PyObject *) 0 ; | |
19799 | PyObject * obj0 = 0 ; | |
19800 | PyObject * obj1 = 0 ; | |
19801 | char *kwnames[] = { | |
19802 | (char *) "self",(char *) "self", NULL | |
19803 | }; | |
19804 | ||
19805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19808 | arg2 = obj1; |
19809 | { | |
19810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19811 | (arg1)->SetSelf(arg2); | |
19812 | ||
19813 | wxPyEndAllowThreads(__tstate); | |
19814 | if (PyErr_Occurred()) SWIG_fail; | |
19815 | } | |
19816 | Py_INCREF(Py_None); resultobj = Py_None; | |
19817 | return resultobj; | |
19818 | fail: | |
19819 | return NULL; | |
19820 | } | |
19821 | ||
19822 | ||
c32bde28 | 19823 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19824 | PyObject *resultobj; |
19825 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19826 | PyObject *result; | |
19827 | PyObject * obj0 = 0 ; | |
19828 | char *kwnames[] = { | |
19829 | (char *) "self", NULL | |
19830 | }; | |
19831 | ||
19832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19835 | { |
19836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19837 | result = (PyObject *)(arg1)->GetSelf(); | |
19838 | ||
19839 | wxPyEndAllowThreads(__tstate); | |
19840 | if (PyErr_Occurred()) SWIG_fail; | |
19841 | } | |
19842 | resultobj = result; | |
19843 | return resultobj; | |
19844 | fail: | |
19845 | return NULL; | |
19846 | } | |
19847 | ||
19848 | ||
c32bde28 | 19849 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19850 | PyObject *obj; |
19851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19852 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19853 | Py_INCREF(obj); | |
19854 | return Py_BuildValue((char *)""); | |
19855 | } | |
c32bde28 | 19856 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19857 | PyObject *resultobj; |
19858 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19859 | int arg2 = (int) 0 ; | |
19860 | wxPyCommandEvent *result; | |
994141e6 RD |
19861 | PyObject * obj0 = 0 ; |
19862 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19863 | char *kwnames[] = { |
19864 | (char *) "commandType",(char *) "id", NULL | |
19865 | }; | |
19866 | ||
994141e6 RD |
19867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19868 | if (obj0) { | |
c32bde28 | 19869 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 19870 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
19871 | } |
19872 | if (obj1) { | |
c32bde28 | 19873 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19874 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19875 | } |
d14a1e28 RD |
19876 | { |
19877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19878 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19879 | ||
19880 | wxPyEndAllowThreads(__tstate); | |
19881 | if (PyErr_Occurred()) SWIG_fail; | |
19882 | } | |
15afbcd0 | 19883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19884 | return resultobj; |
19885 | fail: | |
19886 | return NULL; | |
19887 | } | |
19888 | ||
19889 | ||
c32bde28 | 19890 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19891 | PyObject *resultobj; |
19892 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19893 | PyObject * obj0 = 0 ; | |
19894 | char *kwnames[] = { | |
19895 | (char *) "self", NULL | |
19896 | }; | |
19897 | ||
19898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19901 | { |
19902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19903 | delete arg1; | |
19904 | ||
19905 | wxPyEndAllowThreads(__tstate); | |
19906 | if (PyErr_Occurred()) SWIG_fail; | |
19907 | } | |
19908 | Py_INCREF(Py_None); resultobj = Py_None; | |
19909 | return resultobj; | |
19910 | fail: | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
c32bde28 | 19915 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19916 | PyObject *resultobj; |
19917 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19918 | PyObject *arg2 = (PyObject *) 0 ; | |
19919 | PyObject * obj0 = 0 ; | |
19920 | PyObject * obj1 = 0 ; | |
19921 | char *kwnames[] = { | |
19922 | (char *) "self",(char *) "self", NULL | |
19923 | }; | |
19924 | ||
19925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19928 | arg2 = obj1; |
19929 | { | |
19930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19931 | (arg1)->SetSelf(arg2); | |
19932 | ||
19933 | wxPyEndAllowThreads(__tstate); | |
19934 | if (PyErr_Occurred()) SWIG_fail; | |
19935 | } | |
19936 | Py_INCREF(Py_None); resultobj = Py_None; | |
19937 | return resultobj; | |
19938 | fail: | |
19939 | return NULL; | |
19940 | } | |
19941 | ||
19942 | ||
c32bde28 | 19943 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19944 | PyObject *resultobj; |
19945 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19946 | PyObject *result; | |
19947 | PyObject * obj0 = 0 ; | |
19948 | char *kwnames[] = { | |
19949 | (char *) "self", NULL | |
19950 | }; | |
19951 | ||
19952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19955 | { |
19956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19957 | result = (PyObject *)(arg1)->GetSelf(); | |
19958 | ||
19959 | wxPyEndAllowThreads(__tstate); | |
19960 | if (PyErr_Occurred()) SWIG_fail; | |
19961 | } | |
19962 | resultobj = result; | |
19963 | return resultobj; | |
19964 | fail: | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
c32bde28 | 19969 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19970 | PyObject *obj; |
19971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19972 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19973 | Py_INCREF(obj); | |
19974 | return Py_BuildValue((char *)""); | |
19975 | } | |
c32bde28 | 19976 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19977 | PyObject *resultobj; |
19978 | wxPyApp *result; | |
19979 | char *kwnames[] = { | |
19980 | NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19984 | { | |
19985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19986 | result = (wxPyApp *)new_wxPyApp(); | |
19987 | ||
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
b0f7404b | 19991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d14a1e28 RD |
19992 | return resultobj; |
19993 | fail: | |
19994 | return NULL; | |
19995 | } | |
19996 | ||
19997 | ||
c32bde28 | 19998 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19999 | PyObject *resultobj; |
20000 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | char *kwnames[] = { | |
20003 | (char *) "self", NULL | |
20004 | }; | |
20005 | ||
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20009 | { |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | delete arg1; | |
20012 | ||
20013 | wxPyEndAllowThreads(__tstate); | |
20014 | if (PyErr_Occurred()) SWIG_fail; | |
20015 | } | |
20016 | Py_INCREF(Py_None); resultobj = Py_None; | |
20017 | return resultobj; | |
20018 | fail: | |
20019 | return NULL; | |
20020 | } | |
20021 | ||
20022 | ||
c32bde28 | 20023 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20024 | PyObject *resultobj; |
20025 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20026 | PyObject *arg2 = (PyObject *) 0 ; | |
20027 | PyObject *arg3 = (PyObject *) 0 ; | |
20028 | PyObject * obj0 = 0 ; | |
20029 | PyObject * obj1 = 0 ; | |
20030 | PyObject * obj2 = 0 ; | |
20031 | char *kwnames[] = { | |
20032 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20033 | }; | |
20034 | ||
20035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20038 | arg2 = obj1; |
20039 | arg3 = obj2; | |
20040 | { | |
20041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20042 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20043 | ||
20044 | wxPyEndAllowThreads(__tstate); | |
20045 | if (PyErr_Occurred()) SWIG_fail; | |
20046 | } | |
20047 | Py_INCREF(Py_None); resultobj = Py_None; | |
20048 | return resultobj; | |
20049 | fail: | |
20050 | return NULL; | |
20051 | } | |
20052 | ||
20053 | ||
c32bde28 | 20054 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20055 | PyObject *resultobj; |
20056 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20057 | wxString result; | |
20058 | PyObject * obj0 = 0 ; | |
20059 | char *kwnames[] = { | |
20060 | (char *) "self", NULL | |
20061 | }; | |
20062 | ||
20063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20066 | { |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
20069 | ||
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | { | |
20074 | #if wxUSE_UNICODE | |
20075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20076 | #else | |
20077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20078 | #endif | |
20079 | } | |
20080 | return resultobj; | |
20081 | fail: | |
20082 | return NULL; | |
20083 | } | |
20084 | ||
20085 | ||
c32bde28 | 20086 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20087 | PyObject *resultobj; |
20088 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20089 | wxString *arg2 = 0 ; | |
ae8162c8 | 20090 | bool temp2 = false ; |
d14a1e28 RD |
20091 | PyObject * obj0 = 0 ; |
20092 | PyObject * obj1 = 0 ; | |
20093 | char *kwnames[] = { | |
20094 | (char *) "self",(char *) "name", NULL | |
20095 | }; | |
20096 | ||
20097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20100 | { |
20101 | arg2 = wxString_in_helper(obj1); | |
20102 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20103 | temp2 = true; |
d14a1e28 RD |
20104 | } |
20105 | { | |
20106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20107 | (arg1)->SetAppName((wxString const &)*arg2); | |
20108 | ||
20109 | wxPyEndAllowThreads(__tstate); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | } | |
20112 | Py_INCREF(Py_None); resultobj = Py_None; | |
20113 | { | |
20114 | if (temp2) | |
20115 | delete arg2; | |
20116 | } | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | { | |
20120 | if (temp2) | |
20121 | delete arg2; | |
20122 | } | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
c32bde28 | 20127 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20128 | PyObject *resultobj; |
20129 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20130 | wxString result; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "self", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20139 | { |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | { | |
20147 | #if wxUSE_UNICODE | |
20148 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20149 | #else | |
20150 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20151 | #endif | |
20152 | } | |
20153 | return resultobj; | |
20154 | fail: | |
20155 | return NULL; | |
20156 | } | |
20157 | ||
20158 | ||
c32bde28 | 20159 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20160 | PyObject *resultobj; |
20161 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20162 | wxString *arg2 = 0 ; | |
ae8162c8 | 20163 | bool temp2 = false ; |
d14a1e28 RD |
20164 | PyObject * obj0 = 0 ; |
20165 | PyObject * obj1 = 0 ; | |
20166 | char *kwnames[] = { | |
20167 | (char *) "self",(char *) "name", NULL | |
20168 | }; | |
20169 | ||
20170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20173 | { |
20174 | arg2 = wxString_in_helper(obj1); | |
20175 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20176 | temp2 = true; |
d14a1e28 RD |
20177 | } |
20178 | { | |
20179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20180 | (arg1)->SetClassName((wxString const &)*arg2); | |
20181 | ||
20182 | wxPyEndAllowThreads(__tstate); | |
20183 | if (PyErr_Occurred()) SWIG_fail; | |
20184 | } | |
20185 | Py_INCREF(Py_None); resultobj = Py_None; | |
20186 | { | |
20187 | if (temp2) | |
20188 | delete arg2; | |
20189 | } | |
20190 | return resultobj; | |
20191 | fail: | |
20192 | { | |
20193 | if (temp2) | |
20194 | delete arg2; | |
20195 | } | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
c32bde28 | 20200 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20201 | PyObject *resultobj; |
20202 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20203 | wxString *result; | |
20204 | PyObject * obj0 = 0 ; | |
20205 | char *kwnames[] = { | |
20206 | (char *) "self", NULL | |
20207 | }; | |
20208 | ||
20209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20212 | { |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | { | |
20215 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20216 | result = (wxString *) &_result_ref; | |
20217 | } | |
20218 | ||
20219 | wxPyEndAllowThreads(__tstate); | |
20220 | if (PyErr_Occurred()) SWIG_fail; | |
20221 | } | |
cc6dd355 RD |
20222 | { |
20223 | #if wxUSE_UNICODE | |
20224 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20225 | #else | |
20226 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20227 | #endif | |
20228 | } | |
d14a1e28 RD |
20229 | return resultobj; |
20230 | fail: | |
20231 | return NULL; | |
20232 | } | |
20233 | ||
20234 | ||
c32bde28 | 20235 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20236 | PyObject *resultobj; |
20237 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20238 | wxString *arg2 = 0 ; | |
ae8162c8 | 20239 | bool temp2 = false ; |
d14a1e28 RD |
20240 | PyObject * obj0 = 0 ; |
20241 | PyObject * obj1 = 0 ; | |
20242 | char *kwnames[] = { | |
20243 | (char *) "self",(char *) "name", NULL | |
20244 | }; | |
20245 | ||
20246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20249 | { |
20250 | arg2 = wxString_in_helper(obj1); | |
20251 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20252 | temp2 = true; |
d14a1e28 RD |
20253 | } |
20254 | { | |
20255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20256 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20257 | ||
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | Py_INCREF(Py_None); resultobj = Py_None; | |
20262 | { | |
20263 | if (temp2) | |
20264 | delete arg2; | |
20265 | } | |
20266 | return resultobj; | |
20267 | fail: | |
20268 | { | |
20269 | if (temp2) | |
20270 | delete arg2; | |
20271 | } | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
c32bde28 | 20276 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20277 | PyObject *resultobj; |
20278 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20279 | wxAppTraits *result; | |
20280 | PyObject * obj0 = 0 ; | |
20281 | char *kwnames[] = { | |
20282 | (char *) "self", NULL | |
20283 | }; | |
20284 | ||
20285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20288 | { |
20289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20290 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20291 | ||
20292 | wxPyEndAllowThreads(__tstate); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | } | |
15afbcd0 | 20295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
20296 | return resultobj; |
20297 | fail: | |
20298 | return NULL; | |
20299 | } | |
20300 | ||
20301 | ||
c32bde28 | 20302 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20303 | PyObject *resultobj; |
20304 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20305 | PyObject * obj0 = 0 ; | |
20306 | char *kwnames[] = { | |
20307 | (char *) "self", NULL | |
20308 | }; | |
20309 | ||
20310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20313 | { |
20314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20315 | (arg1)->ProcessPendingEvents(); | |
20316 | ||
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
20320 | Py_INCREF(Py_None); resultobj = Py_None; | |
20321 | return resultobj; | |
20322 | fail: | |
20323 | return NULL; | |
20324 | } | |
20325 | ||
20326 | ||
c32bde28 | 20327 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20328 | PyObject *resultobj; |
20329 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 20330 | bool arg2 = (bool) false ; |
d14a1e28 RD |
20331 | bool result; |
20332 | PyObject * obj0 = 0 ; | |
20333 | PyObject * obj1 = 0 ; | |
20334 | char *kwnames[] = { | |
20335 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20336 | }; | |
20337 | ||
20338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 20341 | if (obj1) { |
c32bde28 | 20342 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 20343 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20344 | } |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | result = (bool)(arg1)->Yield(arg2); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
4f89f6a3 RD |
20352 | { |
20353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20354 | } | |
d14a1e28 RD |
20355 | return resultobj; |
20356 | fail: | |
20357 | return NULL; | |
20358 | } | |
20359 | ||
20360 | ||
c32bde28 | 20361 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20362 | PyObject *resultobj; |
20363 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20364 | PyObject * obj0 = 0 ; | |
20365 | char *kwnames[] = { | |
20366 | (char *) "self", NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20372 | { |
20373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20374 | (arg1)->WakeUpIdle(); | |
20375 | ||
20376 | wxPyEndAllowThreads(__tstate); | |
20377 | if (PyErr_Occurred()) SWIG_fail; | |
20378 | } | |
20379 | Py_INCREF(Py_None); resultobj = Py_None; | |
20380 | return resultobj; | |
20381 | fail: | |
20382 | return NULL; | |
20383 | } | |
20384 | ||
20385 | ||
1fc3b23a RD |
20386 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20387 | PyObject *resultobj; | |
20388 | bool result; | |
20389 | char *kwnames[] = { | |
20390 | NULL | |
20391 | }; | |
20392 | ||
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20394 | { | |
20395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20396 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20397 | ||
20398 | wxPyEndAllowThreads(__tstate); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | { | |
20402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20403 | } | |
20404 | return resultobj; | |
20405 | fail: | |
20406 | return NULL; | |
20407 | } | |
20408 | ||
20409 | ||
c32bde28 | 20410 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20411 | PyObject *resultobj; |
20412 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20413 | int result; | |
20414 | PyObject * obj0 = 0 ; | |
20415 | char *kwnames[] = { | |
20416 | (char *) "self", NULL | |
20417 | }; | |
20418 | ||
20419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20422 | { |
20423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20424 | result = (int)(arg1)->MainLoop(); | |
20425 | ||
20426 | wxPyEndAllowThreads(__tstate); | |
20427 | if (PyErr_Occurred()) SWIG_fail; | |
20428 | } | |
c32bde28 | 20429 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20430 | return resultobj; |
20431 | fail: | |
20432 | return NULL; | |
20433 | } | |
20434 | ||
20435 | ||
c32bde28 | 20436 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20437 | PyObject *resultobj; |
20438 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20439 | PyObject * obj0 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20447 | { |
20448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20449 | (arg1)->Exit(); | |
20450 | ||
20451 | wxPyEndAllowThreads(__tstate); | |
20452 | if (PyErr_Occurred()) SWIG_fail; | |
20453 | } | |
20454 | Py_INCREF(Py_None); resultobj = Py_None; | |
20455 | return resultobj; | |
20456 | fail: | |
20457 | return NULL; | |
20458 | } | |
20459 | ||
20460 | ||
c32bde28 | 20461 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20462 | PyObject *resultobj; |
20463 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20464 | PyObject * obj0 = 0 ; | |
20465 | char *kwnames[] = { | |
20466 | (char *) "self", NULL | |
20467 | }; | |
20468 | ||
20469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20472 | { |
20473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20474 | (arg1)->ExitMainLoop(); | |
20475 | ||
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | Py_INCREF(Py_None); resultobj = Py_None; | |
20480 | return resultobj; | |
20481 | fail: | |
20482 | return NULL; | |
20483 | } | |
20484 | ||
20485 | ||
c32bde28 | 20486 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20487 | PyObject *resultobj; |
20488 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20489 | bool result; | |
20490 | PyObject * obj0 = 0 ; | |
20491 | char *kwnames[] = { | |
20492 | (char *) "self", NULL | |
20493 | }; | |
20494 | ||
20495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20498 | { |
20499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20500 | result = (bool)(arg1)->Pending(); | |
20501 | ||
20502 | wxPyEndAllowThreads(__tstate); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | } | |
4f89f6a3 RD |
20505 | { |
20506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20507 | } | |
d14a1e28 RD |
20508 | return resultobj; |
20509 | fail: | |
20510 | return NULL; | |
20511 | } | |
20512 | ||
20513 | ||
c32bde28 | 20514 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20515 | PyObject *resultobj; |
20516 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20517 | bool result; | |
20518 | PyObject * obj0 = 0 ; | |
20519 | char *kwnames[] = { | |
20520 | (char *) "self", NULL | |
20521 | }; | |
20522 | ||
20523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20526 | { |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20528 | result = (bool)(arg1)->Dispatch(); | |
20529 | ||
20530 | wxPyEndAllowThreads(__tstate); | |
20531 | if (PyErr_Occurred()) SWIG_fail; | |
20532 | } | |
4f89f6a3 RD |
20533 | { |
20534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20535 | } | |
d14a1e28 RD |
20536 | return resultobj; |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
c32bde28 | 20542 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20543 | PyObject *resultobj; |
20544 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20545 | bool result; | |
20546 | PyObject * obj0 = 0 ; | |
20547 | char *kwnames[] = { | |
20548 | (char *) "self", NULL | |
20549 | }; | |
20550 | ||
20551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20554 | { |
20555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20556 | result = (bool)(arg1)->ProcessIdle(); | |
20557 | ||
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
4f89f6a3 RD |
20561 | { |
20562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20563 | } | |
d14a1e28 RD |
20564 | return resultobj; |
20565 | fail: | |
20566 | return NULL; | |
20567 | } | |
20568 | ||
20569 | ||
c32bde28 | 20570 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20571 | PyObject *resultobj; |
20572 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20573 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20574 | wxIdleEvent *arg3 = 0 ; | |
20575 | bool result; | |
20576 | PyObject * obj0 = 0 ; | |
20577 | PyObject * obj1 = 0 ; | |
20578 | PyObject * obj2 = 0 ; | |
20579 | char *kwnames[] = { | |
20580 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20581 | }; | |
20582 | ||
20583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20586 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20588 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20590 | SWIG_fail; | |
d14a1e28 | 20591 | if (arg3 == NULL) { |
15afbcd0 RD |
20592 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20593 | SWIG_fail; | |
d14a1e28 RD |
20594 | } |
20595 | { | |
20596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20597 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20598 | ||
20599 | wxPyEndAllowThreads(__tstate); | |
20600 | if (PyErr_Occurred()) SWIG_fail; | |
20601 | } | |
4f89f6a3 RD |
20602 | { |
20603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20604 | } | |
d14a1e28 RD |
20605 | return resultobj; |
20606 | fail: | |
20607 | return NULL; | |
20608 | } | |
20609 | ||
20610 | ||
c32bde28 | 20611 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20612 | PyObject *resultobj; |
20613 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20614 | bool result; | |
20615 | PyObject * obj0 = 0 ; | |
20616 | char *kwnames[] = { | |
20617 | (char *) "self", NULL | |
20618 | }; | |
20619 | ||
20620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20623 | { |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
4f89f6a3 RD |
20630 | { |
20631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20632 | } | |
d14a1e28 RD |
20633 | return resultobj; |
20634 | fail: | |
20635 | return NULL; | |
20636 | } | |
20637 | ||
20638 | ||
c32bde28 | 20639 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20640 | PyObject *resultobj; |
20641 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20642 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | PyObject * obj1 = 0 ; | |
20645 | char *kwnames[] = { | |
20646 | (char *) "self",(char *) "win", NULL | |
20647 | }; | |
20648 | ||
20649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20654 | { |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | (arg1)->SetTopWindow(arg2); | |
20657 | ||
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | Py_INCREF(Py_None); resultobj = Py_None; | |
20662 | return resultobj; | |
20663 | fail: | |
20664 | return NULL; | |
20665 | } | |
20666 | ||
20667 | ||
c32bde28 | 20668 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20669 | PyObject *resultobj; |
20670 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20671 | wxWindow *result; | |
20672 | PyObject * obj0 = 0 ; | |
20673 | char *kwnames[] = { | |
20674 | (char *) "self", NULL | |
20675 | }; | |
20676 | ||
20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20680 | { |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | { | |
412d302d | 20688 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20689 | } |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
c32bde28 | 20696 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20697 | PyObject *resultobj; |
20698 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20699 | bool arg2 ; | |
20700 | PyObject * obj0 = 0 ; | |
20701 | PyObject * obj1 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "self",(char *) "flag", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20709 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 20710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20711 | { |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | (arg1)->SetExitOnFrameDelete(arg2); | |
20714 | ||
20715 | wxPyEndAllowThreads(__tstate); | |
20716 | if (PyErr_Occurred()) SWIG_fail; | |
20717 | } | |
20718 | Py_INCREF(Py_None); resultobj = Py_None; | |
20719 | return resultobj; | |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
c32bde28 | 20725 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20726 | PyObject *resultobj; |
20727 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20728 | bool result; | |
20729 | PyObject * obj0 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20737 | { |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
4f89f6a3 RD |
20744 | { |
20745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20746 | } | |
d14a1e28 RD |
20747 | return resultobj; |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
c32bde28 | 20753 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20754 | PyObject *resultobj; |
20755 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20756 | bool arg2 ; | |
20757 | PyObject * obj0 = 0 ; | |
20758 | PyObject * obj1 = 0 ; | |
20759 | char *kwnames[] = { | |
20760 | (char *) "self",(char *) "flag", NULL | |
20761 | }; | |
20762 | ||
20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20766 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 20767 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20768 | { |
20769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20770 | (arg1)->SetUseBestVisual(arg2); | |
20771 | ||
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
20775 | Py_INCREF(Py_None); resultobj = Py_None; | |
20776 | return resultobj; | |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
c32bde28 | 20782 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20783 | PyObject *resultobj; |
20784 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20785 | bool result; | |
20786 | PyObject * obj0 = 0 ; | |
20787 | char *kwnames[] = { | |
20788 | (char *) "self", NULL | |
20789 | }; | |
20790 | ||
20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20794 | { |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20797 | ||
20798 | wxPyEndAllowThreads(__tstate); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
4f89f6a3 RD |
20801 | { |
20802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20803 | } | |
d14a1e28 RD |
20804 | return resultobj; |
20805 | fail: | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
c32bde28 | 20810 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20811 | PyObject *resultobj; |
20812 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20813 | int arg2 ; | |
20814 | PyObject * obj0 = 0 ; | |
994141e6 | 20815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20816 | char *kwnames[] = { |
20817 | (char *) "self",(char *) "mode", NULL | |
20818 | }; | |
20819 | ||
994141e6 | 20820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20823 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20824 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20825 | { |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | (arg1)->SetPrintMode(arg2); | |
20828 | ||
20829 | wxPyEndAllowThreads(__tstate); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
20832 | Py_INCREF(Py_None); resultobj = Py_None; | |
20833 | return resultobj; | |
20834 | fail: | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
c32bde28 | 20839 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20840 | PyObject *resultobj; |
20841 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20842 | int result; | |
20843 | PyObject * obj0 = 0 ; | |
20844 | char *kwnames[] = { | |
20845 | (char *) "self", NULL | |
20846 | }; | |
20847 | ||
20848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20851 | { |
20852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20853 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20854 | ||
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
c32bde28 | 20858 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20859 | return resultobj; |
20860 | fail: | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
c32bde28 | 20865 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20866 | PyObject *resultobj; |
20867 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20868 | int arg2 ; |
d14a1e28 | 20869 | PyObject * obj0 = 0 ; |
994141e6 | 20870 | PyObject * obj1 = 0 ; |
d14a1e28 | 20871 | char *kwnames[] = { |
6c3b4aae | 20872 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20873 | }; |
20874 | ||
994141e6 | 20875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20878 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20879 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20880 | { |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20882 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20883 | |
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
6c3b4aae | 20887 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20888 | return resultobj; |
20889 | fail: | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
c32bde28 | 20894 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20895 | PyObject *resultobj; |
20896 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20897 | int result; |
d14a1e28 RD |
20898 | PyObject * obj0 = 0 ; |
20899 | char *kwnames[] = { | |
6c3b4aae | 20900 | (char *) "self", NULL |
d14a1e28 RD |
20901 | }; |
20902 | ||
6c3b4aae | 20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20906 | { |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20908 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20909 | |
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
c32bde28 | 20913 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20914 | return resultobj; |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
c32bde28 | 20920 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20921 | PyObject *resultobj; |
20922 | bool result; | |
20923 | char *kwnames[] = { | |
20924 | NULL | |
20925 | }; | |
20926 | ||
20927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20928 | { | |
20929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20930 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20931 | ||
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
4f89f6a3 RD |
20935 | { |
20936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20937 | } | |
d14a1e28 RD |
20938 | return resultobj; |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
c32bde28 | 20944 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20945 | PyObject *resultobj; |
20946 | long result; | |
20947 | char *kwnames[] = { | |
20948 | NULL | |
20949 | }; | |
20950 | ||
20951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
c32bde28 | 20959 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20960 | return resultobj; |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
c32bde28 | 20966 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20967 | PyObject *resultobj; |
20968 | long result; | |
20969 | char *kwnames[] = { | |
20970 | NULL | |
20971 | }; | |
20972 | ||
20973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20974 | { | |
20975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20976 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20977 | ||
20978 | wxPyEndAllowThreads(__tstate); | |
20979 | if (PyErr_Occurred()) SWIG_fail; | |
20980 | } | |
c32bde28 | 20981 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20982 | return resultobj; |
20983 | fail: | |
20984 | return NULL; | |
20985 | } | |
20986 | ||
20987 | ||
c32bde28 | 20988 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20989 | PyObject *resultobj; |
20990 | long result; | |
20991 | char *kwnames[] = { | |
20992 | NULL | |
20993 | }; | |
20994 | ||
20995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20996 | { | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20999 | ||
21000 | wxPyEndAllowThreads(__tstate); | |
21001 | if (PyErr_Occurred()) SWIG_fail; | |
21002 | } | |
c32bde28 | 21003 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21004 | return resultobj; |
21005 | fail: | |
21006 | return NULL; | |
21007 | } | |
21008 | ||
21009 | ||
c32bde28 | 21010 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21011 | PyObject *resultobj; |
21012 | wxString result; | |
21013 | char *kwnames[] = { | |
21014 | NULL | |
21015 | }; | |
21016 | ||
21017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
21018 | { | |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21020 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
21021 | ||
21022 | wxPyEndAllowThreads(__tstate); | |
21023 | if (PyErr_Occurred()) SWIG_fail; | |
21024 | } | |
21025 | { | |
21026 | #if wxUSE_UNICODE | |
21027 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21028 | #else | |
21029 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21030 | #endif | |
21031 | } | |
21032 | return resultobj; | |
21033 | fail: | |
21034 | return NULL; | |
21035 | } | |
21036 | ||
21037 | ||
c32bde28 | 21038 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21039 | PyObject *resultobj; |
21040 | bool arg1 ; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | char *kwnames[] = { | |
21043 | (char *) "val", NULL | |
21044 | }; | |
21045 | ||
21046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c32bde28 | 21047 | arg1 = (bool)SWIG_As_bool(obj0); |
15afbcd0 | 21048 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21049 | { |
21050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21051 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
21052 | ||
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
21056 | Py_INCREF(Py_None); resultobj = Py_None; | |
21057 | return resultobj; | |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
c32bde28 | 21063 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21064 | PyObject *resultobj; |
21065 | long arg1 ; | |
994141e6 | 21066 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21067 | char *kwnames[] = { |
21068 | (char *) "val", NULL | |
21069 | }; | |
21070 | ||
994141e6 | 21071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
c32bde28 | 21072 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 21073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21074 | { |
21075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21076 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
21077 | ||
21078 | wxPyEndAllowThreads(__tstate); | |
21079 | if (PyErr_Occurred()) SWIG_fail; | |
21080 | } | |
21081 | Py_INCREF(Py_None); resultobj = Py_None; | |
21082 | return resultobj; | |
21083 | fail: | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
c32bde28 | 21088 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21089 | PyObject *resultobj; |
21090 | long arg1 ; | |
994141e6 | 21091 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21092 | char *kwnames[] = { |
21093 | (char *) "val", NULL | |
21094 | }; | |
21095 | ||
994141e6 | 21096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
c32bde28 | 21097 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 21098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21099 | { |
21100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21101 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
21102 | ||
21103 | wxPyEndAllowThreads(__tstate); | |
21104 | if (PyErr_Occurred()) SWIG_fail; | |
21105 | } | |
21106 | Py_INCREF(Py_None); resultobj = Py_None; | |
21107 | return resultobj; | |
21108 | fail: | |
21109 | return NULL; | |
21110 | } | |
21111 | ||
21112 | ||
c32bde28 | 21113 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21114 | PyObject *resultobj; |
21115 | long arg1 ; | |
994141e6 | 21116 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21117 | char *kwnames[] = { |
21118 | (char *) "val", NULL | |
21119 | }; | |
21120 | ||
994141e6 | 21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
c32bde28 | 21122 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 21123 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21124 | { |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | wxPyApp::SetMacExitMenuItemId(arg1); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | Py_INCREF(Py_None); resultobj = Py_None; | |
21132 | return resultobj; | |
21133 | fail: | |
21134 | return NULL; | |
21135 | } | |
21136 | ||
21137 | ||
c32bde28 | 21138 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21139 | PyObject *resultobj; |
21140 | wxString *arg1 = 0 ; | |
ae8162c8 | 21141 | bool temp1 = false ; |
d14a1e28 RD |
21142 | PyObject * obj0 = 0 ; |
21143 | char *kwnames[] = { | |
21144 | (char *) "val", NULL | |
21145 | }; | |
21146 | ||
21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
21148 | { | |
21149 | arg1 = wxString_in_helper(obj0); | |
21150 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21151 | temp1 = true; |
d14a1e28 RD |
21152 | } |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | Py_INCREF(Py_None); resultobj = Py_None; | |
21161 | { | |
21162 | if (temp1) | |
21163 | delete arg1; | |
21164 | } | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | { | |
21168 | if (temp1) | |
21169 | delete arg1; | |
21170 | } | |
21171 | return NULL; | |
21172 | } | |
21173 | ||
21174 | ||
c32bde28 | 21175 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21176 | PyObject *resultobj; |
21177 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21178 | PyObject * obj0 = 0 ; | |
21179 | char *kwnames[] = { | |
21180 | (char *) "self", NULL | |
21181 | }; | |
21182 | ||
21183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
21185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21186 | { |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | (arg1)->_BootstrapApp(); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | Py_INCREF(Py_None); resultobj = Py_None; | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | return NULL; | |
21197 | } | |
21198 | ||
21199 | ||
c32bde28 | 21200 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21201 | PyObject *resultobj; |
21202 | int result; | |
21203 | char *kwnames[] = { | |
21204 | NULL | |
21205 | }; | |
21206 | ||
21207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21208 | { | |
21209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21210 | result = (int)PyApp_GetComCtl32Version(); | |
21211 | ||
21212 | wxPyEndAllowThreads(__tstate); | |
21213 | if (PyErr_Occurred()) SWIG_fail; | |
21214 | } | |
c32bde28 | 21215 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21216 | return resultobj; |
21217 | fail: | |
21218 | return NULL; | |
21219 | } | |
21220 | ||
21221 | ||
c32bde28 | 21222 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21223 | PyObject *obj; |
21224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21225 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21226 | Py_INCREF(obj); | |
21227 | return Py_BuildValue((char *)""); | |
21228 | } | |
c32bde28 | 21229 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21230 | PyObject *resultobj; |
21231 | char *kwnames[] = { | |
21232 | NULL | |
21233 | }; | |
21234 | ||
21235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21236 | { | |
21237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21238 | wxExit(); | |
21239 | ||
21240 | wxPyEndAllowThreads(__tstate); | |
21241 | if (PyErr_Occurred()) SWIG_fail; | |
21242 | } | |
21243 | Py_INCREF(Py_None); resultobj = Py_None; | |
21244 | return resultobj; | |
21245 | fail: | |
21246 | return NULL; | |
21247 | } | |
21248 | ||
21249 | ||
c32bde28 | 21250 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21251 | PyObject *resultobj; |
21252 | bool result; | |
21253 | char *kwnames[] = { | |
21254 | NULL | |
21255 | }; | |
21256 | ||
21257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21258 | { | |
21259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21260 | result = (bool)wxYield(); | |
21261 | ||
21262 | wxPyEndAllowThreads(__tstate); | |
21263 | if (PyErr_Occurred()) SWIG_fail; | |
21264 | } | |
4f89f6a3 RD |
21265 | { |
21266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21267 | } | |
d14a1e28 RD |
21268 | return resultobj; |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
c32bde28 | 21274 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21275 | PyObject *resultobj; |
21276 | bool result; | |
21277 | char *kwnames[] = { | |
21278 | NULL | |
21279 | }; | |
21280 | ||
21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21282 | { | |
21283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21284 | result = (bool)wxYieldIfNeeded(); | |
21285 | ||
21286 | wxPyEndAllowThreads(__tstate); | |
21287 | if (PyErr_Occurred()) SWIG_fail; | |
21288 | } | |
4f89f6a3 RD |
21289 | { |
21290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21291 | } | |
d14a1e28 RD |
21292 | return resultobj; |
21293 | fail: | |
21294 | return NULL; | |
21295 | } | |
21296 | ||
21297 | ||
c32bde28 | 21298 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21299 | PyObject *resultobj; |
21300 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 21301 | bool arg2 = (bool) false ; |
d14a1e28 RD |
21302 | bool result; |
21303 | PyObject * obj0 = 0 ; | |
21304 | PyObject * obj1 = 0 ; | |
21305 | char *kwnames[] = { | |
21306 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21307 | }; | |
21308 | ||
21309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21310 | if (obj0) { | |
15afbcd0 RD |
21311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21313 | } |
21314 | if (obj1) { | |
c32bde28 | 21315 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 21316 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21317 | } |
21318 | { | |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | result = (bool)wxSafeYield(arg1,arg2); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
4f89f6a3 RD |
21325 | { |
21326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21327 | } | |
d14a1e28 RD |
21328 | return resultobj; |
21329 | fail: | |
21330 | return NULL; | |
21331 | } | |
21332 | ||
21333 | ||
c32bde28 | 21334 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21335 | PyObject *resultobj; |
21336 | char *kwnames[] = { | |
21337 | NULL | |
21338 | }; | |
21339 | ||
21340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21341 | { | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | wxWakeUpIdle(); | |
21344 | ||
21345 | wxPyEndAllowThreads(__tstate); | |
21346 | if (PyErr_Occurred()) SWIG_fail; | |
21347 | } | |
21348 | Py_INCREF(Py_None); resultobj = Py_None; | |
21349 | return resultobj; | |
21350 | fail: | |
21351 | return NULL; | |
21352 | } | |
21353 | ||
21354 | ||
c32bde28 | 21355 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21356 | PyObject *resultobj; |
21357 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21358 | wxEvent *arg2 = 0 ; | |
21359 | PyObject * obj0 = 0 ; | |
21360 | PyObject * obj1 = 0 ; | |
21361 | char *kwnames[] = { | |
21362 | (char *) "dest",(char *) "event", NULL | |
21363 | }; | |
21364 | ||
21365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
21367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21369 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21370 | SWIG_fail; | |
d14a1e28 | 21371 | if (arg2 == NULL) { |
15afbcd0 RD |
21372 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21373 | SWIG_fail; | |
d14a1e28 RD |
21374 | } |
21375 | { | |
21376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21377 | wxPostEvent(arg1,*arg2); | |
21378 | ||
21379 | wxPyEndAllowThreads(__tstate); | |
21380 | if (PyErr_Occurred()) SWIG_fail; | |
21381 | } | |
21382 | Py_INCREF(Py_None); resultobj = Py_None; | |
21383 | return resultobj; | |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
c32bde28 | 21389 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21390 | PyObject *resultobj; |
21391 | char *kwnames[] = { | |
21392 | NULL | |
21393 | }; | |
21394 | ||
21395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21396 | { | |
21397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21398 | wxApp_CleanUp(); | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
21403 | Py_INCREF(Py_None); resultobj = Py_None; | |
21404 | return resultobj; | |
21405 | fail: | |
21406 | return NULL; | |
21407 | } | |
21408 | ||
21409 | ||
c32bde28 | 21410 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21411 | PyObject *resultobj; |
21412 | wxPyApp *result; | |
21413 | char *kwnames[] = { | |
21414 | NULL | |
21415 | }; | |
21416 | ||
21417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21418 | { | |
21419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 21420 | result = (wxPyApp *)wxPyGetApp(); |
d14a1e28 RD |
21421 | |
21422 | wxPyEndAllowThreads(__tstate); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | } | |
21425 | { | |
412d302d | 21426 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21427 | } |
21428 | return resultobj; | |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
2ef75293 RD |
21434 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21435 | PyObject *resultobj; | |
21436 | wxEventLoop *result; | |
21437 | char *kwnames[] = { | |
21438 | NULL | |
21439 | }; | |
21440 | ||
21441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21442 | { | |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | result = (wxEventLoop *)new wxEventLoop(); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21450 | return resultobj; | |
21451 | fail: | |
21452 | return NULL; | |
21453 | } | |
21454 | ||
21455 | ||
21456 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21457 | PyObject *resultobj; | |
21458 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21459 | PyObject * obj0 = 0 ; | |
21460 | char *kwnames[] = { | |
21461 | (char *) "self", NULL | |
21462 | }; | |
21463 | ||
21464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21467 | { | |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | delete arg1; | |
21470 | ||
21471 | wxPyEndAllowThreads(__tstate); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | } | |
21474 | Py_INCREF(Py_None); resultobj = Py_None; | |
21475 | return resultobj; | |
21476 | fail: | |
21477 | return NULL; | |
21478 | } | |
21479 | ||
21480 | ||
21481 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21482 | PyObject *resultobj; | |
21483 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21484 | int result; | |
21485 | PyObject * obj0 = 0 ; | |
21486 | char *kwnames[] = { | |
21487 | (char *) "self", NULL | |
21488 | }; | |
21489 | ||
21490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21493 | { | |
21494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21495 | result = (int)(arg1)->Run(); | |
21496 | ||
21497 | wxPyEndAllowThreads(__tstate); | |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
21499 | } | |
21500 | resultobj = SWIG_From_int((int)result); | |
21501 | return resultobj; | |
21502 | fail: | |
21503 | return NULL; | |
21504 | } | |
21505 | ||
21506 | ||
21507 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21508 | PyObject *resultobj; | |
21509 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21510 | int arg2 = (int) 0 ; | |
21511 | PyObject * obj0 = 0 ; | |
21512 | PyObject * obj1 = 0 ; | |
21513 | char *kwnames[] = { | |
21514 | (char *) "self",(char *) "rc", NULL | |
21515 | }; | |
21516 | ||
21517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21520 | if (obj1) { | |
21521 | arg2 = (int)SWIG_As_int(obj1); | |
21522 | if (PyErr_Occurred()) SWIG_fail; | |
21523 | } | |
21524 | { | |
21525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21526 | (arg1)->Exit(arg2); | |
21527 | ||
21528 | wxPyEndAllowThreads(__tstate); | |
21529 | if (PyErr_Occurred()) SWIG_fail; | |
21530 | } | |
21531 | Py_INCREF(Py_None); resultobj = Py_None; | |
21532 | return resultobj; | |
21533 | fail: | |
21534 | return NULL; | |
21535 | } | |
21536 | ||
21537 | ||
21538 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21539 | PyObject *resultobj; | |
21540 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21541 | bool result; | |
21542 | PyObject * obj0 = 0 ; | |
21543 | char *kwnames[] = { | |
21544 | (char *) "self", NULL | |
21545 | }; | |
21546 | ||
21547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21550 | { | |
21551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21552 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21553 | ||
21554 | wxPyEndAllowThreads(__tstate); | |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
21556 | } | |
21557 | { | |
21558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21559 | } | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj; | |
21568 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21569 | bool result; | |
21570 | PyObject * obj0 = 0 ; | |
21571 | char *kwnames[] = { | |
21572 | (char *) "self", NULL | |
21573 | }; | |
21574 | ||
21575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21578 | { | |
21579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21580 | result = (bool)(arg1)->Dispatch(); | |
21581 | ||
21582 | wxPyEndAllowThreads(__tstate); | |
21583 | if (PyErr_Occurred()) SWIG_fail; | |
21584 | } | |
21585 | { | |
21586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21587 | } | |
21588 | return resultobj; | |
21589 | fail: | |
21590 | return NULL; | |
21591 | } | |
21592 | ||
21593 | ||
21594 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21595 | PyObject *resultobj; | |
21596 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21597 | bool result; | |
21598 | PyObject * obj0 = 0 ; | |
21599 | char *kwnames[] = { | |
21600 | (char *) "self", NULL | |
21601 | }; | |
21602 | ||
21603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21606 | { | |
21607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21608 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21609 | ||
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
21613 | { | |
21614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21615 | } | |
21616 | return resultobj; | |
21617 | fail: | |
21618 | return NULL; | |
21619 | } | |
21620 | ||
21621 | ||
21622 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21623 | PyObject *resultobj; | |
21624 | wxEventLoop *result; | |
21625 | char *kwnames[] = { | |
21626 | NULL | |
21627 | }; | |
21628 | ||
21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21630 | { | |
21631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21632 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21633 | ||
21634 | wxPyEndAllowThreads(__tstate); | |
21635 | if (PyErr_Occurred()) SWIG_fail; | |
21636 | } | |
21637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21638 | return resultobj; | |
21639 | fail: | |
21640 | return NULL; | |
21641 | } | |
21642 | ||
21643 | ||
21644 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21645 | PyObject *resultobj; | |
21646 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21647 | PyObject * obj0 = 0 ; | |
21648 | char *kwnames[] = { | |
21649 | (char *) "loop", NULL | |
21650 | }; | |
21651 | ||
21652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21655 | { | |
21656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21657 | wxEventLoop::SetActive(arg1); | |
21658 | ||
21659 | wxPyEndAllowThreads(__tstate); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
21662 | Py_INCREF(Py_None); resultobj = Py_None; | |
21663 | return resultobj; | |
21664 | fail: | |
21665 | return NULL; | |
21666 | } | |
21667 | ||
21668 | ||
21669 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21670 | PyObject *obj; | |
21671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21672 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21673 | Py_INCREF(obj); | |
21674 | return Py_BuildValue((char *)""); | |
21675 | } | |
c32bde28 | 21676 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21677 | PyObject *resultobj; |
21678 | int arg1 = (int) 0 ; | |
21679 | int arg2 = (int) 0 ; | |
21680 | int arg3 = (int) 0 ; | |
1e0c8722 | 21681 | wxAcceleratorEntry *result; |
994141e6 RD |
21682 | PyObject * obj0 = 0 ; |
21683 | PyObject * obj1 = 0 ; | |
21684 | PyObject * obj2 = 0 ; | |
1e0c8722 | 21685 | char *kwnames[] = { |
66c033b4 | 21686 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
1e0c8722 RD |
21687 | }; |
21688 | ||
66c033b4 | 21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 21690 | if (obj0) { |
c32bde28 | 21691 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 21692 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
21693 | } |
21694 | if (obj1) { | |
c32bde28 | 21695 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21696 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
21697 | } |
21698 | if (obj2) { | |
c32bde28 | 21699 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21700 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21701 | } |
1e0c8722 RD |
21702 | { |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 21704 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
1e0c8722 RD |
21705 | |
21706 | wxPyEndAllowThreads(__tstate); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | } | |
15afbcd0 | 21709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
21710 | return resultobj; |
21711 | fail: | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
c32bde28 | 21716 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21717 | PyObject *resultobj; |
21718 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21719 | PyObject * obj0 = 0 ; | |
21720 | char *kwnames[] = { | |
21721 | (char *) "self", NULL | |
21722 | }; | |
21723 | ||
21724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21727 | { |
21728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21729 | delete arg1; | |
21730 | ||
21731 | wxPyEndAllowThreads(__tstate); | |
21732 | if (PyErr_Occurred()) SWIG_fail; | |
21733 | } | |
21734 | Py_INCREF(Py_None); resultobj = Py_None; | |
21735 | return resultobj; | |
21736 | fail: | |
21737 | return NULL; | |
21738 | } | |
21739 | ||
21740 | ||
c32bde28 | 21741 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21742 | PyObject *resultobj; |
21743 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21744 | int arg2 ; | |
21745 | int arg3 ; | |
21746 | int arg4 ; | |
1e0c8722 | 21747 | PyObject * obj0 = 0 ; |
994141e6 RD |
21748 | PyObject * obj1 = 0 ; |
21749 | PyObject * obj2 = 0 ; | |
21750 | PyObject * obj3 = 0 ; | |
1e0c8722 | 21751 | char *kwnames[] = { |
66c033b4 | 21752 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
1e0c8722 RD |
21753 | }; |
21754 | ||
66c033b4 | 21755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21758 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21759 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21760 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21761 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21762 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 21763 | if (PyErr_Occurred()) SWIG_fail; |
1e0c8722 RD |
21764 | { |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 21766 | (arg1)->Set(arg2,arg3,arg4); |
1e0c8722 RD |
21767 | |
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | Py_INCREF(Py_None); resultobj = Py_None; | |
21772 | return resultobj; | |
21773 | fail: | |
21774 | return NULL; | |
21775 | } | |
21776 | ||
21777 | ||
c32bde28 | 21778 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21779 | PyObject *resultobj; |
21780 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21781 | int result; | |
21782 | PyObject * obj0 = 0 ; | |
21783 | char *kwnames[] = { | |
21784 | (char *) "self", NULL | |
21785 | }; | |
21786 | ||
21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21790 | { |
21791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21792 | result = (int)(arg1)->GetFlags(); | |
21793 | ||
21794 | wxPyEndAllowThreads(__tstate); | |
21795 | if (PyErr_Occurred()) SWIG_fail; | |
21796 | } | |
c32bde28 | 21797 | resultobj = SWIG_From_int((int)result); |
1e0c8722 RD |
21798 | return resultobj; |
21799 | fail: | |
21800 | return NULL; | |
21801 | } | |
21802 | ||
21803 | ||
c32bde28 | 21804 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21805 | PyObject *resultobj; |
21806 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21807 | int result; | |
21808 | PyObject * obj0 = 0 ; | |
21809 | char *kwnames[] = { | |
21810 | (char *) "self", NULL | |
21811 | }; | |
21812 | ||
21813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21816 | { |
21817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21818 | result = (int)(arg1)->GetKeyCode(); | |
21819 | ||
21820 | wxPyEndAllowThreads(__tstate); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | } | |
c32bde28 | 21823 | resultobj = SWIG_From_int((int)result); |
1e0c8722 RD |
21824 | return resultobj; |
21825 | fail: | |
21826 | return NULL; | |
21827 | } | |
21828 | ||
21829 | ||
c32bde28 | 21830 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21831 | PyObject *resultobj; |
21832 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21833 | int result; | |
21834 | PyObject * obj0 = 0 ; | |
21835 | char *kwnames[] = { | |
21836 | (char *) "self", NULL | |
21837 | }; | |
21838 | ||
21839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21842 | { |
21843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21844 | result = (int)(arg1)->GetCommand(); | |
21845 | ||
21846 | wxPyEndAllowThreads(__tstate); | |
21847 | if (PyErr_Occurred()) SWIG_fail; | |
21848 | } | |
c32bde28 | 21849 | resultobj = SWIG_From_int((int)result); |
1e0c8722 RD |
21850 | return resultobj; |
21851 | fail: | |
21852 | return NULL; | |
21853 | } | |
21854 | ||
21855 | ||
c32bde28 | 21856 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
1e0c8722 RD |
21857 | PyObject *obj; |
21858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21859 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21860 | Py_INCREF(obj); | |
21861 | return Py_BuildValue((char *)""); | |
21862 | } | |
c32bde28 | 21863 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21864 | PyObject *resultobj; |
21865 | int arg1 ; | |
21866 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21867 | wxAcceleratorTable *result; | |
21868 | PyObject * obj0 = 0 ; | |
21869 | char *kwnames[] = { | |
21870 | (char *) "n", NULL | |
21871 | }; | |
21872 | ||
21873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21874 | { | |
21875 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21876 | if (arg2) arg1 = PyList_Size(obj0); | |
21877 | else arg1 = 0; | |
21878 | } | |
21879 | { | |
21880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21881 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21882 | ||
21883 | wxPyEndAllowThreads(__tstate); | |
21884 | if (PyErr_Occurred()) SWIG_fail; | |
21885 | } | |
15afbcd0 | 21886 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
21887 | { |
21888 | delete [] arg2; | |
21889 | } | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | { | |
21893 | delete [] arg2; | |
21894 | } | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
c32bde28 | 21899 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21900 | PyObject *resultobj; |
21901 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21902 | PyObject * obj0 = 0 ; | |
21903 | char *kwnames[] = { | |
21904 | (char *) "self", NULL | |
21905 | }; | |
21906 | ||
21907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21910 | { |
21911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21912 | delete arg1; | |
21913 | ||
21914 | wxPyEndAllowThreads(__tstate); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
21916 | } | |
21917 | Py_INCREF(Py_None); resultobj = Py_None; | |
21918 | return resultobj; | |
21919 | fail: | |
21920 | return NULL; | |
21921 | } | |
21922 | ||
21923 | ||
c32bde28 | 21924 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21925 | PyObject *resultobj; |
21926 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21927 | bool result; | |
21928 | PyObject * obj0 = 0 ; | |
21929 | char *kwnames[] = { | |
21930 | (char *) "self", NULL | |
21931 | }; | |
21932 | ||
21933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21936 | { |
21937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21938 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21939 | ||
21940 | wxPyEndAllowThreads(__tstate); | |
21941 | if (PyErr_Occurred()) SWIG_fail; | |
21942 | } | |
4f89f6a3 RD |
21943 | { |
21944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21945 | } | |
1e0c8722 RD |
21946 | return resultobj; |
21947 | fail: | |
21948 | return NULL; | |
21949 | } | |
21950 | ||
21951 | ||
c32bde28 | 21952 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
1e0c8722 RD |
21953 | PyObject *obj; |
21954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21955 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21956 | Py_INCREF(obj); | |
21957 | return Py_BuildValue((char *)""); | |
21958 | } | |
c32bde28 | 21959 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
1e0c8722 RD |
21960 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21961 | return 1; | |
21962 | } | |
21963 | ||
21964 | ||
21965 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21966 | PyObject *pyobj; | |
21967 | ||
15afbcd0 | 21968 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
21969 | return pyobj; |
21970 | } | |
21971 | ||
21972 | ||
c32bde28 | 21973 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
21974 | PyObject *resultobj; |
21975 | wxString *arg1 = 0 ; | |
21976 | wxAcceleratorEntry *result; | |
ae8162c8 | 21977 | bool temp1 = false ; |
1e0c8722 RD |
21978 | PyObject * obj0 = 0 ; |
21979 | char *kwnames[] = { | |
21980 | (char *) "label", NULL | |
21981 | }; | |
21982 | ||
21983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21984 | { | |
21985 | arg1 = wxString_in_helper(obj0); | |
21986 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21987 | temp1 = true; |
1e0c8722 RD |
21988 | } |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21992 | ||
21993 | wxPyEndAllowThreads(__tstate); | |
21994 | if (PyErr_Occurred()) SWIG_fail; | |
21995 | } | |
15afbcd0 | 21996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
21997 | { |
21998 | if (temp1) | |
21999 | delete arg1; | |
22000 | } | |
22001 | return resultobj; | |
22002 | fail: | |
22003 | { | |
22004 | if (temp1) | |
22005 | delete arg1; | |
22006 | } | |
22007 | return NULL; | |
22008 | } | |
22009 | ||
22010 | ||
c32bde28 | 22011 | static int _wrap_PanelNameStr_set(PyObject *) { |
e811c8ce RD |
22012 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
22013 | return 1; | |
22014 | } | |
22015 | ||
22016 | ||
22017 | static PyObject *_wrap_PanelNameStr_get() { | |
22018 | PyObject *pyobj; | |
22019 | ||
22020 | { | |
22021 | #if wxUSE_UNICODE | |
22022 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22023 | #else | |
22024 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22025 | #endif | |
22026 | } | |
22027 | return pyobj; | |
22028 | } | |
22029 | ||
22030 | ||
c32bde28 | 22031 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22032 | PyObject *resultobj; |
22033 | wxVisualAttributes *result; | |
22034 | char *kwnames[] = { | |
22035 | NULL | |
22036 | }; | |
22037 | ||
22038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
22042 | ||
22043 | wxPyEndAllowThreads(__tstate); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
22047 | return resultobj; | |
22048 | fail: | |
22049 | return NULL; | |
22050 | } | |
22051 | ||
22052 | ||
c32bde28 | 22053 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22054 | PyObject *resultobj; |
22055 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22056 | PyObject * obj0 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
22062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | { | |
22065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22066 | delete_wxVisualAttributes(arg1); | |
22067 | ||
22068 | wxPyEndAllowThreads(__tstate); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | Py_INCREF(Py_None); resultobj = Py_None; | |
22072 | return resultobj; | |
22073 | fail: | |
22074 | return NULL; | |
22075 | } | |
22076 | ||
22077 | ||
c32bde28 | 22078 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22079 | PyObject *resultobj; |
22080 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22081 | wxFont *arg2 = (wxFont *) 0 ; | |
22082 | PyObject * obj0 = 0 ; | |
22083 | PyObject * obj1 = 0 ; | |
22084 | char *kwnames[] = { | |
22085 | (char *) "self",(char *) "font", NULL | |
22086 | }; | |
22087 | ||
22088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
22089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
22092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22093 | if (arg1) (arg1)->font = *arg2; | |
22094 | ||
22095 | Py_INCREF(Py_None); resultobj = Py_None; | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | return NULL; | |
22099 | } | |
22100 | ||
22101 | ||
c32bde28 | 22102 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22103 | PyObject *resultobj; |
22104 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22105 | wxFont *result; | |
22106 | PyObject * obj0 = 0 ; | |
22107 | char *kwnames[] = { | |
22108 | (char *) "self", NULL | |
22109 | }; | |
22110 | ||
22111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
22112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22114 | result = (wxFont *)& ((arg1)->font); | |
22115 | ||
22116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
22117 | return resultobj; | |
22118 | fail: | |
22119 | return NULL; | |
22120 | } | |
22121 | ||
22122 | ||
c32bde28 | 22123 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22124 | PyObject *resultobj; |
22125 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22126 | wxColour *arg2 = (wxColour *) 0 ; | |
22127 | PyObject * obj0 = 0 ; | |
22128 | PyObject * obj1 = 0 ; | |
22129 | char *kwnames[] = { | |
22130 | (char *) "self",(char *) "colFg", NULL | |
22131 | }; | |
22132 | ||
22133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
22134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22138 | if (arg1) (arg1)->colFg = *arg2; | |
22139 | ||
22140 | Py_INCREF(Py_None); resultobj = Py_None; | |
22141 | return resultobj; | |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
c32bde28 | 22147 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22148 | PyObject *resultobj; |
22149 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22150 | wxColour *result; | |
22151 | PyObject * obj0 = 0 ; | |
22152 | char *kwnames[] = { | |
22153 | (char *) "self", NULL | |
22154 | }; | |
22155 | ||
22156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
22157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22159 | result = (wxColour *)& ((arg1)->colFg); | |
22160 | ||
22161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22162 | return resultobj; | |
22163 | fail: | |
22164 | return NULL; | |
22165 | } | |
22166 | ||
22167 | ||
c32bde28 | 22168 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22169 | PyObject *resultobj; |
22170 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22171 | wxColour *arg2 = (wxColour *) 0 ; | |
22172 | PyObject * obj0 = 0 ; | |
22173 | PyObject * obj1 = 0 ; | |
22174 | char *kwnames[] = { | |
22175 | (char *) "self",(char *) "colBg", NULL | |
22176 | }; | |
22177 | ||
22178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22183 | if (arg1) (arg1)->colBg = *arg2; | |
22184 | ||
22185 | Py_INCREF(Py_None); resultobj = Py_None; | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
c32bde28 | 22192 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
22193 | PyObject *resultobj; |
22194 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22195 | wxColour *result; | |
22196 | PyObject * obj0 = 0 ; | |
22197 | char *kwnames[] = { | |
22198 | (char *) "self", NULL | |
22199 | }; | |
22200 | ||
22201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22204 | result = (wxColour *)& ((arg1)->colBg); | |
22205 | ||
22206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22207 | return resultobj; | |
22208 | fail: | |
22209 | return NULL; | |
22210 | } | |
22211 | ||
22212 | ||
c32bde28 | 22213 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
74a57fcd RD |
22214 | PyObject *obj; |
22215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22216 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22217 | Py_INCREF(obj); | |
22218 | return Py_BuildValue((char *)""); | |
22219 | } | |
c32bde28 | 22220 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22221 | PyObject *resultobj; |
22222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 22223 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
22224 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22225 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22226 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22227 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22228 | long arg5 = (long) 0 ; | |
22229 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22230 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22231 | wxWindow *result; | |
22232 | wxPoint temp3 ; | |
22233 | wxSize temp4 ; | |
ae8162c8 | 22234 | bool temp6 = false ; |
d14a1e28 | 22235 | PyObject * obj0 = 0 ; |
994141e6 | 22236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22237 | PyObject * obj2 = 0 ; |
22238 | PyObject * obj3 = 0 ; | |
994141e6 | 22239 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22240 | PyObject * obj5 = 0 ; |
22241 | char *kwnames[] = { | |
22242 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22243 | }; | |
22244 | ||
74a57fcd | 22245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd | 22248 | if (obj1) { |
c32bde28 | 22249 | arg2 = (int)SWIG_As_int(obj1); |
74a57fcd RD |
22250 | if (PyErr_Occurred()) SWIG_fail; |
22251 | } | |
d14a1e28 RD |
22252 | if (obj2) { |
22253 | { | |
22254 | arg3 = &temp3; | |
22255 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22256 | } | |
22257 | } | |
22258 | if (obj3) { | |
22259 | { | |
22260 | arg4 = &temp4; | |
22261 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22262 | } | |
22263 | } | |
994141e6 | 22264 | if (obj4) { |
c32bde28 | 22265 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 22266 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22267 | } |
d14a1e28 RD |
22268 | if (obj5) { |
22269 | { | |
22270 | arg6 = wxString_in_helper(obj5); | |
22271 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22272 | temp6 = true; |
d14a1e28 RD |
22273 | } |
22274 | } | |
22275 | { | |
e3b71cb8 | 22276 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
22277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22278 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22279 | ||
22280 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22281 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22282 | } |
b0f7404b | 22283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
22284 | { |
22285 | if (temp6) | |
22286 | delete arg6; | |
22287 | } | |
22288 | return resultobj; | |
22289 | fail: | |
22290 | { | |
22291 | if (temp6) | |
22292 | delete arg6; | |
22293 | } | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
c32bde28 | 22298 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22299 | PyObject *resultobj; |
22300 | wxWindow *result; | |
22301 | char *kwnames[] = { | |
22302 | NULL | |
22303 | }; | |
22304 | ||
22305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22306 | { | |
e3b71cb8 | 22307 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
22308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22309 | result = (wxWindow *)new wxWindow(); | |
22310 | ||
22311 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22312 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22313 | } |
b0f7404b | 22314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
22315 | return resultobj; |
22316 | fail: | |
22317 | return NULL; | |
22318 | } | |
22319 | ||
22320 | ||
c32bde28 | 22321 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22322 | PyObject *resultobj; |
22323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 22325 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
22326 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22327 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22328 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22329 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22330 | long arg6 = (long) 0 ; | |
22331 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22332 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22333 | bool result; | |
22334 | wxPoint temp4 ; | |
22335 | wxSize temp5 ; | |
ae8162c8 | 22336 | bool temp7 = false ; |
d14a1e28 RD |
22337 | PyObject * obj0 = 0 ; |
22338 | PyObject * obj1 = 0 ; | |
994141e6 | 22339 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22340 | PyObject * obj3 = 0 ; |
22341 | PyObject * obj4 = 0 ; | |
994141e6 | 22342 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22343 | PyObject * obj6 = 0 ; |
22344 | char *kwnames[] = { | |
22345 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22346 | }; | |
22347 | ||
74a57fcd | 22348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
22349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd | 22353 | if (obj2) { |
c32bde28 | 22354 | arg3 = (int)SWIG_As_int(obj2); |
74a57fcd RD |
22355 | if (PyErr_Occurred()) SWIG_fail; |
22356 | } | |
d14a1e28 RD |
22357 | if (obj3) { |
22358 | { | |
22359 | arg4 = &temp4; | |
22360 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22361 | } | |
22362 | } | |
22363 | if (obj4) { | |
22364 | { | |
22365 | arg5 = &temp5; | |
22366 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22367 | } | |
22368 | } | |
994141e6 | 22369 | if (obj5) { |
c32bde28 | 22370 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 22371 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22372 | } |
d14a1e28 RD |
22373 | if (obj6) { |
22374 | { | |
22375 | arg7 = wxString_in_helper(obj6); | |
22376 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22377 | temp7 = true; |
d14a1e28 RD |
22378 | } |
22379 | } | |
22380 | { | |
22381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22382 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22383 | ||
22384 | wxPyEndAllowThreads(__tstate); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | } | |
4f89f6a3 RD |
22387 | { |
22388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22389 | } | |
d14a1e28 RD |
22390 | { |
22391 | if (temp7) | |
22392 | delete arg7; | |
22393 | } | |
22394 | return resultobj; | |
22395 | fail: | |
22396 | { | |
22397 | if (temp7) | |
22398 | delete arg7; | |
22399 | } | |
22400 | return NULL; | |
22401 | } | |
22402 | ||
22403 | ||
c32bde28 | 22404 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22405 | PyObject *resultobj; |
22406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 22407 | bool arg2 = (bool) false ; |
d14a1e28 RD |
22408 | bool result; |
22409 | PyObject * obj0 = 0 ; | |
22410 | PyObject * obj1 = 0 ; | |
22411 | char *kwnames[] = { | |
22412 | (char *) "self",(char *) "force", NULL | |
22413 | }; | |
22414 | ||
22415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 22418 | if (obj1) { |
c32bde28 | 22419 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 22420 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22421 | } |
22422 | { | |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | result = (bool)(arg1)->Close(arg2); | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
4f89f6a3 RD |
22429 | { |
22430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22431 | } | |
d14a1e28 RD |
22432 | return resultobj; |
22433 | fail: | |
22434 | return NULL; | |
22435 | } | |
22436 | ||
22437 | ||
c32bde28 | 22438 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22439 | PyObject *resultobj; |
22440 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22441 | bool result; | |
22442 | PyObject * obj0 = 0 ; | |
22443 | char *kwnames[] = { | |
22444 | (char *) "self", NULL | |
22445 | }; | |
22446 | ||
22447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22450 | { |
22451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22452 | result = (bool)(arg1)->Destroy(); | |
22453 | ||
22454 | wxPyEndAllowThreads(__tstate); | |
22455 | if (PyErr_Occurred()) SWIG_fail; | |
22456 | } | |
4f89f6a3 RD |
22457 | { |
22458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22459 | } | |
d14a1e28 RD |
22460 | return resultobj; |
22461 | fail: | |
22462 | return NULL; | |
22463 | } | |
22464 | ||
22465 | ||
c32bde28 | 22466 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22467 | PyObject *resultobj; |
22468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22469 | bool result; | |
22470 | PyObject * obj0 = 0 ; | |
22471 | char *kwnames[] = { | |
22472 | (char *) "self", NULL | |
22473 | }; | |
22474 | ||
22475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22478 | { |
22479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22480 | result = (bool)(arg1)->DestroyChildren(); | |
22481 | ||
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
4f89f6a3 RD |
22485 | { |
22486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22487 | } | |
d14a1e28 RD |
22488 | return resultobj; |
22489 | fail: | |
22490 | return NULL; | |
22491 | } | |
22492 | ||
22493 | ||
c32bde28 | 22494 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22495 | PyObject *resultobj; |
22496 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22497 | bool result; | |
22498 | PyObject * obj0 = 0 ; | |
22499 | char *kwnames[] = { | |
22500 | (char *) "self", NULL | |
22501 | }; | |
22502 | ||
22503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22506 | { |
22507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22508 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22509 | ||
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
4f89f6a3 RD |
22513 | { |
22514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22515 | } | |
d14a1e28 RD |
22516 | return resultobj; |
22517 | fail: | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
c32bde28 | 22522 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22523 | PyObject *resultobj; |
22524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22525 | wxString *arg2 = 0 ; | |
ae8162c8 | 22526 | bool temp2 = false ; |
d14a1e28 RD |
22527 | PyObject * obj0 = 0 ; |
22528 | PyObject * obj1 = 0 ; | |
22529 | char *kwnames[] = { | |
22530 | (char *) "self",(char *) "title", NULL | |
22531 | }; | |
22532 | ||
22533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22536 | { |
22537 | arg2 = wxString_in_helper(obj1); | |
22538 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22539 | temp2 = true; |
d14a1e28 RD |
22540 | } |
22541 | { | |
22542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22543 | (arg1)->SetTitle((wxString const &)*arg2); | |
22544 | ||
22545 | wxPyEndAllowThreads(__tstate); | |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | } | |
22548 | Py_INCREF(Py_None); resultobj = Py_None; | |
22549 | { | |
22550 | if (temp2) | |
22551 | delete arg2; | |
22552 | } | |
22553 | return resultobj; | |
22554 | fail: | |
22555 | { | |
22556 | if (temp2) | |
22557 | delete arg2; | |
22558 | } | |
22559 | return NULL; | |
22560 | } | |
22561 | ||
22562 | ||
c32bde28 | 22563 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22564 | PyObject *resultobj; |
22565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22566 | wxString result; | |
22567 | PyObject * obj0 = 0 ; | |
22568 | char *kwnames[] = { | |
22569 | (char *) "self", NULL | |
22570 | }; | |
22571 | ||
22572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22575 | { |
22576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22577 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22578 | ||
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | { | |
22583 | #if wxUSE_UNICODE | |
22584 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22585 | #else | |
22586 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22587 | #endif | |
22588 | } | |
22589 | return resultobj; | |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
c32bde28 | 22595 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22596 | PyObject *resultobj; |
22597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22598 | wxString *arg2 = 0 ; | |
ae8162c8 | 22599 | bool temp2 = false ; |
d14a1e28 RD |
22600 | PyObject * obj0 = 0 ; |
22601 | PyObject * obj1 = 0 ; | |
22602 | char *kwnames[] = { | |
22603 | (char *) "self",(char *) "label", NULL | |
22604 | }; | |
22605 | ||
22606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22609 | { |
22610 | arg2 = wxString_in_helper(obj1); | |
22611 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22612 | temp2 = true; |
d14a1e28 RD |
22613 | } |
22614 | { | |
22615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22616 | (arg1)->SetLabel((wxString const &)*arg2); | |
22617 | ||
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
22621 | Py_INCREF(Py_None); resultobj = Py_None; | |
22622 | { | |
22623 | if (temp2) | |
22624 | delete arg2; | |
22625 | } | |
22626 | return resultobj; | |
22627 | fail: | |
22628 | { | |
22629 | if (temp2) | |
22630 | delete arg2; | |
22631 | } | |
22632 | return NULL; | |
22633 | } | |
22634 | ||
22635 | ||
c32bde28 | 22636 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22637 | PyObject *resultobj; |
22638 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22639 | wxString result; | |
22640 | PyObject * obj0 = 0 ; | |
22641 | char *kwnames[] = { | |
22642 | (char *) "self", NULL | |
22643 | }; | |
22644 | ||
22645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22648 | { |
22649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22650 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22651 | ||
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | { | |
22656 | #if wxUSE_UNICODE | |
22657 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22658 | #else | |
22659 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22660 | #endif | |
22661 | } | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
22665 | } | |
22666 | ||
22667 | ||
c32bde28 | 22668 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22669 | PyObject *resultobj; |
22670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22671 | wxString *arg2 = 0 ; | |
ae8162c8 | 22672 | bool temp2 = false ; |
d14a1e28 RD |
22673 | PyObject * obj0 = 0 ; |
22674 | PyObject * obj1 = 0 ; | |
22675 | char *kwnames[] = { | |
22676 | (char *) "self",(char *) "name", NULL | |
22677 | }; | |
22678 | ||
22679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22682 | { |
22683 | arg2 = wxString_in_helper(obj1); | |
22684 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22685 | temp2 = true; |
d14a1e28 RD |
22686 | } |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | (arg1)->SetName((wxString const &)*arg2); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | Py_INCREF(Py_None); resultobj = Py_None; | |
22695 | { | |
22696 | if (temp2) | |
22697 | delete arg2; | |
22698 | } | |
22699 | return resultobj; | |
22700 | fail: | |
22701 | { | |
22702 | if (temp2) | |
22703 | delete arg2; | |
22704 | } | |
22705 | return NULL; | |
22706 | } | |
22707 | ||
22708 | ||
c32bde28 | 22709 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22710 | PyObject *resultobj; |
22711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22712 | wxString result; | |
22713 | PyObject * obj0 = 0 ; | |
22714 | char *kwnames[] = { | |
22715 | (char *) "self", NULL | |
22716 | }; | |
22717 | ||
22718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22721 | { |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | result = ((wxWindow const *)arg1)->GetName(); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | { | |
22729 | #if wxUSE_UNICODE | |
22730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22731 | #else | |
22732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22733 | #endif | |
22734 | } | |
22735 | return resultobj; | |
22736 | fail: | |
22737 | return NULL; | |
22738 | } | |
22739 | ||
22740 | ||
c32bde28 | 22741 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
22742 | PyObject *resultobj; |
22743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22744 | int arg2 ; | |
22745 | PyObject * obj0 = 0 ; | |
22746 | PyObject * obj1 = 0 ; | |
22747 | char *kwnames[] = { | |
22748 | (char *) "self",(char *) "variant", NULL | |
22749 | }; | |
22750 | ||
22751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22754 | arg2 = (int)SWIG_As_int(obj1); |
4276dc52 RD |
22755 | if (PyErr_Occurred()) SWIG_fail; |
22756 | { | |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22759 | ||
22760 | wxPyEndAllowThreads(__tstate); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | } | |
22763 | Py_INCREF(Py_None); resultobj = Py_None; | |
22764 | return resultobj; | |
22765 | fail: | |
22766 | return NULL; | |
22767 | } | |
22768 | ||
22769 | ||
c32bde28 | 22770 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
22771 | PyObject *resultobj; |
22772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22773 | int result; | |
22774 | PyObject * obj0 = 0 ; | |
22775 | char *kwnames[] = { | |
22776 | (char *) "self", NULL | |
22777 | }; | |
22778 | ||
22779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22782 | { | |
22783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22784 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22785 | ||
22786 | wxPyEndAllowThreads(__tstate); | |
22787 | if (PyErr_Occurred()) SWIG_fail; | |
22788 | } | |
c32bde28 | 22789 | resultobj = SWIG_From_int((int)result); |
4276dc52 RD |
22790 | return resultobj; |
22791 | fail: | |
22792 | return NULL; | |
22793 | } | |
22794 | ||
22795 | ||
c32bde28 | 22796 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22797 | PyObject *resultobj; |
22798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22799 | int arg2 ; |
d14a1e28 | 22800 | PyObject * obj0 = 0 ; |
994141e6 | 22801 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22802 | char *kwnames[] = { |
22803 | (char *) "self",(char *) "winid", NULL | |
22804 | }; | |
22805 | ||
994141e6 | 22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22809 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22810 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22811 | { |
22812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22813 | (arg1)->SetId(arg2); | |
22814 | ||
22815 | wxPyEndAllowThreads(__tstate); | |
22816 | if (PyErr_Occurred()) SWIG_fail; | |
22817 | } | |
22818 | Py_INCREF(Py_None); resultobj = Py_None; | |
22819 | return resultobj; | |
22820 | fail: | |
22821 | return NULL; | |
22822 | } | |
22823 | ||
22824 | ||
c32bde28 | 22825 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22826 | PyObject *resultobj; |
22827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22828 | int result; |
d14a1e28 RD |
22829 | PyObject * obj0 = 0 ; |
22830 | char *kwnames[] = { | |
22831 | (char *) "self", NULL | |
22832 | }; | |
22833 | ||
22834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22837 | { |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22839 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
22840 | |
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
c32bde28 | 22844 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22845 | return resultobj; |
22846 | fail: | |
22847 | return NULL; | |
22848 | } | |
22849 | ||
22850 | ||
c32bde28 | 22851 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22852 | PyObject *resultobj; |
22853 | int result; | |
22854 | char *kwnames[] = { | |
22855 | NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | result = (int)wxWindow::NewControlId(); | |
22862 | ||
22863 | wxPyEndAllowThreads(__tstate); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
c32bde28 | 22866 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22867 | return resultobj; |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
c32bde28 | 22873 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22874 | PyObject *resultobj; |
22875 | int arg1 ; | |
22876 | int result; | |
994141e6 | 22877 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22878 | char *kwnames[] = { |
22879 | (char *) "winid", NULL | |
22880 | }; | |
22881 | ||
994141e6 | 22882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
c32bde28 | 22883 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 22884 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22885 | { |
22886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22887 | result = (int)wxWindow::NextControlId(arg1); | |
22888 | ||
22889 | wxPyEndAllowThreads(__tstate); | |
22890 | if (PyErr_Occurred()) SWIG_fail; | |
22891 | } | |
c32bde28 | 22892 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22893 | return resultobj; |
22894 | fail: | |
22895 | return NULL; | |
22896 | } | |
22897 | ||
22898 | ||
c32bde28 | 22899 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22900 | PyObject *resultobj; |
22901 | int arg1 ; | |
22902 | int result; | |
994141e6 | 22903 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22904 | char *kwnames[] = { |
22905 | (char *) "winid", NULL | |
22906 | }; | |
22907 | ||
994141e6 | 22908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
c32bde28 | 22909 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 22910 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22911 | { |
22912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22913 | result = (int)wxWindow::PrevControlId(arg1); | |
22914 | ||
22915 | wxPyEndAllowThreads(__tstate); | |
22916 | if (PyErr_Occurred()) SWIG_fail; | |
22917 | } | |
c32bde28 | 22918 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22919 | return resultobj; |
22920 | fail: | |
22921 | return NULL; | |
22922 | } | |
22923 | ||
22924 | ||
c32bde28 | 22925 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22926 | PyObject *resultobj; |
22927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22928 | wxSize *arg2 = 0 ; | |
22929 | wxSize temp2 ; | |
22930 | PyObject * obj0 = 0 ; | |
22931 | PyObject * obj1 = 0 ; | |
22932 | char *kwnames[] = { | |
22933 | (char *) "self",(char *) "size", NULL | |
22934 | }; | |
22935 | ||
22936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22939 | { |
22940 | arg2 = &temp2; | |
22941 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22942 | } | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | (arg1)->SetSize((wxSize const &)*arg2); | |
22946 | ||
22947 | wxPyEndAllowThreads(__tstate); | |
22948 | if (PyErr_Occurred()) SWIG_fail; | |
22949 | } | |
22950 | Py_INCREF(Py_None); resultobj = Py_None; | |
22951 | return resultobj; | |
22952 | fail: | |
22953 | return NULL; | |
22954 | } | |
22955 | ||
22956 | ||
c32bde28 | 22957 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22958 | PyObject *resultobj; |
22959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22960 | int arg2 ; | |
22961 | int arg3 ; | |
22962 | int arg4 ; | |
22963 | int arg5 ; | |
22964 | int arg6 = (int) wxSIZE_AUTO ; | |
22965 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22966 | PyObject * obj1 = 0 ; |
22967 | PyObject * obj2 = 0 ; | |
22968 | PyObject * obj3 = 0 ; | |
22969 | PyObject * obj4 = 0 ; | |
22970 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
22971 | char *kwnames[] = { |
22972 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22973 | }; | |
22974 | ||
994141e6 | 22975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22978 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22979 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22980 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22981 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22982 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 22983 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22984 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 22985 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22986 | if (obj5) { |
c32bde28 | 22987 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 22988 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22989 | } |
d14a1e28 RD |
22990 | { |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22993 | ||
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
22997 | Py_INCREF(Py_None); resultobj = Py_None; | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
c32bde28 | 23004 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23005 | PyObject *resultobj; |
23006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23007 | wxRect *arg2 = 0 ; | |
23008 | int arg3 = (int) wxSIZE_AUTO ; | |
23009 | wxRect temp2 ; | |
23010 | PyObject * obj0 = 0 ; | |
23011 | PyObject * obj1 = 0 ; | |
994141e6 | 23012 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23013 | char *kwnames[] = { |
23014 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
23015 | }; | |
23016 | ||
994141e6 | 23017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23020 | { |
23021 | arg2 = &temp2; | |
23022 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23023 | } | |
994141e6 | 23024 | if (obj2) { |
c32bde28 | 23025 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23026 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23027 | } |
d14a1e28 RD |
23028 | { |
23029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23030 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
23031 | ||
23032 | wxPyEndAllowThreads(__tstate); | |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
23034 | } | |
23035 | Py_INCREF(Py_None); resultobj = Py_None; | |
23036 | return resultobj; | |
23037 | fail: | |
23038 | return NULL; | |
23039 | } | |
23040 | ||
23041 | ||
c32bde28 | 23042 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23043 | PyObject *resultobj; |
23044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23045 | int arg2 ; | |
23046 | int arg3 ; | |
23047 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23048 | PyObject * obj1 = 0 ; |
23049 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23050 | char *kwnames[] = { |
23051 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23052 | }; | |
23053 | ||
994141e6 | 23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23057 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23058 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23059 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23060 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23061 | { |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | (arg1)->SetSize(arg2,arg3); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | Py_INCREF(Py_None); resultobj = Py_None; | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
c32bde28 | 23075 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23076 | PyObject *resultobj; |
23077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23078 | wxPoint *arg2 = 0 ; | |
23079 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
23080 | wxPoint temp2 ; | |
23081 | PyObject * obj0 = 0 ; | |
23082 | PyObject * obj1 = 0 ; | |
994141e6 | 23083 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23084 | char *kwnames[] = { |
23085 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
23086 | }; | |
23087 | ||
994141e6 | 23088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23091 | { |
23092 | arg2 = &temp2; | |
23093 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23094 | } | |
994141e6 | 23095 | if (obj2) { |
c32bde28 | 23096 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23097 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23098 | } |
d14a1e28 RD |
23099 | { |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
23106 | Py_INCREF(Py_None); resultobj = Py_None; | |
23107 | return resultobj; | |
23108 | fail: | |
23109 | return NULL; | |
23110 | } | |
23111 | ||
23112 | ||
c32bde28 | 23113 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23114 | PyObject *resultobj; |
23115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23116 | int arg2 ; | |
23117 | int arg3 ; | |
23118 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
23119 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23120 | PyObject * obj1 = 0 ; |
23121 | PyObject * obj2 = 0 ; | |
23122 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23123 | char *kwnames[] = { |
23124 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
23125 | }; | |
23126 | ||
994141e6 | 23127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23130 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23131 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23132 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23133 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23134 | if (obj3) { |
c32bde28 | 23135 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23136 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23137 | } |
d14a1e28 RD |
23138 | { |
23139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23140 | (arg1)->Move(arg2,arg3,arg4); | |
23141 | ||
23142 | wxPyEndAllowThreads(__tstate); | |
23143 | if (PyErr_Occurred()) SWIG_fail; | |
23144 | } | |
23145 | Py_INCREF(Py_None); resultobj = Py_None; | |
23146 | return resultobj; | |
23147 | fail: | |
23148 | return NULL; | |
23149 | } | |
23150 | ||
23151 | ||
c32bde28 | 23152 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
23153 | PyObject *resultobj; |
23154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23155 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
23156 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
23157 | wxSize temp2 ; | |
23158 | PyObject * obj0 = 0 ; | |
23159 | PyObject * obj1 = 0 ; | |
23160 | char *kwnames[] = { | |
23161 | (char *) "self",(char *) "size", NULL | |
23162 | }; | |
23163 | ||
23164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
23165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23167 | if (obj1) { | |
23168 | { | |
23169 | arg2 = &temp2; | |
23170 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23171 | } | |
23172 | } | |
23173 | { | |
23174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23175 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23176 | ||
23177 | wxPyEndAllowThreads(__tstate); | |
23178 | if (PyErr_Occurred()) SWIG_fail; | |
23179 | } | |
23180 | Py_INCREF(Py_None); resultobj = Py_None; | |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
c32bde28 | 23187 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23188 | PyObject *resultobj; |
23189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23190 | PyObject * obj0 = 0 ; | |
23191 | char *kwnames[] = { | |
23192 | (char *) "self", NULL | |
23193 | }; | |
23194 | ||
23195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23198 | { |
23199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23200 | (arg1)->Raise(); | |
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_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23213 | PyObject *resultobj; |
23214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23215 | PyObject * obj0 = 0 ; | |
23216 | char *kwnames[] = { | |
23217 | (char *) "self", NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23223 | { |
23224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23225 | (arg1)->Lower(); | |
23226 | ||
23227 | wxPyEndAllowThreads(__tstate); | |
23228 | if (PyErr_Occurred()) SWIG_fail; | |
23229 | } | |
23230 | Py_INCREF(Py_None); resultobj = Py_None; | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
c32bde28 | 23237 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23238 | PyObject *resultobj; |
23239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23240 | wxSize *arg2 = 0 ; | |
23241 | wxSize temp2 ; | |
23242 | PyObject * obj0 = 0 ; | |
23243 | PyObject * obj1 = 0 ; | |
23244 | char *kwnames[] = { | |
23245 | (char *) "self",(char *) "size", NULL | |
23246 | }; | |
23247 | ||
23248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23251 | { |
23252 | arg2 = &temp2; | |
23253 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23254 | } | |
23255 | { | |
23256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23257 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23258 | ||
23259 | wxPyEndAllowThreads(__tstate); | |
23260 | if (PyErr_Occurred()) SWIG_fail; | |
23261 | } | |
23262 | Py_INCREF(Py_None); resultobj = Py_None; | |
23263 | return resultobj; | |
23264 | fail: | |
23265 | return NULL; | |
23266 | } | |
23267 | ||
23268 | ||
c32bde28 | 23269 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23270 | PyObject *resultobj; |
23271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23272 | int arg2 ; | |
23273 | int arg3 ; | |
23274 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23275 | PyObject * obj1 = 0 ; |
23276 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23277 | char *kwnames[] = { |
23278 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23279 | }; | |
23280 | ||
994141e6 | 23281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23284 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23285 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23286 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23287 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23288 | { |
23289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23290 | (arg1)->SetClientSize(arg2,arg3); | |
23291 | ||
23292 | wxPyEndAllowThreads(__tstate); | |
23293 | if (PyErr_Occurred()) SWIG_fail; | |
23294 | } | |
23295 | Py_INCREF(Py_None); resultobj = Py_None; | |
23296 | return resultobj; | |
23297 | fail: | |
23298 | return NULL; | |
23299 | } | |
23300 | ||
23301 | ||
c32bde28 | 23302 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23303 | PyObject *resultobj; |
23304 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23305 | wxRect *arg2 = 0 ; | |
23306 | wxRect temp2 ; | |
23307 | PyObject * obj0 = 0 ; | |
23308 | PyObject * obj1 = 0 ; | |
23309 | char *kwnames[] = { | |
23310 | (char *) "self",(char *) "rect", NULL | |
23311 | }; | |
23312 | ||
23313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23316 | { |
23317 | arg2 = &temp2; | |
23318 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23319 | } | |
23320 | { | |
23321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23322 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23323 | ||
23324 | wxPyEndAllowThreads(__tstate); | |
23325 | if (PyErr_Occurred()) SWIG_fail; | |
23326 | } | |
23327 | Py_INCREF(Py_None); resultobj = Py_None; | |
23328 | return resultobj; | |
23329 | fail: | |
23330 | return NULL; | |
23331 | } | |
23332 | ||
23333 | ||
c32bde28 | 23334 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23335 | PyObject *resultobj; |
23336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23337 | wxPoint result; | |
23338 | PyObject * obj0 = 0 ; | |
23339 | char *kwnames[] = { | |
23340 | (char *) "self", NULL | |
23341 | }; | |
23342 | ||
23343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23346 | { |
23347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 23348 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
23349 | |
23350 | wxPyEndAllowThreads(__tstate); | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | } | |
23353 | { | |
23354 | wxPoint * resultptr; | |
23355 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 23356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23357 | } |
23358 | return resultobj; | |
23359 | fail: | |
23360 | return NULL; | |
23361 | } | |
23362 | ||
23363 | ||
c32bde28 | 23364 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23365 | PyObject *resultobj; |
23366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23367 | int *arg2 = (int *) 0 ; | |
23368 | int *arg3 = (int *) 0 ; | |
23369 | int temp2 ; | |
c32bde28 | 23370 | int res2 = 0 ; |
d14a1e28 | 23371 | int temp3 ; |
c32bde28 | 23372 | int res3 = 0 ; |
d14a1e28 RD |
23373 | PyObject * obj0 = 0 ; |
23374 | char *kwnames[] = { | |
23375 | (char *) "self", NULL | |
23376 | }; | |
23377 | ||
c32bde28 RD |
23378 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23379 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 23380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23383 | { |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 23385 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
23386 | |
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23391 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23392 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23393 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23394 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23395 | return resultobj; |
23396 | fail: | |
23397 | return NULL; | |
23398 | } | |
23399 | ||
23400 | ||
c32bde28 | 23401 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23402 | PyObject *resultobj; |
23403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23404 | wxSize result; | |
23405 | PyObject * obj0 = 0 ; | |
23406 | char *kwnames[] = { | |
23407 | (char *) "self", NULL | |
23408 | }; | |
23409 | ||
23410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23413 | { |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | result = ((wxWindow const *)arg1)->GetSize(); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | { | |
23421 | wxSize * resultptr; | |
23422 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23424 | } |
23425 | return resultobj; | |
23426 | fail: | |
23427 | return NULL; | |
23428 | } | |
23429 | ||
23430 | ||
c32bde28 | 23431 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23432 | PyObject *resultobj; |
23433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23434 | int *arg2 = (int *) 0 ; | |
23435 | int *arg3 = (int *) 0 ; | |
23436 | int temp2 ; | |
c32bde28 | 23437 | int res2 = 0 ; |
d14a1e28 | 23438 | int temp3 ; |
c32bde28 | 23439 | int res3 = 0 ; |
d14a1e28 RD |
23440 | PyObject * obj0 = 0 ; |
23441 | char *kwnames[] = { | |
23442 | (char *) "self", NULL | |
23443 | }; | |
23444 | ||
c32bde28 RD |
23445 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23446 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 23447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23450 | { |
23451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23452 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23453 | ||
23454 | wxPyEndAllowThreads(__tstate); | |
23455 | if (PyErr_Occurred()) SWIG_fail; | |
23456 | } | |
23457 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23458 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23459 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23460 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23461 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23462 | return resultobj; |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
c32bde28 | 23468 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23469 | PyObject *resultobj; |
23470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23471 | wxRect result; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | char *kwnames[] = { | |
23474 | (char *) "self", NULL | |
23475 | }; | |
23476 | ||
23477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23480 | { |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | result = ((wxWindow const *)arg1)->GetRect(); | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | { | |
23488 | wxRect * resultptr; | |
23489 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 23490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
23491 | } |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
c32bde28 | 23498 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23499 | PyObject *resultobj; |
23500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23501 | wxSize result; | |
23502 | PyObject * obj0 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23510 | { |
23511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23512 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
23517 | { | |
23518 | wxSize * resultptr; | |
23519 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23520 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23521 | } |
23522 | return resultobj; | |
23523 | fail: | |
23524 | return NULL; | |
23525 | } | |
23526 | ||
23527 | ||
c32bde28 | 23528 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23529 | PyObject *resultobj; |
23530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23531 | int *arg2 = (int *) 0 ; | |
23532 | int *arg3 = (int *) 0 ; | |
23533 | int temp2 ; | |
c32bde28 | 23534 | int res2 = 0 ; |
d14a1e28 | 23535 | int temp3 ; |
c32bde28 | 23536 | int res3 = 0 ; |
d14a1e28 RD |
23537 | PyObject * obj0 = 0 ; |
23538 | char *kwnames[] = { | |
23539 | (char *) "self", NULL | |
23540 | }; | |
23541 | ||
c32bde28 RD |
23542 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23543 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 23544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23547 | { |
23548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23549 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23550 | ||
23551 | wxPyEndAllowThreads(__tstate); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | } | |
23554 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23555 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23556 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23557 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23558 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23559 | return resultobj; |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
c32bde28 | 23565 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23566 | PyObject *resultobj; |
23567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23568 | wxPoint result; | |
23569 | PyObject * obj0 = 0 ; | |
23570 | char *kwnames[] = { | |
23571 | (char *) "self", NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23577 | { |
23578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23579 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23580 | ||
23581 | wxPyEndAllowThreads(__tstate); | |
23582 | if (PyErr_Occurred()) SWIG_fail; | |
23583 | } | |
23584 | { | |
23585 | wxPoint * resultptr; | |
23586 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 23587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23588 | } |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
c32bde28 | 23595 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23596 | PyObject *resultobj; |
23597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23598 | wxRect result; | |
23599 | PyObject * obj0 = 0 ; | |
23600 | char *kwnames[] = { | |
23601 | (char *) "self", NULL | |
23602 | }; | |
23603 | ||
23604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23607 | { |
23608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23609 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23610 | ||
23611 | wxPyEndAllowThreads(__tstate); | |
23612 | if (PyErr_Occurred()) SWIG_fail; | |
23613 | } | |
23614 | { | |
23615 | wxRect * resultptr; | |
23616 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 23617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
23618 | } |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
c32bde28 | 23625 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 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_GetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23637 | { |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23639 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23640 | ||
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | { | |
23645 | wxSize * resultptr; | |
23646 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23648 | } |
23649 | return resultobj; | |
23650 | fail: | |
23651 | return NULL; | |
23652 | } | |
23653 | ||
23654 | ||
c32bde28 | 23655 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23656 | PyObject *resultobj; |
23657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23658 | int *arg2 = (int *) 0 ; | |
23659 | int *arg3 = (int *) 0 ; | |
23660 | int temp2 ; | |
c32bde28 | 23661 | int res2 = 0 ; |
d14a1e28 | 23662 | int temp3 ; |
c32bde28 | 23663 | int res3 = 0 ; |
d14a1e28 RD |
23664 | PyObject * obj0 = 0 ; |
23665 | char *kwnames[] = { | |
23666 | (char *) "self", NULL | |
23667 | }; | |
23668 | ||
c32bde28 RD |
23669 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23670 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 23671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23674 | { |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23676 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23677 | ||
23678 | wxPyEndAllowThreads(__tstate); | |
23679 | if (PyErr_Occurred()) SWIG_fail; | |
23680 | } | |
23681 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23682 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23683 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23684 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23685 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23686 | return resultobj; |
23687 | fail: | |
23688 | return NULL; | |
23689 | } | |
23690 | ||
23691 | ||
c32bde28 | 23692 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
23693 | PyObject *resultobj; |
23694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23695 | PyObject * obj0 = 0 ; | |
23696 | char *kwnames[] = { | |
23697 | (char *) "self", NULL | |
23698 | }; | |
23699 | ||
23700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | (arg1)->InvalidateBestSize(); | |
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_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
23718 | PyObject *resultobj; |
23719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23720 | wxSize result; | |
23721 | PyObject * obj0 = 0 ; | |
23722 | char *kwnames[] = { | |
23723 | (char *) "self", NULL | |
23724 | }; | |
23725 | ||
23726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23729 | { | |
23730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23731 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23732 | ||
23733 | wxPyEndAllowThreads(__tstate); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
23736 | { | |
23737 | wxSize * resultptr; | |
23738 | resultptr = new wxSize((wxSize &) result); | |
23739 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23740 | } | |
23741 | return resultobj; | |
23742 | fail: | |
23743 | return NULL; | |
23744 | } | |
23745 | ||
23746 | ||
c32bde28 | 23747 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23748 | PyObject *resultobj; |
23749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23750 | wxSize result; | |
23751 | PyObject * obj0 = 0 ; | |
23752 | char *kwnames[] = { | |
23753 | (char *) "self", NULL | |
23754 | }; | |
23755 | ||
23756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23759 | { |
23760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23761 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
23766 | { | |
23767 | wxSize * resultptr; | |
23768 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23769 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23770 | } |
23771 | return resultobj; | |
23772 | fail: | |
23773 | return NULL; | |
23774 | } | |
23775 | ||
23776 | ||
c32bde28 | 23777 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23778 | PyObject *resultobj; |
23779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23780 | int arg2 = (int) wxBOTH ; | |
23781 | PyObject * obj0 = 0 ; | |
994141e6 | 23782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23783 | char *kwnames[] = { |
23784 | (char *) "self",(char *) "direction", NULL | |
23785 | }; | |
23786 | ||
994141e6 | 23787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23790 | if (obj1) { |
c32bde28 | 23791 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23792 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23793 | } |
d14a1e28 RD |
23794 | { |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | (arg1)->Center(arg2); | |
23797 | ||
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
23801 | Py_INCREF(Py_None); resultobj = Py_None; | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
c32bde28 | 23808 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23809 | PyObject *resultobj; |
23810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23811 | int arg2 = (int) wxBOTH ; | |
23812 | PyObject * obj0 = 0 ; | |
994141e6 | 23813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23814 | char *kwnames[] = { |
23815 | (char *) "self",(char *) "dir", NULL | |
23816 | }; | |
23817 | ||
994141e6 | 23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23821 | if (obj1) { |
c32bde28 | 23822 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23823 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23824 | } |
d14a1e28 RD |
23825 | { |
23826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23827 | (arg1)->CenterOnScreen(arg2); | |
23828 | ||
23829 | wxPyEndAllowThreads(__tstate); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
23831 | } | |
23832 | Py_INCREF(Py_None); resultobj = Py_None; | |
23833 | return resultobj; | |
23834 | fail: | |
23835 | return NULL; | |
23836 | } | |
23837 | ||
23838 | ||
c32bde28 | 23839 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23840 | PyObject *resultobj; |
23841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23842 | int arg2 = (int) wxBOTH ; | |
23843 | PyObject * obj0 = 0 ; | |
994141e6 | 23844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23845 | char *kwnames[] = { |
23846 | (char *) "self",(char *) "dir", NULL | |
23847 | }; | |
23848 | ||
994141e6 | 23849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23852 | if (obj1) { |
c32bde28 | 23853 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23854 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23855 | } |
d14a1e28 RD |
23856 | { |
23857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23858 | (arg1)->CenterOnParent(arg2); | |
23859 | ||
23860 | wxPyEndAllowThreads(__tstate); | |
23861 | if (PyErr_Occurred()) SWIG_fail; | |
23862 | } | |
23863 | Py_INCREF(Py_None); resultobj = Py_None; | |
23864 | return resultobj; | |
23865 | fail: | |
23866 | return NULL; | |
23867 | } | |
23868 | ||
23869 | ||
c32bde28 | 23870 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23871 | PyObject *resultobj; |
23872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23873 | PyObject * obj0 = 0 ; | |
23874 | char *kwnames[] = { | |
23875 | (char *) "self", NULL | |
23876 | }; | |
23877 | ||
23878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23881 | { |
23882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23883 | (arg1)->Fit(); | |
23884 | ||
23885 | wxPyEndAllowThreads(__tstate); | |
23886 | if (PyErr_Occurred()) SWIG_fail; | |
23887 | } | |
23888 | Py_INCREF(Py_None); resultobj = Py_None; | |
23889 | return resultobj; | |
23890 | fail: | |
23891 | return NULL; | |
23892 | } | |
23893 | ||
23894 | ||
c32bde28 | 23895 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23896 | PyObject *resultobj; |
23897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23898 | PyObject * obj0 = 0 ; | |
23899 | char *kwnames[] = { | |
23900 | (char *) "self", NULL | |
23901 | }; | |
23902 | ||
23903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23906 | { |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23908 | (arg1)->FitInside(); | |
23909 | ||
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | Py_INCREF(Py_None); resultobj = Py_None; | |
23914 | return resultobj; | |
23915 | fail: | |
23916 | return NULL; | |
23917 | } | |
23918 | ||
23919 | ||
c32bde28 | 23920 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23921 | PyObject *resultobj; |
23922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23923 | int arg2 ; | |
23924 | int arg3 ; | |
23925 | int arg4 = (int) -1 ; | |
23926 | int arg5 = (int) -1 ; | |
23927 | int arg6 = (int) -1 ; | |
23928 | int arg7 = (int) -1 ; | |
23929 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23930 | PyObject * obj1 = 0 ; |
23931 | PyObject * obj2 = 0 ; | |
23932 | PyObject * obj3 = 0 ; | |
23933 | PyObject * obj4 = 0 ; | |
23934 | PyObject * obj5 = 0 ; | |
23935 | PyObject * obj6 = 0 ; | |
f16ab95d RD |
23936 | char *kwnames[] = { |
23937 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23938 | }; | |
d14a1e28 | 23939 | |
f16ab95d | 23940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23943 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23944 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23945 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23946 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23947 | if (obj3) { |
c32bde28 | 23948 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23949 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23950 | } |
23951 | if (obj4) { | |
c32bde28 | 23952 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 23953 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23954 | } |
23955 | if (obj5) { | |
c32bde28 | 23956 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 23957 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23958 | } |
23959 | if (obj6) { | |
c32bde28 | 23960 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 23961 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23962 | } |
d14a1e28 RD |
23963 | { |
23964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23965 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23966 | ||
23967 | wxPyEndAllowThreads(__tstate); | |
23968 | if (PyErr_Occurred()) SWIG_fail; | |
23969 | } | |
23970 | Py_INCREF(Py_None); resultobj = Py_None; | |
23971 | return resultobj; | |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
c32bde28 | 23977 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23978 | PyObject *resultobj; |
23979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23980 | wxSize *arg2 = 0 ; |
23981 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23982 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
f16ab95d RD |
23983 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23984 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23985 | wxSize temp2 ; |
23986 | wxSize temp3 ; | |
f16ab95d | 23987 | wxSize temp4 ; |
d14a1e28 | 23988 | PyObject * obj0 = 0 ; |
994141e6 RD |
23989 | PyObject * obj1 = 0 ; |
23990 | PyObject * obj2 = 0 ; | |
f16ab95d RD |
23991 | PyObject * obj3 = 0 ; |
23992 | char *kwnames[] = { | |
23993 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23994 | }; | |
d14a1e28 | 23995 | |
f16ab95d | 23996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23999 | { |
24000 | arg2 = &temp2; | |
24001 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 24002 | } |
908b74cd RD |
24003 | if (obj2) { |
24004 | { | |
24005 | arg3 = &temp3; | |
24006 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
24007 | } | |
994141e6 | 24008 | } |
f16ab95d RD |
24009 | if (obj3) { |
24010 | { | |
24011 | arg4 = &temp4; | |
24012 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24013 | } | |
24014 | } | |
d14a1e28 RD |
24015 | { |
24016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f16ab95d | 24017 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d14a1e28 RD |
24018 | |
24019 | wxPyEndAllowThreads(__tstate); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
24021 | } | |
24022 | Py_INCREF(Py_None); resultobj = Py_None; | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
c32bde28 | 24029 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24030 | PyObject *resultobj; |
24031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
24032 | int arg2 ; |
24033 | int arg3 ; | |
24034 | int arg4 = (int) -1 ; | |
24035 | int arg5 = (int) -1 ; | |
74a57fcd RD |
24036 | PyObject * obj0 = 0 ; |
24037 | PyObject * obj1 = 0 ; | |
24038 | PyObject * obj2 = 0 ; | |
908b74cd RD |
24039 | PyObject * obj3 = 0 ; |
24040 | PyObject * obj4 = 0 ; | |
f16ab95d RD |
24041 | char *kwnames[] = { |
24042 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
24043 | }; | |
74a57fcd | 24044 | |
f16ab95d | 24045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
74a57fcd RD |
24046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24048 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 24049 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24050 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
24051 | if (PyErr_Occurred()) SWIG_fail; |
24052 | if (obj3) { | |
c32bde28 | 24053 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 24054 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd | 24055 | } |
908b74cd | 24056 | if (obj4) { |
c32bde28 | 24057 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 24058 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
24059 | } |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24062 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
74a57fcd RD |
24063 | |
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | Py_INCREF(Py_None); resultobj = Py_None; | |
24068 | return resultobj; | |
24069 | fail: | |
24070 | return NULL; | |
24071 | } | |
24072 | ||
24073 | ||
c32bde28 | 24074 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
f16ab95d RD |
24075 | PyObject *resultobj; |
24076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24077 | wxSize *arg2 = 0 ; | |
24078 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24079 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
24080 | wxSize temp2 ; | |
24081 | wxSize temp3 ; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | PyObject * obj1 = 0 ; | |
24084 | PyObject * obj2 = 0 ; | |
24085 | char *kwnames[] = { | |
24086 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
24087 | }; | |
74a57fcd | 24088 | |
f16ab95d RD |
24089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24092 | { | |
24093 | arg2 = &temp2; | |
24094 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
74a57fcd | 24095 | } |
f16ab95d | 24096 | if (obj2) { |
74a57fcd | 24097 | { |
f16ab95d RD |
24098 | arg3 = &temp3; |
24099 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
74a57fcd RD |
24100 | } |
24101 | } | |
f16ab95d RD |
24102 | { |
24103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24104 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
24105 | ||
24106 | wxPyEndAllowThreads(__tstate); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
74a57fcd | 24108 | } |
f16ab95d RD |
24109 | Py_INCREF(Py_None); resultobj = Py_None; |
24110 | return resultobj; | |
24111 | fail: | |
74a57fcd RD |
24112 | return NULL; |
24113 | } | |
24114 | ||
24115 | ||
c32bde28 | 24116 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24117 | PyObject *resultobj; |
24118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24119 | wxSize result; |
d14a1e28 RD |
24120 | PyObject * obj0 = 0 ; |
24121 | char *kwnames[] = { | |
24122 | (char *) "self", NULL | |
24123 | }; | |
24124 | ||
908b74cd | 24125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24128 | { |
24129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24130 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d14a1e28 RD |
24131 | |
24132 | wxPyEndAllowThreads(__tstate); | |
24133 | if (PyErr_Occurred()) SWIG_fail; | |
24134 | } | |
908b74cd RD |
24135 | { |
24136 | wxSize * resultptr; | |
24137 | resultptr = new wxSize((wxSize &) result); | |
24138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24139 | } | |
d14a1e28 RD |
24140 | return resultobj; |
24141 | fail: | |
24142 | return NULL; | |
24143 | } | |
24144 | ||
24145 | ||
c32bde28 | 24146 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24147 | PyObject *resultobj; |
24148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24149 | wxSize result; |
d14a1e28 RD |
24150 | PyObject * obj0 = 0 ; |
24151 | char *kwnames[] = { | |
24152 | (char *) "self", NULL | |
24153 | }; | |
24154 | ||
908b74cd | 24155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24158 | { |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24160 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d14a1e28 RD |
24161 | |
24162 | wxPyEndAllowThreads(__tstate); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
24164 | } | |
908b74cd RD |
24165 | { |
24166 | wxSize * resultptr; | |
24167 | resultptr = new wxSize((wxSize &) result); | |
24168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24169 | } | |
d14a1e28 RD |
24170 | return resultobj; |
24171 | fail: | |
24172 | return NULL; | |
24173 | } | |
24174 | ||
24175 | ||
c32bde28 | 24176 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24177 | PyObject *resultobj; |
24178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24179 | wxSize *arg2 = 0 ; | |
24180 | wxSize temp2 ; | |
24181 | PyObject * obj0 = 0 ; | |
24182 | PyObject * obj1 = 0 ; | |
24183 | char *kwnames[] = { | |
24184 | (char *) "self",(char *) "minSize", NULL | |
24185 | }; | |
24186 | ||
24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24190 | { | |
24191 | arg2 = &temp2; | |
24192 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24193 | } | |
24194 | { | |
24195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24196 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24197 | ||
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | Py_INCREF(Py_None); resultobj = Py_None; | |
24202 | return resultobj; | |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
c32bde28 | 24208 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24209 | PyObject *resultobj; |
24210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24211 | wxSize *arg2 = 0 ; | |
24212 | wxSize temp2 ; | |
24213 | PyObject * obj0 = 0 ; | |
24214 | PyObject * obj1 = 0 ; | |
24215 | char *kwnames[] = { | |
24216 | (char *) "self",(char *) "maxSize", NULL | |
24217 | }; | |
24218 | ||
24219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24222 | { | |
24223 | arg2 = &temp2; | |
24224 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24225 | } | |
24226 | { | |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | Py_INCREF(Py_None); resultobj = Py_None; | |
24234 | return resultobj; | |
24235 | fail: | |
24236 | return NULL; | |
24237 | } | |
24238 | ||
24239 | ||
c32bde28 | 24240 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24241 | PyObject *resultobj; |
24242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24243 | int result; | |
24244 | PyObject * obj0 = 0 ; | |
24245 | char *kwnames[] = { | |
24246 | (char *) "self", NULL | |
24247 | }; | |
24248 | ||
908b74cd | 24249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24252 | { |
24253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24254 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d14a1e28 RD |
24255 | |
24256 | wxPyEndAllowThreads(__tstate); | |
24257 | if (PyErr_Occurred()) SWIG_fail; | |
24258 | } | |
c32bde28 | 24259 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
24260 | return resultobj; |
24261 | fail: | |
24262 | return NULL; | |
24263 | } | |
24264 | ||
24265 | ||
c32bde28 | 24266 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24267 | PyObject *resultobj; |
24268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24269 | int result; | |
24270 | PyObject * obj0 = 0 ; | |
24271 | char *kwnames[] = { | |
24272 | (char *) "self", NULL | |
24273 | }; | |
24274 | ||
908b74cd | 24275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24278 | { |
24279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24280 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d14a1e28 RD |
24281 | |
24282 | wxPyEndAllowThreads(__tstate); | |
24283 | if (PyErr_Occurred()) SWIG_fail; | |
24284 | } | |
c32bde28 | 24285 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
24286 | return resultobj; |
24287 | fail: | |
24288 | return NULL; | |
24289 | } | |
24290 | ||
24291 | ||
c32bde28 | 24292 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24293 | PyObject *resultobj; |
24294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24295 | int result; |
d14a1e28 RD |
24296 | PyObject * obj0 = 0 ; |
24297 | char *kwnames[] = { | |
24298 | (char *) "self", NULL | |
24299 | }; | |
24300 | ||
908b74cd | 24301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24304 | { |
24305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24306 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d14a1e28 RD |
24307 | |
24308 | wxPyEndAllowThreads(__tstate); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
c32bde28 | 24311 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
24312 | return resultobj; |
24313 | fail: | |
24314 | return NULL; | |
24315 | } | |
24316 | ||
24317 | ||
c32bde28 | 24318 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24319 | PyObject *resultobj; |
24320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24321 | int result; |
74a57fcd RD |
24322 | PyObject * obj0 = 0 ; |
24323 | char *kwnames[] = { | |
24324 | (char *) "self", NULL | |
24325 | }; | |
24326 | ||
908b74cd | 24327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
74a57fcd RD |
24328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24332 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
74a57fcd RD |
24333 | |
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
c32bde28 | 24337 | resultobj = SWIG_From_int((int)result); |
74a57fcd RD |
24338 | return resultobj; |
24339 | fail: | |
24340 | return NULL; | |
24341 | } | |
24342 | ||
24343 | ||
c32bde28 | 24344 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24345 | PyObject *resultobj; |
24346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24347 | wxSize *arg2 = 0 ; | |
24348 | wxSize temp2 ; | |
24349 | PyObject * obj0 = 0 ; | |
24350 | PyObject * obj1 = 0 ; | |
24351 | char *kwnames[] = { | |
24352 | (char *) "self",(char *) "size", NULL | |
24353 | }; | |
24354 | ||
24355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24358 | { |
24359 | arg2 = &temp2; | |
24360 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24361 | } | |
24362 | { | |
24363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24364 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24365 | ||
24366 | wxPyEndAllowThreads(__tstate); | |
24367 | if (PyErr_Occurred()) SWIG_fail; | |
24368 | } | |
24369 | Py_INCREF(Py_None); resultobj = Py_None; | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
c32bde28 | 24376 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24377 | PyObject *resultobj; |
24378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24379 | int arg2 ; | |
24380 | int arg3 ; | |
24381 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24382 | PyObject * obj1 = 0 ; |
24383 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24384 | char *kwnames[] = { |
24385 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24386 | }; | |
24387 | ||
994141e6 | 24388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24391 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24392 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24393 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24394 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24395 | { |
24396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24397 | (arg1)->SetVirtualSize(arg2,arg3); | |
24398 | ||
24399 | wxPyEndAllowThreads(__tstate); | |
24400 | if (PyErr_Occurred()) SWIG_fail; | |
24401 | } | |
24402 | Py_INCREF(Py_None); resultobj = Py_None; | |
24403 | return resultobj; | |
24404 | fail: | |
24405 | return NULL; | |
24406 | } | |
24407 | ||
24408 | ||
c32bde28 | 24409 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24410 | PyObject *resultobj; |
24411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24412 | wxSize result; | |
24413 | PyObject * obj0 = 0 ; | |
24414 | char *kwnames[] = { | |
24415 | (char *) "self", NULL | |
24416 | }; | |
24417 | ||
24418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24421 | { |
24422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24423 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24424 | ||
24425 | wxPyEndAllowThreads(__tstate); | |
24426 | if (PyErr_Occurred()) SWIG_fail; | |
24427 | } | |
24428 | { | |
24429 | wxSize * resultptr; | |
24430 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 24431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24432 | } |
24433 | return resultobj; | |
24434 | fail: | |
24435 | return NULL; | |
24436 | } | |
24437 | ||
24438 | ||
c32bde28 | 24439 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24440 | PyObject *resultobj; |
24441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24442 | int *arg2 = (int *) 0 ; | |
24443 | int *arg3 = (int *) 0 ; | |
24444 | int temp2 ; | |
c32bde28 | 24445 | int res2 = 0 ; |
d14a1e28 | 24446 | int temp3 ; |
c32bde28 | 24447 | int res3 = 0 ; |
d14a1e28 RD |
24448 | PyObject * obj0 = 0 ; |
24449 | char *kwnames[] = { | |
24450 | (char *) "self", NULL | |
24451 | }; | |
24452 | ||
c32bde28 RD |
24453 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24454 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 24455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24458 | { |
24459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24460 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24461 | ||
24462 | wxPyEndAllowThreads(__tstate); | |
24463 | if (PyErr_Occurred()) SWIG_fail; | |
24464 | } | |
24465 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
24466 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24467 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24468 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24469 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
24470 | return resultobj; |
24471 | fail: | |
24472 | return NULL; | |
24473 | } | |
24474 | ||
24475 | ||
c32bde28 | 24476 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24477 | PyObject *resultobj; |
24478 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24479 | wxSize result; | |
24480 | PyObject * obj0 = 0 ; | |
24481 | char *kwnames[] = { | |
24482 | (char *) "self", NULL | |
24483 | }; | |
24484 | ||
24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24488 | { |
24489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24490 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24491 | ||
24492 | wxPyEndAllowThreads(__tstate); | |
24493 | if (PyErr_Occurred()) SWIG_fail; | |
24494 | } | |
24495 | { | |
24496 | wxSize * resultptr; | |
24497 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 24498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24499 | } |
24500 | return resultobj; | |
24501 | fail: | |
24502 | return NULL; | |
24503 | } | |
24504 | ||
24505 | ||
c32bde28 | 24506 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24507 | PyObject *resultobj; |
24508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24509 | bool arg2 = (bool) true ; |
d14a1e28 RD |
24510 | bool result; |
24511 | PyObject * obj0 = 0 ; | |
24512 | PyObject * obj1 = 0 ; | |
24513 | char *kwnames[] = { | |
24514 | (char *) "self",(char *) "show", NULL | |
24515 | }; | |
24516 | ||
24517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24520 | if (obj1) { |
c32bde28 | 24521 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 24522 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24523 | } |
24524 | { | |
24525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24526 | result = (bool)(arg1)->Show(arg2); | |
24527 | ||
24528 | wxPyEndAllowThreads(__tstate); | |
24529 | if (PyErr_Occurred()) SWIG_fail; | |
24530 | } | |
4f89f6a3 RD |
24531 | { |
24532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24533 | } | |
d14a1e28 RD |
24534 | return resultobj; |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
c32bde28 | 24540 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24541 | PyObject *resultobj; |
24542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24543 | bool result; | |
24544 | PyObject * obj0 = 0 ; | |
24545 | char *kwnames[] = { | |
24546 | (char *) "self", NULL | |
24547 | }; | |
24548 | ||
24549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24552 | { |
24553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24554 | result = (bool)(arg1)->Hide(); | |
24555 | ||
24556 | wxPyEndAllowThreads(__tstate); | |
24557 | if (PyErr_Occurred()) SWIG_fail; | |
24558 | } | |
4f89f6a3 RD |
24559 | { |
24560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24561 | } | |
d14a1e28 RD |
24562 | return resultobj; |
24563 | fail: | |
24564 | return NULL; | |
24565 | } | |
24566 | ||
24567 | ||
c32bde28 | 24568 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24569 | PyObject *resultobj; |
24570 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24571 | bool arg2 = (bool) true ; |
d14a1e28 RD |
24572 | bool result; |
24573 | PyObject * obj0 = 0 ; | |
24574 | PyObject * obj1 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "self",(char *) "enable", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24582 | if (obj1) { |
c32bde28 | 24583 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 24584 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24585 | } |
24586 | { | |
24587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24588 | result = (bool)(arg1)->Enable(arg2); | |
24589 | ||
24590 | wxPyEndAllowThreads(__tstate); | |
24591 | if (PyErr_Occurred()) SWIG_fail; | |
24592 | } | |
4f89f6a3 RD |
24593 | { |
24594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24595 | } | |
d14a1e28 RD |
24596 | return resultobj; |
24597 | fail: | |
24598 | return NULL; | |
24599 | } | |
24600 | ||
24601 | ||
c32bde28 | 24602 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24603 | PyObject *resultobj; |
24604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24605 | bool result; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | char *kwnames[] = { | |
24608 | (char *) "self", NULL | |
24609 | }; | |
24610 | ||
24611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24614 | { |
24615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24616 | result = (bool)(arg1)->Disable(); | |
24617 | ||
24618 | wxPyEndAllowThreads(__tstate); | |
24619 | if (PyErr_Occurred()) SWIG_fail; | |
24620 | } | |
4f89f6a3 RD |
24621 | { |
24622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24623 | } | |
d14a1e28 RD |
24624 | return resultobj; |
24625 | fail: | |
24626 | return NULL; | |
24627 | } | |
24628 | ||
24629 | ||
c32bde28 | 24630 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24631 | PyObject *resultobj; |
24632 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24633 | bool result; | |
24634 | PyObject * obj0 = 0 ; | |
24635 | char *kwnames[] = { | |
24636 | (char *) "self", NULL | |
24637 | }; | |
24638 | ||
24639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24642 | { |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24645 | ||
24646 | wxPyEndAllowThreads(__tstate); | |
24647 | if (PyErr_Occurred()) SWIG_fail; | |
24648 | } | |
4f89f6a3 RD |
24649 | { |
24650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24651 | } | |
d14a1e28 RD |
24652 | return resultobj; |
24653 | fail: | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
c32bde28 | 24658 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24659 | PyObject *resultobj; |
24660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24661 | bool result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | char *kwnames[] = { | |
24664 | (char *) "self", NULL | |
24665 | }; | |
24666 | ||
24667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24670 | { |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
4f89f6a3 RD |
24677 | { |
24678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24679 | } | |
d14a1e28 RD |
24680 | return resultobj; |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
c32bde28 | 24686 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24687 | PyObject *resultobj; |
24688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24689 | long arg2 ; | |
24690 | PyObject * obj0 = 0 ; | |
994141e6 | 24691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24692 | char *kwnames[] = { |
24693 | (char *) "self",(char *) "style", NULL | |
24694 | }; | |
24695 | ||
994141e6 | 24696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24699 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24700 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24701 | { |
24702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24703 | (arg1)->SetWindowStyleFlag(arg2); | |
24704 | ||
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | Py_INCREF(Py_None); resultobj = Py_None; | |
24709 | return resultobj; | |
24710 | fail: | |
24711 | return NULL; | |
24712 | } | |
24713 | ||
24714 | ||
c32bde28 | 24715 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24716 | PyObject *resultobj; |
24717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24718 | long result; | |
24719 | PyObject * obj0 = 0 ; | |
24720 | char *kwnames[] = { | |
24721 | (char *) "self", NULL | |
24722 | }; | |
24723 | ||
24724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24727 | { |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24730 | ||
24731 | wxPyEndAllowThreads(__tstate); | |
24732 | if (PyErr_Occurred()) SWIG_fail; | |
24733 | } | |
c32bde28 | 24734 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24735 | return resultobj; |
24736 | fail: | |
24737 | return NULL; | |
24738 | } | |
24739 | ||
24740 | ||
c32bde28 | 24741 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24742 | PyObject *resultobj; |
24743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24744 | int arg2 ; | |
24745 | bool result; | |
24746 | PyObject * obj0 = 0 ; | |
994141e6 | 24747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24748 | char *kwnames[] = { |
24749 | (char *) "self",(char *) "flag", NULL | |
24750 | }; | |
24751 | ||
994141e6 | 24752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24755 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24756 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24757 | { |
24758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24759 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
4f89f6a3 RD |
24764 | { |
24765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24766 | } | |
d14a1e28 RD |
24767 | return resultobj; |
24768 | fail: | |
24769 | return NULL; | |
24770 | } | |
24771 | ||
24772 | ||
c32bde28 | 24773 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24774 | PyObject *resultobj; |
24775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24776 | bool result; | |
24777 | PyObject * obj0 = 0 ; | |
24778 | char *kwnames[] = { | |
24779 | (char *) "self", NULL | |
24780 | }; | |
24781 | ||
24782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24785 | { |
24786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24787 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24788 | ||
24789 | wxPyEndAllowThreads(__tstate); | |
24790 | if (PyErr_Occurred()) SWIG_fail; | |
24791 | } | |
4f89f6a3 RD |
24792 | { |
24793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24794 | } | |
d14a1e28 RD |
24795 | return resultobj; |
24796 | fail: | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
c32bde28 | 24801 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24802 | PyObject *resultobj; |
24803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24804 | long arg2 ; | |
24805 | PyObject * obj0 = 0 ; | |
994141e6 | 24806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24807 | char *kwnames[] = { |
24808 | (char *) "self",(char *) "exStyle", NULL | |
24809 | }; | |
24810 | ||
994141e6 | 24811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24814 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24816 | { |
24817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24818 | (arg1)->SetExtraStyle(arg2); | |
24819 | ||
24820 | wxPyEndAllowThreads(__tstate); | |
24821 | if (PyErr_Occurred()) SWIG_fail; | |
24822 | } | |
24823 | Py_INCREF(Py_None); resultobj = Py_None; | |
24824 | return resultobj; | |
24825 | fail: | |
24826 | return NULL; | |
24827 | } | |
24828 | ||
24829 | ||
c32bde28 | 24830 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24831 | PyObject *resultobj; |
24832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24833 | long result; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | char *kwnames[] = { | |
24836 | (char *) "self", NULL | |
24837 | }; | |
24838 | ||
24839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24842 | { |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24845 | ||
24846 | wxPyEndAllowThreads(__tstate); | |
24847 | if (PyErr_Occurred()) SWIG_fail; | |
24848 | } | |
c32bde28 | 24849 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24850 | return resultobj; |
24851 | fail: | |
24852 | return NULL; | |
24853 | } | |
24854 | ||
24855 | ||
c32bde28 | 24856 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24857 | PyObject *resultobj; |
24858 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24859 | bool arg2 = (bool) true ; |
d14a1e28 RD |
24860 | PyObject * obj0 = 0 ; |
24861 | PyObject * obj1 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self",(char *) "modal", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24869 | if (obj1) { |
c32bde28 | 24870 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 24871 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24872 | } |
24873 | { | |
24874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24875 | (arg1)->MakeModal(arg2); | |
24876 | ||
24877 | wxPyEndAllowThreads(__tstate); | |
24878 | if (PyErr_Occurred()) SWIG_fail; | |
24879 | } | |
24880 | Py_INCREF(Py_None); resultobj = Py_None; | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
c32bde28 | 24887 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24888 | PyObject *resultobj; |
24889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24890 | bool arg2 ; | |
24891 | PyObject * obj0 = 0 ; | |
24892 | PyObject * obj1 = 0 ; | |
24893 | char *kwnames[] = { | |
24894 | (char *) "self",(char *) "enableTheme", NULL | |
24895 | }; | |
24896 | ||
24897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24900 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 24901 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24902 | { |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | (arg1)->SetThemeEnabled(arg2); | |
24905 | ||
24906 | wxPyEndAllowThreads(__tstate); | |
24907 | if (PyErr_Occurred()) SWIG_fail; | |
24908 | } | |
24909 | Py_INCREF(Py_None); resultobj = Py_None; | |
24910 | return resultobj; | |
24911 | fail: | |
24912 | return NULL; | |
24913 | } | |
24914 | ||
24915 | ||
c32bde28 | 24916 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24917 | PyObject *resultobj; |
24918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24919 | bool result; | |
24920 | PyObject * obj0 = 0 ; | |
24921 | char *kwnames[] = { | |
24922 | (char *) "self", NULL | |
24923 | }; | |
24924 | ||
24925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24928 | { |
24929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24930 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24931 | ||
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
4f89f6a3 RD |
24935 | { |
24936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24937 | } | |
d14a1e28 RD |
24938 | return resultobj; |
24939 | fail: | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
c32bde28 | 24944 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24945 | PyObject *resultobj; |
24946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24947 | PyObject * obj0 = 0 ; | |
24948 | char *kwnames[] = { | |
24949 | (char *) "self", NULL | |
24950 | }; | |
24951 | ||
24952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24955 | { |
24956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24957 | (arg1)->SetFocus(); | |
24958 | ||
24959 | wxPyEndAllowThreads(__tstate); | |
24960 | if (PyErr_Occurred()) SWIG_fail; | |
24961 | } | |
24962 | Py_INCREF(Py_None); resultobj = Py_None; | |
24963 | return resultobj; | |
24964 | fail: | |
24965 | return NULL; | |
24966 | } | |
24967 | ||
24968 | ||
c32bde28 | 24969 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24970 | PyObject *resultobj; |
24971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24972 | PyObject * obj0 = 0 ; | |
24973 | char *kwnames[] = { | |
24974 | (char *) "self", NULL | |
24975 | }; | |
24976 | ||
24977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24980 | { |
24981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24982 | (arg1)->SetFocusFromKbd(); | |
24983 | ||
24984 | wxPyEndAllowThreads(__tstate); | |
24985 | if (PyErr_Occurred()) SWIG_fail; | |
24986 | } | |
24987 | Py_INCREF(Py_None); resultobj = Py_None; | |
24988 | return resultobj; | |
24989 | fail: | |
24990 | return NULL; | |
24991 | } | |
24992 | ||
24993 | ||
c32bde28 | 24994 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24995 | PyObject *resultobj; |
24996 | wxWindow *result; | |
24997 | char *kwnames[] = { | |
24998 | NULL | |
24999 | }; | |
25000 | ||
25001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
25002 | { | |
e3b71cb8 | 25003 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25005 | result = (wxWindow *)wxWindow::FindFocus(); | |
25006 | ||
25007 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25008 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25009 | } |
25010 | { | |
412d302d | 25011 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25012 | } |
25013 | return resultobj; | |
25014 | fail: | |
25015 | return NULL; | |
25016 | } | |
25017 | ||
25018 | ||
c32bde28 | 25019 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25020 | PyObject *resultobj; |
25021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25022 | bool result; | |
25023 | PyObject * obj0 = 0 ; | |
25024 | char *kwnames[] = { | |
25025 | (char *) "self", NULL | |
25026 | }; | |
25027 | ||
25028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25031 | { |
25032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25033 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
25034 | ||
25035 | wxPyEndAllowThreads(__tstate); | |
25036 | if (PyErr_Occurred()) SWIG_fail; | |
25037 | } | |
4f89f6a3 RD |
25038 | { |
25039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25040 | } | |
d14a1e28 RD |
25041 | return resultobj; |
25042 | fail: | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
c32bde28 | 25047 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25048 | PyObject *resultobj; |
25049 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25050 | bool result; | |
25051 | PyObject * obj0 = 0 ; | |
25052 | char *kwnames[] = { | |
25053 | (char *) "self", NULL | |
25054 | }; | |
25055 | ||
25056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25059 | { |
25060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25061 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
25062 | ||
25063 | wxPyEndAllowThreads(__tstate); | |
25064 | if (PyErr_Occurred()) SWIG_fail; | |
25065 | } | |
4f89f6a3 RD |
25066 | { |
25067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25068 | } | |
d14a1e28 RD |
25069 | return resultobj; |
25070 | fail: | |
25071 | return NULL; | |
25072 | } | |
25073 | ||
25074 | ||
c32bde28 | 25075 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25076 | PyObject *resultobj; |
25077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25078 | wxWindow *result; | |
25079 | PyObject * obj0 = 0 ; | |
25080 | char *kwnames[] = { | |
25081 | (char *) "self", NULL | |
25082 | }; | |
25083 | ||
25084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25087 | { |
25088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25089 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
25090 | ||
25091 | wxPyEndAllowThreads(__tstate); | |
25092 | if (PyErr_Occurred()) SWIG_fail; | |
25093 | } | |
25094 | { | |
412d302d | 25095 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25096 | } |
25097 | return resultobj; | |
25098 | fail: | |
25099 | return NULL; | |
25100 | } | |
25101 | ||
25102 | ||
c32bde28 | 25103 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25104 | PyObject *resultobj; |
25105 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25106 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25107 | wxWindow *result; | |
25108 | PyObject * obj0 = 0 ; | |
25109 | PyObject * obj1 = 0 ; | |
25110 | char *kwnames[] = { | |
25111 | (char *) "self",(char *) "child", NULL | |
25112 | }; | |
25113 | ||
25114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25119 | { |
25120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25121 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
25122 | ||
25123 | wxPyEndAllowThreads(__tstate); | |
25124 | if (PyErr_Occurred()) SWIG_fail; | |
25125 | } | |
25126 | { | |
412d302d | 25127 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25128 | } |
25129 | return resultobj; | |
25130 | fail: | |
25131 | return NULL; | |
25132 | } | |
25133 | ||
25134 | ||
c32bde28 | 25135 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25136 | PyObject *resultobj; |
25137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25138 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25139 | PyObject * obj0 = 0 ; | |
25140 | PyObject * obj1 = 0 ; | |
25141 | char *kwnames[] = { | |
25142 | (char *) "self",(char *) "win", NULL | |
25143 | }; | |
25144 | ||
25145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25150 | { |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | (arg1)->SetTmpDefaultItem(arg2); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
25157 | Py_INCREF(Py_None); resultobj = Py_None; | |
25158 | return resultobj; | |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
c32bde28 | 25164 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
25165 | PyObject *resultobj; |
25166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25167 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25168 | bool result; | |
25169 | PyObject * obj0 = 0 ; | |
25170 | PyObject * obj1 = 0 ; | |
25171 | char *kwnames[] = { | |
25172 | (char *) "self",(char *) "flags", NULL | |
25173 | }; | |
25174 | ||
25175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25178 | if (obj1) { | |
c32bde28 | 25179 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25180 | if (PyErr_Occurred()) SWIG_fail; |
25181 | } | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (bool)(arg1)->Navigate(arg2); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | { | |
25190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25191 | } | |
25192 | return resultobj; | |
25193 | fail: | |
25194 | return NULL; | |
25195 | } | |
25196 | ||
25197 | ||
c32bde28 | 25198 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
7f98d120 RD |
25199 | PyObject *resultobj; |
25200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25201 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25202 | PyObject * obj0 = 0 ; | |
25203 | PyObject * obj1 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "self",(char *) "win", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25213 | { | |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | (arg1)->MoveAfterInTabOrder(arg2); | |
25216 | ||
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | Py_INCREF(Py_None); resultobj = Py_None; | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
c32bde28 | 25227 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
7f98d120 RD |
25228 | PyObject *resultobj; |
25229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25230 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25231 | PyObject * obj0 = 0 ; | |
25232 | PyObject * obj1 = 0 ; | |
25233 | char *kwnames[] = { | |
25234 | (char *) "self",(char *) "win", NULL | |
25235 | }; | |
25236 | ||
25237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25242 | { | |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25245 | ||
25246 | wxPyEndAllowThreads(__tstate); | |
25247 | if (PyErr_Occurred()) SWIG_fail; | |
25248 | } | |
25249 | Py_INCREF(Py_None); resultobj = Py_None; | |
25250 | return resultobj; | |
25251 | fail: | |
25252 | return NULL; | |
25253 | } | |
25254 | ||
25255 | ||
c32bde28 | 25256 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25257 | PyObject *resultobj; |
25258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25259 | PyObject *result; | |
25260 | PyObject * obj0 = 0 ; | |
25261 | char *kwnames[] = { | |
25262 | (char *) "self", NULL | |
25263 | }; | |
25264 | ||
25265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25268 | { |
25269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25270 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25271 | ||
25272 | wxPyEndAllowThreads(__tstate); | |
25273 | if (PyErr_Occurred()) SWIG_fail; | |
25274 | } | |
25275 | resultobj = result; | |
25276 | return resultobj; | |
25277 | fail: | |
25278 | return NULL; | |
25279 | } | |
25280 | ||
25281 | ||
c32bde28 | 25282 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25283 | PyObject *resultobj; |
25284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25285 | wxWindow *result; | |
25286 | PyObject * obj0 = 0 ; | |
25287 | char *kwnames[] = { | |
25288 | (char *) "self", NULL | |
25289 | }; | |
25290 | ||
25291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25294 | { |
25295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25296 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25297 | ||
25298 | wxPyEndAllowThreads(__tstate); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
25300 | } | |
25301 | { | |
412d302d | 25302 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25303 | } |
25304 | return resultobj; | |
25305 | fail: | |
25306 | return NULL; | |
25307 | } | |
25308 | ||
25309 | ||
c32bde28 | 25310 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25311 | PyObject *resultobj; |
25312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25313 | wxWindow *result; | |
25314 | PyObject * obj0 = 0 ; | |
25315 | char *kwnames[] = { | |
25316 | (char *) "self", NULL | |
25317 | }; | |
25318 | ||
25319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25322 | { |
25323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25324 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25325 | ||
25326 | wxPyEndAllowThreads(__tstate); | |
25327 | if (PyErr_Occurred()) SWIG_fail; | |
25328 | } | |
25329 | { | |
412d302d | 25330 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25331 | } |
25332 | return resultobj; | |
25333 | fail: | |
25334 | return NULL; | |
25335 | } | |
25336 | ||
25337 | ||
c32bde28 | 25338 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25339 | PyObject *resultobj; |
25340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25341 | bool result; | |
25342 | PyObject * obj0 = 0 ; | |
25343 | char *kwnames[] = { | |
25344 | (char *) "self", NULL | |
25345 | }; | |
25346 | ||
25347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25350 | { |
25351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25352 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25353 | ||
25354 | wxPyEndAllowThreads(__tstate); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
4f89f6a3 RD |
25357 | { |
25358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25359 | } | |
d14a1e28 RD |
25360 | return resultobj; |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
c32bde28 | 25366 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25367 | PyObject *resultobj; |
25368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25369 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25370 | bool result; | |
25371 | PyObject * obj0 = 0 ; | |
25372 | PyObject * obj1 = 0 ; | |
25373 | char *kwnames[] = { | |
25374 | (char *) "self",(char *) "newParent", NULL | |
25375 | }; | |
25376 | ||
25377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25382 | { |
25383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25384 | result = (bool)(arg1)->Reparent(arg2); | |
25385 | ||
25386 | wxPyEndAllowThreads(__tstate); | |
25387 | if (PyErr_Occurred()) SWIG_fail; | |
25388 | } | |
4f89f6a3 RD |
25389 | { |
25390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25391 | } | |
d14a1e28 RD |
25392 | return resultobj; |
25393 | fail: | |
25394 | return NULL; | |
25395 | } | |
25396 | ||
25397 | ||
c32bde28 | 25398 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25399 | PyObject *resultobj; |
25400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25401 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25402 | PyObject * obj0 = 0 ; | |
25403 | PyObject * obj1 = 0 ; | |
25404 | char *kwnames[] = { | |
25405 | (char *) "self",(char *) "child", NULL | |
25406 | }; | |
25407 | ||
25408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25413 | { |
25414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25415 | (arg1)->AddChild(arg2); | |
25416 | ||
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | Py_INCREF(Py_None); resultobj = Py_None; | |
25421 | return resultobj; | |
25422 | fail: | |
25423 | return NULL; | |
25424 | } | |
25425 | ||
25426 | ||
c32bde28 | 25427 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25428 | PyObject *resultobj; |
25429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25431 | PyObject * obj0 = 0 ; | |
25432 | PyObject * obj1 = 0 ; | |
25433 | char *kwnames[] = { | |
25434 | (char *) "self",(char *) "child", NULL | |
25435 | }; | |
25436 | ||
25437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25442 | { |
25443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25444 | (arg1)->RemoveChild(arg2); | |
25445 | ||
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
25449 | Py_INCREF(Py_None); resultobj = Py_None; | |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
c32bde28 | 25456 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25457 | PyObject *resultobj; |
25458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25459 | long arg2 ; | |
25460 | wxWindow *result; | |
25461 | PyObject * obj0 = 0 ; | |
994141e6 | 25462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25463 | char *kwnames[] = { |
25464 | (char *) "self",(char *) "winid", NULL | |
25465 | }; | |
25466 | ||
994141e6 | 25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25470 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 25471 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25472 | { |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | { | |
412d302d | 25480 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25481 | } |
25482 | return resultobj; | |
25483 | fail: | |
25484 | return NULL; | |
25485 | } | |
25486 | ||
25487 | ||
c32bde28 | 25488 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25489 | PyObject *resultobj; |
25490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25491 | wxString *arg2 = 0 ; | |
25492 | wxWindow *result; | |
ae8162c8 | 25493 | bool temp2 = false ; |
d14a1e28 RD |
25494 | PyObject * obj0 = 0 ; |
25495 | PyObject * obj1 = 0 ; | |
25496 | char *kwnames[] = { | |
25497 | (char *) "self",(char *) "name", NULL | |
25498 | }; | |
25499 | ||
25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25503 | { |
25504 | arg2 = wxString_in_helper(obj1); | |
25505 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25506 | temp2 = true; |
d14a1e28 RD |
25507 | } |
25508 | { | |
25509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25510 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25511 | ||
25512 | wxPyEndAllowThreads(__tstate); | |
25513 | if (PyErr_Occurred()) SWIG_fail; | |
25514 | } | |
25515 | { | |
412d302d | 25516 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25517 | } |
25518 | { | |
25519 | if (temp2) | |
25520 | delete arg2; | |
25521 | } | |
25522 | return resultobj; | |
25523 | fail: | |
25524 | { | |
25525 | if (temp2) | |
25526 | delete arg2; | |
25527 | } | |
25528 | return NULL; | |
25529 | } | |
25530 | ||
25531 | ||
c32bde28 | 25532 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25533 | PyObject *resultobj; |
25534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25535 | wxEvtHandler *result; | |
25536 | PyObject * obj0 = 0 ; | |
25537 | char *kwnames[] = { | |
25538 | (char *) "self", NULL | |
25539 | }; | |
25540 | ||
25541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25544 | { |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25547 | ||
25548 | wxPyEndAllowThreads(__tstate); | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | } | |
25551 | { | |
412d302d | 25552 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25553 | } |
25554 | return resultobj; | |
25555 | fail: | |
25556 | return NULL; | |
25557 | } | |
25558 | ||
25559 | ||
c32bde28 | 25560 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25561 | PyObject *resultobj; |
25562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25563 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25564 | PyObject * obj0 = 0 ; | |
25565 | PyObject * obj1 = 0 ; | |
25566 | char *kwnames[] = { | |
25567 | (char *) "self",(char *) "handler", NULL | |
25568 | }; | |
25569 | ||
25570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25575 | { |
25576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25577 | (arg1)->SetEventHandler(arg2); | |
25578 | ||
25579 | wxPyEndAllowThreads(__tstate); | |
25580 | if (PyErr_Occurred()) SWIG_fail; | |
25581 | } | |
25582 | Py_INCREF(Py_None); resultobj = Py_None; | |
25583 | return resultobj; | |
25584 | fail: | |
25585 | return NULL; | |
25586 | } | |
25587 | ||
25588 | ||
c32bde28 | 25589 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25590 | PyObject *resultobj; |
25591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25592 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25593 | PyObject * obj0 = 0 ; | |
25594 | PyObject * obj1 = 0 ; | |
25595 | char *kwnames[] = { | |
25596 | (char *) "self",(char *) "handler", NULL | |
25597 | }; | |
25598 | ||
25599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25604 | { |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | (arg1)->PushEventHandler(arg2); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | Py_INCREF(Py_None); resultobj = Py_None; | |
25612 | return resultobj; | |
25613 | fail: | |
25614 | return NULL; | |
25615 | } | |
25616 | ||
25617 | ||
c32bde28 | 25618 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25619 | PyObject *resultobj; |
25620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25621 | bool arg2 = (bool) false ; |
d14a1e28 RD |
25622 | wxEvtHandler *result; |
25623 | PyObject * obj0 = 0 ; | |
25624 | PyObject * obj1 = 0 ; | |
25625 | char *kwnames[] = { | |
25626 | (char *) "self",(char *) "deleteHandler", NULL | |
25627 | }; | |
25628 | ||
25629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25632 | if (obj1) { |
c32bde28 | 25633 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 25634 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25635 | } |
25636 | { | |
25637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25638 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25639 | ||
25640 | wxPyEndAllowThreads(__tstate); | |
25641 | if (PyErr_Occurred()) SWIG_fail; | |
25642 | } | |
25643 | { | |
412d302d | 25644 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25645 | } |
25646 | return resultobj; | |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
c32bde28 | 25652 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25653 | PyObject *resultobj; |
25654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25655 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25656 | bool result; | |
25657 | PyObject * obj0 = 0 ; | |
25658 | PyObject * obj1 = 0 ; | |
25659 | char *kwnames[] = { | |
25660 | (char *) "self",(char *) "handler", NULL | |
25661 | }; | |
25662 | ||
25663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25668 | { |
25669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25670 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25671 | ||
25672 | wxPyEndAllowThreads(__tstate); | |
25673 | if (PyErr_Occurred()) SWIG_fail; | |
25674 | } | |
4f89f6a3 RD |
25675 | { |
25676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25677 | } | |
d14a1e28 RD |
25678 | return resultobj; |
25679 | fail: | |
25680 | return NULL; | |
25681 | } | |
25682 | ||
25683 | ||
c32bde28 | 25684 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25685 | PyObject *resultobj; |
25686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25687 | wxValidator *arg2 = 0 ; | |
25688 | PyObject * obj0 = 0 ; | |
25689 | PyObject * obj1 = 0 ; | |
25690 | char *kwnames[] = { | |
25691 | (char *) "self",(char *) "validator", NULL | |
25692 | }; | |
25693 | ||
25694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25697 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25698 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25699 | SWIG_fail; | |
d14a1e28 | 25700 | if (arg2 == NULL) { |
15afbcd0 RD |
25701 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25702 | SWIG_fail; | |
d14a1e28 RD |
25703 | } |
25704 | { | |
25705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25706 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25707 | ||
25708 | wxPyEndAllowThreads(__tstate); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | } | |
25711 | Py_INCREF(Py_None); resultobj = Py_None; | |
25712 | return resultobj; | |
25713 | fail: | |
25714 | return NULL; | |
25715 | } | |
25716 | ||
25717 | ||
c32bde28 | 25718 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25719 | PyObject *resultobj; |
25720 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25721 | wxValidator *result; | |
25722 | PyObject * obj0 = 0 ; | |
25723 | char *kwnames[] = { | |
25724 | (char *) "self", NULL | |
25725 | }; | |
25726 | ||
25727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25730 | { |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25732 | result = (wxValidator *)(arg1)->GetValidator(); | |
25733 | ||
25734 | wxPyEndAllowThreads(__tstate); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
25737 | { | |
412d302d | 25738 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25739 | } |
25740 | return resultobj; | |
25741 | fail: | |
25742 | return NULL; | |
25743 | } | |
25744 | ||
25745 | ||
c32bde28 | 25746 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
25747 | PyObject *resultobj; |
25748 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25749 | bool result; | |
25750 | PyObject * obj0 = 0 ; | |
25751 | char *kwnames[] = { | |
25752 | (char *) "self", NULL | |
25753 | }; | |
25754 | ||
25755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25758 | { | |
25759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25760 | result = (bool)(arg1)->Validate(); | |
25761 | ||
25762 | wxPyEndAllowThreads(__tstate); | |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
25764 | } | |
25765 | { | |
25766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25767 | } | |
25768 | return resultobj; | |
25769 | fail: | |
25770 | return NULL; | |
25771 | } | |
25772 | ||
25773 | ||
c32bde28 | 25774 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
25775 | PyObject *resultobj; |
25776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25777 | bool result; | |
25778 | PyObject * obj0 = 0 ; | |
25779 | char *kwnames[] = { | |
25780 | (char *) "self", NULL | |
25781 | }; | |
25782 | ||
25783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25786 | { | |
25787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25788 | result = (bool)(arg1)->TransferDataToWindow(); | |
25789 | ||
25790 | wxPyEndAllowThreads(__tstate); | |
25791 | if (PyErr_Occurred()) SWIG_fail; | |
25792 | } | |
25793 | { | |
25794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25795 | } | |
25796 | return resultobj; | |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
c32bde28 | 25802 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
25803 | PyObject *resultobj; |
25804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25805 | bool result; | |
25806 | PyObject * obj0 = 0 ; | |
25807 | char *kwnames[] = { | |
25808 | (char *) "self", NULL | |
25809 | }; | |
25810 | ||
25811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
25821 | { | |
25822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25823 | } | |
25824 | return resultobj; | |
25825 | fail: | |
25826 | return NULL; | |
25827 | } | |
25828 | ||
25829 | ||
c32bde28 | 25830 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
25831 | PyObject *resultobj; |
25832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25833 | PyObject * obj0 = 0 ; | |
25834 | char *kwnames[] = { | |
25835 | (char *) "self", NULL | |
25836 | }; | |
25837 | ||
25838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25841 | { | |
25842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25843 | (arg1)->InitDialog(); | |
25844 | ||
25845 | wxPyEndAllowThreads(__tstate); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
25847 | } | |
25848 | Py_INCREF(Py_None); resultobj = Py_None; | |
25849 | return resultobj; | |
25850 | fail: | |
25851 | return NULL; | |
25852 | } | |
25853 | ||
25854 | ||
c32bde28 | 25855 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25856 | PyObject *resultobj; |
25857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25858 | wxAcceleratorTable *arg2 = 0 ; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | PyObject * obj1 = 0 ; | |
25861 | char *kwnames[] = { | |
25862 | (char *) "self",(char *) "accel", NULL | |
25863 | }; | |
25864 | ||
25865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25870 | SWIG_fail; | |
d14a1e28 | 25871 | if (arg2 == NULL) { |
15afbcd0 RD |
25872 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25873 | SWIG_fail; | |
d14a1e28 RD |
25874 | } |
25875 | { | |
25876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25877 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25878 | ||
25879 | wxPyEndAllowThreads(__tstate); | |
25880 | if (PyErr_Occurred()) SWIG_fail; | |
25881 | } | |
25882 | Py_INCREF(Py_None); resultobj = Py_None; | |
25883 | return resultobj; | |
25884 | fail: | |
25885 | return NULL; | |
25886 | } | |
25887 | ||
25888 | ||
c32bde28 | 25889 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25890 | PyObject *resultobj; |
25891 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25892 | wxAcceleratorTable *result; | |
25893 | PyObject * obj0 = 0 ; | |
25894 | char *kwnames[] = { | |
25895 | (char *) "self", NULL | |
25896 | }; | |
25897 | ||
25898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25901 | { |
25902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25903 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25904 | ||
25905 | wxPyEndAllowThreads(__tstate); | |
25906 | if (PyErr_Occurred()) SWIG_fail; | |
25907 | } | |
15afbcd0 | 25908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
25909 | return resultobj; |
25910 | fail: | |
25911 | return NULL; | |
25912 | } | |
25913 | ||
25914 | ||
c32bde28 | 25915 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25916 | PyObject *resultobj; |
25917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25918 | int arg2 ; | |
25919 | int arg3 ; | |
25920 | int arg4 ; | |
25921 | bool result; | |
25922 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25923 | PyObject * obj1 = 0 ; |
25924 | PyObject * obj2 = 0 ; | |
25925 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25926 | char *kwnames[] = { |
25927 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25928 | }; | |
25929 | ||
994141e6 | 25930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25933 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25934 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25935 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25936 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25937 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 25938 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25939 | { |
25940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25941 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25942 | ||
25943 | wxPyEndAllowThreads(__tstate); | |
25944 | if (PyErr_Occurred()) SWIG_fail; | |
25945 | } | |
4f89f6a3 RD |
25946 | { |
25947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25948 | } | |
d14a1e28 RD |
25949 | return resultobj; |
25950 | fail: | |
25951 | return NULL; | |
25952 | } | |
25953 | ||
25954 | ||
c32bde28 | 25955 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25956 | PyObject *resultobj; |
25957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25958 | int arg2 ; | |
25959 | bool result; | |
25960 | PyObject * obj0 = 0 ; | |
994141e6 | 25961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25962 | char *kwnames[] = { |
25963 | (char *) "self",(char *) "hotkeyId", NULL | |
25964 | }; | |
25965 | ||
994141e6 | 25966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25969 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25970 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25971 | { |
25972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25973 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25974 | ||
25975 | wxPyEndAllowThreads(__tstate); | |
25976 | if (PyErr_Occurred()) SWIG_fail; | |
25977 | } | |
4f89f6a3 RD |
25978 | { |
25979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25980 | } | |
d14a1e28 RD |
25981 | return resultobj; |
25982 | fail: | |
25983 | return NULL; | |
25984 | } | |
25985 | ||
25986 | ||
c32bde28 | 25987 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25988 | PyObject *resultobj; |
25989 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25990 | wxPoint *arg2 = 0 ; | |
25991 | wxPoint result; | |
25992 | wxPoint temp2 ; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | PyObject * obj1 = 0 ; | |
25995 | char *kwnames[] = { | |
25996 | (char *) "self",(char *) "pt", NULL | |
25997 | }; | |
25998 | ||
25999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26002 | { |
26003 | arg2 = &temp2; | |
26004 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26005 | } | |
26006 | { | |
26007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26008 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26009 | ||
26010 | wxPyEndAllowThreads(__tstate); | |
26011 | if (PyErr_Occurred()) SWIG_fail; | |
26012 | } | |
26013 | { | |
26014 | wxPoint * resultptr; | |
26015 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26017 | } |
26018 | return resultobj; | |
26019 | fail: | |
26020 | return NULL; | |
26021 | } | |
26022 | ||
26023 | ||
c32bde28 | 26024 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26025 | PyObject *resultobj; |
26026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26027 | wxSize *arg2 = 0 ; | |
26028 | wxSize result; | |
26029 | wxSize temp2 ; | |
26030 | PyObject * obj0 = 0 ; | |
26031 | PyObject * obj1 = 0 ; | |
26032 | char *kwnames[] = { | |
26033 | (char *) "self",(char *) "sz", NULL | |
26034 | }; | |
26035 | ||
26036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26039 | { |
26040 | arg2 = &temp2; | |
26041 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26042 | } | |
26043 | { | |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26046 | ||
26047 | wxPyEndAllowThreads(__tstate); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | } | |
26050 | { | |
26051 | wxSize * resultptr; | |
26052 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 26053 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26054 | } |
26055 | return resultobj; | |
26056 | fail: | |
26057 | return NULL; | |
26058 | } | |
26059 | ||
26060 | ||
c32bde28 | 26061 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26062 | PyObject *resultobj; |
26063 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26064 | wxPoint *arg2 = 0 ; | |
26065 | wxPoint result; | |
26066 | wxPoint temp2 ; | |
26067 | PyObject * obj0 = 0 ; | |
26068 | PyObject * obj1 = 0 ; | |
26069 | char *kwnames[] = { | |
26070 | (char *) "self",(char *) "pt", NULL | |
26071 | }; | |
26072 | ||
26073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26076 | { |
26077 | arg2 = &temp2; | |
26078 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26079 | } | |
26080 | { | |
26081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26082 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26083 | ||
26084 | wxPyEndAllowThreads(__tstate); | |
26085 | if (PyErr_Occurred()) SWIG_fail; | |
26086 | } | |
26087 | { | |
26088 | wxPoint * resultptr; | |
26089 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26091 | } |
26092 | return resultobj; | |
26093 | fail: | |
26094 | return NULL; | |
26095 | } | |
26096 | ||
26097 | ||
c32bde28 | 26098 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26099 | PyObject *resultobj; |
26100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26101 | wxSize *arg2 = 0 ; | |
26102 | wxSize result; | |
26103 | wxSize temp2 ; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | PyObject * obj1 = 0 ; | |
26106 | char *kwnames[] = { | |
26107 | (char *) "self",(char *) "sz", NULL | |
26108 | }; | |
26109 | ||
26110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26113 | { |
26114 | arg2 = &temp2; | |
26115 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26116 | } | |
26117 | { | |
26118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26119 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26120 | ||
26121 | wxPyEndAllowThreads(__tstate); | |
26122 | if (PyErr_Occurred()) SWIG_fail; | |
26123 | } | |
26124 | { | |
26125 | wxSize * resultptr; | |
26126 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 26127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26128 | } |
26129 | return resultobj; | |
26130 | fail: | |
26131 | return NULL; | |
26132 | } | |
26133 | ||
26134 | ||
c32bde28 | 26135 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26136 | PyObject *resultobj; |
26137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26138 | wxPoint *arg2 = 0 ; | |
26139 | wxPoint result; | |
26140 | wxPoint temp2 ; | |
26141 | PyObject * obj0 = 0 ; | |
26142 | PyObject * obj1 = 0 ; | |
26143 | char *kwnames[] = { | |
26144 | (char *) "self",(char *) "pt", NULL | |
26145 | }; | |
26146 | ||
26147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26150 | { |
26151 | arg2 = &temp2; | |
26152 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26153 | } | |
26154 | { | |
26155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26156 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
26157 | ||
26158 | wxPyEndAllowThreads(__tstate); | |
26159 | if (PyErr_Occurred()) SWIG_fail; | |
26160 | } | |
26161 | { | |
26162 | wxPoint * resultptr; | |
26163 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26165 | } |
26166 | return resultobj; | |
26167 | fail: | |
26168 | return NULL; | |
26169 | } | |
26170 | ||
26171 | ||
c32bde28 | 26172 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26173 | PyObject *resultobj; |
26174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26175 | wxSize *arg2 = 0 ; | |
26176 | wxSize result; | |
26177 | wxSize temp2 ; | |
26178 | PyObject * obj0 = 0 ; | |
26179 | PyObject * obj1 = 0 ; | |
26180 | char *kwnames[] = { | |
26181 | (char *) "self",(char *) "sz", NULL | |
26182 | }; | |
26183 | ||
26184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26187 | { |
26188 | arg2 = &temp2; | |
26189 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26190 | } | |
26191 | { | |
26192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26193 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26194 | ||
26195 | wxPyEndAllowThreads(__tstate); | |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
26197 | } | |
26198 | { | |
26199 | wxSize * resultptr; | |
26200 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 26201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26202 | } |
26203 | return resultobj; | |
26204 | fail: | |
26205 | return NULL; | |
26206 | } | |
26207 | ||
26208 | ||
c32bde28 | 26209 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26210 | PyObject *resultobj; |
26211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26212 | int arg2 ; | |
26213 | int arg3 ; | |
26214 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26215 | PyObject * obj1 = 0 ; |
26216 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26217 | char *kwnames[] = { |
26218 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26219 | }; | |
26220 | ||
994141e6 | 26221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26224 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 26225 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26226 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26228 | { |
26229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26230 | (arg1)->WarpPointer(arg2,arg3); | |
26231 | ||
26232 | wxPyEndAllowThreads(__tstate); | |
26233 | if (PyErr_Occurred()) SWIG_fail; | |
26234 | } | |
26235 | Py_INCREF(Py_None); resultobj = Py_None; | |
26236 | return resultobj; | |
26237 | fail: | |
26238 | return NULL; | |
26239 | } | |
26240 | ||
26241 | ||
c32bde28 | 26242 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26243 | PyObject *resultobj; |
26244 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26245 | PyObject * obj0 = 0 ; | |
26246 | char *kwnames[] = { | |
26247 | (char *) "self", NULL | |
26248 | }; | |
26249 | ||
26250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26253 | { |
26254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26255 | (arg1)->CaptureMouse(); | |
26256 | ||
26257 | wxPyEndAllowThreads(__tstate); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | } | |
26260 | Py_INCREF(Py_None); resultobj = Py_None; | |
26261 | return resultobj; | |
26262 | fail: | |
26263 | return NULL; | |
26264 | } | |
26265 | ||
26266 | ||
c32bde28 | 26267 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26268 | PyObject *resultobj; |
26269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26270 | PyObject * obj0 = 0 ; | |
26271 | char *kwnames[] = { | |
26272 | (char *) "self", NULL | |
26273 | }; | |
26274 | ||
26275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26278 | { |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | (arg1)->ReleaseMouse(); | |
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_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26293 | PyObject *resultobj; |
26294 | wxWindow *result; | |
26295 | char *kwnames[] = { | |
26296 | NULL | |
26297 | }; | |
26298 | ||
26299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26300 | { | |
e3b71cb8 | 26301 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26303 | result = (wxWindow *)wxWindow::GetCapture(); | |
26304 | ||
26305 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26306 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26307 | } |
26308 | { | |
412d302d | 26309 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26310 | } |
26311 | return resultobj; | |
26312 | fail: | |
26313 | return NULL; | |
26314 | } | |
26315 | ||
26316 | ||
c32bde28 | 26317 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26318 | PyObject *resultobj; |
26319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26320 | bool result; | |
26321 | PyObject * obj0 = 0 ; | |
26322 | char *kwnames[] = { | |
26323 | (char *) "self", NULL | |
26324 | }; | |
26325 | ||
26326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26329 | { |
26330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26331 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26332 | ||
26333 | wxPyEndAllowThreads(__tstate); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | } | |
4f89f6a3 RD |
26336 | { |
26337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26338 | } | |
d14a1e28 RD |
26339 | return resultobj; |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
c32bde28 | 26345 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26346 | PyObject *resultobj; |
26347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26348 | bool arg2 = (bool) true ; |
d14a1e28 RD |
26349 | wxRect *arg3 = (wxRect *) NULL ; |
26350 | PyObject * obj0 = 0 ; | |
26351 | PyObject * obj1 = 0 ; | |
26352 | PyObject * obj2 = 0 ; | |
26353 | char *kwnames[] = { | |
26354 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26355 | }; | |
26356 | ||
26357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26360 | if (obj1) { |
c32bde28 | 26361 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 26362 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26363 | } |
26364 | if (obj2) { | |
15afbcd0 RD |
26365 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
26366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26367 | } |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
26375 | Py_INCREF(Py_None); resultobj = Py_None; | |
26376 | return resultobj; | |
26377 | fail: | |
26378 | return NULL; | |
26379 | } | |
26380 | ||
26381 | ||
c32bde28 | 26382 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26383 | PyObject *resultobj; |
26384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26385 | wxRect *arg2 = 0 ; | |
26386 | wxRect temp2 ; | |
26387 | PyObject * obj0 = 0 ; | |
26388 | PyObject * obj1 = 0 ; | |
26389 | char *kwnames[] = { | |
26390 | (char *) "self",(char *) "rect", NULL | |
26391 | }; | |
26392 | ||
26393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26396 | { |
26397 | arg2 = &temp2; | |
26398 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26399 | } | |
26400 | { | |
26401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26402 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26403 | ||
26404 | wxPyEndAllowThreads(__tstate); | |
26405 | if (PyErr_Occurred()) SWIG_fail; | |
26406 | } | |
26407 | Py_INCREF(Py_None); resultobj = Py_None; | |
26408 | return resultobj; | |
26409 | fail: | |
26410 | return NULL; | |
26411 | } | |
26412 | ||
26413 | ||
c32bde28 | 26414 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26415 | PyObject *resultobj; |
26416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26417 | PyObject * obj0 = 0 ; | |
26418 | char *kwnames[] = { | |
26419 | (char *) "self", NULL | |
26420 | }; | |
26421 | ||
26422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26425 | { |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | (arg1)->Update(); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | Py_INCREF(Py_None); resultobj = Py_None; | |
26433 | return resultobj; | |
26434 | fail: | |
26435 | return NULL; | |
26436 | } | |
26437 | ||
26438 | ||
c32bde28 | 26439 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26440 | PyObject *resultobj; |
26441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26442 | PyObject * obj0 = 0 ; | |
26443 | char *kwnames[] = { | |
26444 | (char *) "self", NULL | |
26445 | }; | |
26446 | ||
26447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26450 | { |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | (arg1)->ClearBackground(); | |
26453 | ||
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | Py_INCREF(Py_None); resultobj = Py_None; | |
26458 | return resultobj; | |
26459 | fail: | |
26460 | return NULL; | |
26461 | } | |
26462 | ||
26463 | ||
c32bde28 | 26464 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26465 | PyObject *resultobj; |
26466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26467 | PyObject * obj0 = 0 ; | |
26468 | char *kwnames[] = { | |
26469 | (char *) "self", NULL | |
26470 | }; | |
26471 | ||
26472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26475 | { |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | (arg1)->Freeze(); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | Py_INCREF(Py_None); resultobj = Py_None; | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
c32bde28 | 26489 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26490 | PyObject *resultobj; |
26491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26492 | PyObject * obj0 = 0 ; | |
26493 | char *kwnames[] = { | |
26494 | (char *) "self", NULL | |
26495 | }; | |
26496 | ||
26497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26500 | { |
26501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26502 | (arg1)->Thaw(); | |
26503 | ||
26504 | wxPyEndAllowThreads(__tstate); | |
26505 | if (PyErr_Occurred()) SWIG_fail; | |
26506 | } | |
26507 | Py_INCREF(Py_None); resultobj = Py_None; | |
26508 | return resultobj; | |
26509 | fail: | |
26510 | return NULL; | |
26511 | } | |
26512 | ||
26513 | ||
c32bde28 | 26514 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26515 | PyObject *resultobj; |
26516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26517 | wxDC *arg2 = 0 ; | |
26518 | PyObject * obj0 = 0 ; | |
26519 | PyObject * obj1 = 0 ; | |
26520 | char *kwnames[] = { | |
26521 | (char *) "self",(char *) "dc", NULL | |
26522 | }; | |
26523 | ||
26524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26527 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26529 | SWIG_fail; | |
d14a1e28 | 26530 | if (arg2 == NULL) { |
15afbcd0 RD |
26531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26532 | SWIG_fail; | |
d14a1e28 RD |
26533 | } |
26534 | { | |
26535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26536 | (arg1)->PrepareDC(*arg2); | |
26537 | ||
26538 | wxPyEndAllowThreads(__tstate); | |
26539 | if (PyErr_Occurred()) SWIG_fail; | |
26540 | } | |
26541 | Py_INCREF(Py_None); resultobj = Py_None; | |
26542 | return resultobj; | |
26543 | fail: | |
26544 | return NULL; | |
26545 | } | |
26546 | ||
26547 | ||
c32bde28 | 26548 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26549 | PyObject *resultobj; |
26550 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26551 | wxRegion *result; | |
26552 | PyObject * obj0 = 0 ; | |
26553 | char *kwnames[] = { | |
26554 | (char *) "self", NULL | |
26555 | }; | |
26556 | ||
26557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26560 | { |
26561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26562 | { | |
26563 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26564 | result = (wxRegion *) &_result_ref; | |
26565 | } | |
26566 | ||
26567 | wxPyEndAllowThreads(__tstate); | |
26568 | if (PyErr_Occurred()) SWIG_fail; | |
26569 | } | |
15afbcd0 | 26570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
26571 | return resultobj; |
26572 | fail: | |
26573 | return NULL; | |
26574 | } | |
26575 | ||
26576 | ||
c32bde28 | 26577 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26578 | PyObject *resultobj; |
26579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26580 | wxRect result; | |
26581 | PyObject * obj0 = 0 ; | |
26582 | char *kwnames[] = { | |
26583 | (char *) "self", NULL | |
26584 | }; | |
26585 | ||
26586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26589 | { |
26590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26591 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26592 | ||
26593 | wxPyEndAllowThreads(__tstate); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
26595 | } | |
26596 | { | |
26597 | wxRect * resultptr; | |
26598 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 26599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
26600 | } |
26601 | return resultobj; | |
26602 | fail: | |
26603 | return NULL; | |
26604 | } | |
26605 | ||
26606 | ||
c32bde28 | 26607 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26608 | PyObject *resultobj; |
26609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26610 | int arg2 ; | |
26611 | int arg3 ; | |
26612 | int arg4 = (int) 1 ; | |
26613 | int arg5 = (int) 1 ; | |
26614 | bool result; | |
26615 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26616 | PyObject * obj1 = 0 ; |
26617 | PyObject * obj2 = 0 ; | |
26618 | PyObject * obj3 = 0 ; | |
26619 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26620 | char *kwnames[] = { |
26621 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26622 | }; | |
26623 | ||
994141e6 | 26624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26627 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 26628 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26629 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26630 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26631 | if (obj3) { |
c32bde28 | 26632 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 26633 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
26634 | } |
26635 | if (obj4) { | |
c32bde28 | 26636 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 26637 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26638 | } |
d14a1e28 RD |
26639 | { |
26640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26641 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26642 | ||
26643 | wxPyEndAllowThreads(__tstate); | |
26644 | if (PyErr_Occurred()) SWIG_fail; | |
26645 | } | |
4f89f6a3 RD |
26646 | { |
26647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26648 | } | |
d14a1e28 RD |
26649 | return resultobj; |
26650 | fail: | |
26651 | return NULL; | |
26652 | } | |
26653 | ||
26654 | ||
c32bde28 | 26655 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26656 | PyObject *resultobj; |
26657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26658 | wxPoint *arg2 = 0 ; | |
26659 | bool result; | |
26660 | wxPoint temp2 ; | |
26661 | PyObject * obj0 = 0 ; | |
26662 | PyObject * obj1 = 0 ; | |
26663 | char *kwnames[] = { | |
26664 | (char *) "self",(char *) "pt", NULL | |
26665 | }; | |
26666 | ||
26667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26670 | { |
26671 | arg2 = &temp2; | |
26672 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26673 | } | |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26677 | ||
26678 | wxPyEndAllowThreads(__tstate); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | } | |
4f89f6a3 RD |
26681 | { |
26682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26683 | } | |
d14a1e28 RD |
26684 | return resultobj; |
26685 | fail: | |
26686 | return NULL; | |
26687 | } | |
26688 | ||
26689 | ||
c32bde28 | 26690 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26691 | PyObject *resultobj; |
26692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26693 | wxRect *arg2 = 0 ; | |
26694 | bool result; | |
26695 | wxRect temp2 ; | |
26696 | PyObject * obj0 = 0 ; | |
26697 | PyObject * obj1 = 0 ; | |
26698 | char *kwnames[] = { | |
26699 | (char *) "self",(char *) "rect", NULL | |
26700 | }; | |
26701 | ||
4276dc52 | 26702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26705 | { |
26706 | arg2 = &temp2; | |
26707 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26708 | } | |
26709 | { | |
26710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26711 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26712 | ||
26713 | wxPyEndAllowThreads(__tstate); | |
26714 | if (PyErr_Occurred()) SWIG_fail; | |
26715 | } | |
4f89f6a3 RD |
26716 | { |
26717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26718 | } | |
d14a1e28 RD |
26719 | return resultobj; |
26720 | fail: | |
26721 | return NULL; | |
26722 | } | |
26723 | ||
26724 | ||
c32bde28 | 26725 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
26726 | PyObject *resultobj; |
26727 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26728 | wxVisualAttributes result; | |
26729 | PyObject * obj0 = 0 ; | |
26730 | char *kwnames[] = { | |
26731 | (char *) "self", NULL | |
26732 | }; | |
26733 | ||
26734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26737 | { | |
26738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26739 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26740 | ||
26741 | wxPyEndAllowThreads(__tstate); | |
26742 | if (PyErr_Occurred()) SWIG_fail; | |
26743 | } | |
26744 | { | |
26745 | wxVisualAttributes * resultptr; | |
26746 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26747 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26748 | } | |
26749 | return resultobj; | |
26750 | fail: | |
26751 | return NULL; | |
26752 | } | |
26753 | ||
26754 | ||
c32bde28 | 26755 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
26756 | PyObject *resultobj; |
26757 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26758 | wxVisualAttributes result; | |
26759 | PyObject * obj0 = 0 ; | |
26760 | char *kwnames[] = { | |
26761 | (char *) "variant", NULL | |
26762 | }; | |
26763 | ||
26764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26765 | if (obj0) { | |
c32bde28 | 26766 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
26767 | if (PyErr_Occurred()) SWIG_fail; |
26768 | } | |
26769 | { | |
e3b71cb8 | 26770 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26772 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26775 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
26776 | } |
26777 | { | |
26778 | wxVisualAttributes * resultptr; | |
26779 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26781 | } | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | return NULL; | |
26785 | } | |
26786 | ||
26787 | ||
c32bde28 | 26788 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26789 | PyObject *resultobj; |
26790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26791 | wxColour *arg2 = 0 ; | |
26792 | bool result; | |
26793 | wxColour temp2 ; | |
26794 | PyObject * obj0 = 0 ; | |
26795 | PyObject * obj1 = 0 ; | |
26796 | char *kwnames[] = { | |
26797 | (char *) "self",(char *) "colour", NULL | |
26798 | }; | |
26799 | ||
26800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26803 | { |
26804 | arg2 = &temp2; | |
26805 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26806 | } | |
26807 | { | |
26808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26809 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26810 | ||
26811 | wxPyEndAllowThreads(__tstate); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
4f89f6a3 RD |
26814 | { |
26815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26816 | } | |
d14a1e28 RD |
26817 | return resultobj; |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
c32bde28 | 26823 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
26824 | PyObject *resultobj; |
26825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26826 | wxColour *arg2 = 0 ; | |
26827 | wxColour temp2 ; | |
26828 | PyObject * obj0 = 0 ; | |
26829 | PyObject * obj1 = 0 ; | |
26830 | char *kwnames[] = { | |
26831 | (char *) "self",(char *) "colour", NULL | |
26832 | }; | |
26833 | ||
412d302d | 26834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
26835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26837 | { | |
26838 | arg2 = &temp2; | |
26839 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26840 | } | |
26841 | { | |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26843 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
b2df227b RD |
26844 | |
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
26848 | Py_INCREF(Py_None); resultobj = Py_None; | |
26849 | return resultobj; | |
26850 | fail: | |
26851 | return NULL; | |
26852 | } | |
26853 | ||
26854 | ||
c32bde28 | 26855 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26856 | PyObject *resultobj; |
26857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26858 | wxColour *arg2 = 0 ; | |
26859 | bool result; | |
26860 | wxColour temp2 ; | |
26861 | PyObject * obj0 = 0 ; | |
26862 | PyObject * obj1 = 0 ; | |
26863 | char *kwnames[] = { | |
26864 | (char *) "self",(char *) "colour", NULL | |
26865 | }; | |
26866 | ||
26867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26870 | { |
26871 | arg2 = &temp2; | |
26872 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26873 | } | |
26874 | { | |
26875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26876 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26877 | ||
26878 | wxPyEndAllowThreads(__tstate); | |
26879 | if (PyErr_Occurred()) SWIG_fail; | |
26880 | } | |
4f89f6a3 RD |
26881 | { |
26882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26883 | } | |
d14a1e28 RD |
26884 | return resultobj; |
26885 | fail: | |
26886 | return NULL; | |
26887 | } | |
26888 | ||
26889 | ||
c32bde28 | 26890 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
26891 | PyObject *resultobj; |
26892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26893 | wxColour *arg2 = 0 ; | |
26894 | wxColour temp2 ; | |
26895 | PyObject * obj0 = 0 ; | |
26896 | PyObject * obj1 = 0 ; | |
26897 | char *kwnames[] = { | |
26898 | (char *) "self",(char *) "colour", NULL | |
26899 | }; | |
26900 | ||
fa47d7a7 | 26901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
26902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26904 | { | |
26905 | arg2 = &temp2; | |
26906 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26907 | } | |
26908 | { | |
26909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26910 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
b2df227b RD |
26911 | |
26912 | wxPyEndAllowThreads(__tstate); | |
26913 | if (PyErr_Occurred()) SWIG_fail; | |
26914 | } | |
26915 | Py_INCREF(Py_None); resultobj = Py_None; | |
26916 | return resultobj; | |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
c32bde28 | 26922 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26923 | PyObject *resultobj; |
26924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26925 | wxColour result; | |
26926 | PyObject * obj0 = 0 ; | |
26927 | char *kwnames[] = { | |
26928 | (char *) "self", NULL | |
26929 | }; | |
26930 | ||
26931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26934 | { |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | { | |
26942 | wxColour * resultptr; | |
26943 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26944 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26945 | } |
26946 | return resultobj; | |
26947 | fail: | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
c32bde28 | 26952 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26953 | PyObject *resultobj; |
26954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26955 | wxColour result; | |
26956 | PyObject * obj0 = 0 ; | |
26957 | char *kwnames[] = { | |
26958 | (char *) "self", NULL | |
26959 | }; | |
26960 | ||
26961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26964 | { |
26965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26966 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26967 | ||
26968 | wxPyEndAllowThreads(__tstate); | |
26969 | if (PyErr_Occurred()) SWIG_fail; | |
26970 | } | |
26971 | { | |
26972 | wxColour * resultptr; | |
26973 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26974 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26975 | } |
26976 | return resultobj; | |
26977 | fail: | |
26978 | return NULL; | |
26979 | } | |
26980 | ||
26981 | ||
c32bde28 | 26982 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7bc1e663 RD |
26983 | PyObject *resultobj; |
26984 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26985 | int arg2 ; | |
26986 | bool result; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | PyObject * obj1 = 0 ; | |
26989 | char *kwnames[] = { | |
26990 | (char *) "self",(char *) "style", NULL | |
26991 | }; | |
26992 | ||
26993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26996 | arg2 = (int)SWIG_As_int(obj1); |
7bc1e663 RD |
26997 | if (PyErr_Occurred()) SWIG_fail; |
26998 | { | |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27000 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
27001 | ||
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
27005 | { | |
27006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27007 | } | |
27008 | return resultobj; | |
27009 | fail: | |
27010 | return NULL; | |
27011 | } | |
27012 | ||
27013 | ||
c32bde28 | 27014 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7bc1e663 RD |
27015 | PyObject *resultobj; |
27016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27017 | int result; | |
27018 | PyObject * obj0 = 0 ; | |
27019 | char *kwnames[] = { | |
27020 | (char *) "self", NULL | |
27021 | }; | |
27022 | ||
27023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
27024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27026 | { | |
27027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27028 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
27029 | ||
27030 | wxPyEndAllowThreads(__tstate); | |
27031 | if (PyErr_Occurred()) SWIG_fail; | |
27032 | } | |
c32bde28 | 27033 | resultobj = SWIG_From_int((int)result); |
7bc1e663 RD |
27034 | return resultobj; |
27035 | fail: | |
27036 | return NULL; | |
27037 | } | |
27038 | ||
27039 | ||
c32bde28 | 27040 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27041 | PyObject *resultobj; |
27042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27043 | wxCursor *arg2 = 0 ; | |
27044 | bool result; | |
27045 | PyObject * obj0 = 0 ; | |
27046 | PyObject * obj1 = 0 ; | |
27047 | char *kwnames[] = { | |
27048 | (char *) "self",(char *) "cursor", NULL | |
27049 | }; | |
27050 | ||
27051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27054 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
27055 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27056 | SWIG_fail; | |
d14a1e28 | 27057 | if (arg2 == NULL) { |
15afbcd0 RD |
27058 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27059 | SWIG_fail; | |
d14a1e28 RD |
27060 | } |
27061 | { | |
27062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27063 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
27064 | ||
27065 | wxPyEndAllowThreads(__tstate); | |
27066 | if (PyErr_Occurred()) SWIG_fail; | |
27067 | } | |
4f89f6a3 RD |
27068 | { |
27069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27070 | } | |
d14a1e28 RD |
27071 | return resultobj; |
27072 | fail: | |
27073 | return NULL; | |
27074 | } | |
27075 | ||
27076 | ||
c32bde28 | 27077 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27078 | PyObject *resultobj; |
27079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 27080 | wxCursor result; |
d14a1e28 RD |
27081 | PyObject * obj0 = 0 ; |
27082 | char *kwnames[] = { | |
27083 | (char *) "self", NULL | |
27084 | }; | |
27085 | ||
27086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27089 | { |
27090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 27091 | result = (arg1)->GetCursor(); |
d14a1e28 RD |
27092 | |
27093 | wxPyEndAllowThreads(__tstate); | |
27094 | if (PyErr_Occurred()) SWIG_fail; | |
27095 | } | |
4276dc52 | 27096 | { |
dfbb5885 RD |
27097 | wxCursor * resultptr; |
27098 | resultptr = new wxCursor((wxCursor &) result); | |
27099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
4276dc52 | 27100 | } |
d14a1e28 RD |
27101 | return resultobj; |
27102 | fail: | |
27103 | return NULL; | |
27104 | } | |
27105 | ||
27106 | ||
c32bde28 | 27107 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27108 | PyObject *resultobj; |
27109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27110 | wxFont *arg2 = 0 ; | |
27111 | bool result; | |
27112 | PyObject * obj0 = 0 ; | |
27113 | PyObject * obj1 = 0 ; | |
27114 | char *kwnames[] = { | |
27115 | (char *) "self",(char *) "font", NULL | |
27116 | }; | |
27117 | ||
27118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27122 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27123 | SWIG_fail; | |
d14a1e28 | 27124 | if (arg2 == NULL) { |
15afbcd0 RD |
27125 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27126 | SWIG_fail; | |
d14a1e28 RD |
27127 | } |
27128 | { | |
27129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27130 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
27131 | ||
27132 | wxPyEndAllowThreads(__tstate); | |
27133 | if (PyErr_Occurred()) SWIG_fail; | |
27134 | } | |
4f89f6a3 RD |
27135 | { |
27136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27137 | } | |
d14a1e28 RD |
27138 | return resultobj; |
27139 | fail: | |
27140 | return NULL; | |
27141 | } | |
27142 | ||
27143 | ||
c32bde28 | 27144 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
27145 | PyObject *resultobj; |
27146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27147 | wxFont *arg2 = 0 ; | |
27148 | PyObject * obj0 = 0 ; | |
27149 | PyObject * obj1 = 0 ; | |
27150 | char *kwnames[] = { | |
27151 | (char *) "self",(char *) "font", NULL | |
27152 | }; | |
27153 | ||
fa47d7a7 | 27154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
27155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27158 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27159 | SWIG_fail; | |
27160 | if (arg2 == NULL) { | |
27161 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27162 | SWIG_fail; | |
27163 | } | |
27164 | { | |
27165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27166 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
b2df227b RD |
27167 | |
27168 | wxPyEndAllowThreads(__tstate); | |
27169 | if (PyErr_Occurred()) SWIG_fail; | |
27170 | } | |
27171 | Py_INCREF(Py_None); resultobj = Py_None; | |
27172 | return resultobj; | |
27173 | fail: | |
27174 | return NULL; | |
27175 | } | |
27176 | ||
27177 | ||
c32bde28 | 27178 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27179 | PyObject *resultobj; |
27180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 27181 | wxFont result; |
d14a1e28 RD |
27182 | PyObject * obj0 = 0 ; |
27183 | char *kwnames[] = { | |
27184 | (char *) "self", NULL | |
27185 | }; | |
27186 | ||
27187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27190 | { |
27191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 27192 | result = (arg1)->GetFont(); |
d14a1e28 RD |
27193 | |
27194 | wxPyEndAllowThreads(__tstate); | |
27195 | if (PyErr_Occurred()) SWIG_fail; | |
27196 | } | |
4276dc52 | 27197 | { |
dfbb5885 RD |
27198 | wxFont * resultptr; |
27199 | resultptr = new wxFont((wxFont &) result); | |
27200 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
4276dc52 | 27201 | } |
d14a1e28 RD |
27202 | return resultobj; |
27203 | fail: | |
27204 | return NULL; | |
27205 | } | |
27206 | ||
27207 | ||
c32bde28 | 27208 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27209 | PyObject *resultobj; |
27210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27211 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27212 | PyObject * obj0 = 0 ; | |
27213 | PyObject * obj1 = 0 ; | |
27214 | char *kwnames[] = { | |
27215 | (char *) "self",(char *) "caret", NULL | |
27216 | }; | |
27217 | ||
27218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27223 | { |
27224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27225 | (arg1)->SetCaret(arg2); | |
27226 | ||
27227 | wxPyEndAllowThreads(__tstate); | |
27228 | if (PyErr_Occurred()) SWIG_fail; | |
27229 | } | |
27230 | Py_INCREF(Py_None); resultobj = Py_None; | |
27231 | return resultobj; | |
27232 | fail: | |
27233 | return NULL; | |
27234 | } | |
27235 | ||
27236 | ||
c32bde28 | 27237 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27238 | PyObject *resultobj; |
27239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27240 | wxCaret *result; | |
27241 | PyObject * obj0 = 0 ; | |
27242 | char *kwnames[] = { | |
27243 | (char *) "self", NULL | |
27244 | }; | |
27245 | ||
27246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27249 | { |
27250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27251 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27252 | ||
27253 | wxPyEndAllowThreads(__tstate); | |
27254 | if (PyErr_Occurred()) SWIG_fail; | |
27255 | } | |
15afbcd0 | 27256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
27257 | return resultobj; |
27258 | fail: | |
27259 | return NULL; | |
27260 | } | |
27261 | ||
27262 | ||
c32bde28 | 27263 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27264 | PyObject *resultobj; |
27265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27266 | int result; | |
27267 | PyObject * obj0 = 0 ; | |
27268 | char *kwnames[] = { | |
27269 | (char *) "self", NULL | |
27270 | }; | |
27271 | ||
27272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27275 | { |
27276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27277 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27278 | ||
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
c32bde28 | 27282 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27283 | return resultobj; |
27284 | fail: | |
27285 | return NULL; | |
27286 | } | |
27287 | ||
27288 | ||
c32bde28 | 27289 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27290 | PyObject *resultobj; |
27291 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27292 | int result; | |
27293 | PyObject * obj0 = 0 ; | |
27294 | char *kwnames[] = { | |
27295 | (char *) "self", NULL | |
27296 | }; | |
27297 | ||
27298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27301 | { |
27302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27303 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27304 | ||
27305 | wxPyEndAllowThreads(__tstate); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | } | |
c32bde28 | 27308 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27309 | return resultobj; |
27310 | fail: | |
27311 | return NULL; | |
27312 | } | |
27313 | ||
27314 | ||
c32bde28 | 27315 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27316 | PyObject *resultobj; |
27317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27318 | wxString *arg2 = 0 ; | |
27319 | int *arg3 = (int *) 0 ; | |
27320 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 27321 | bool temp2 = false ; |
d14a1e28 | 27322 | int temp3 ; |
c32bde28 | 27323 | int res3 = 0 ; |
d14a1e28 | 27324 | int temp4 ; |
c32bde28 | 27325 | int res4 = 0 ; |
d14a1e28 RD |
27326 | PyObject * obj0 = 0 ; |
27327 | PyObject * obj1 = 0 ; | |
27328 | char *kwnames[] = { | |
27329 | (char *) "self",(char *) "string", NULL | |
27330 | }; | |
27331 | ||
c32bde28 RD |
27332 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27333 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 27334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27337 | { |
27338 | arg2 = wxString_in_helper(obj1); | |
27339 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27340 | temp2 = true; |
d14a1e28 RD |
27341 | } |
27342 | { | |
27343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27344 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27345 | ||
27346 | wxPyEndAllowThreads(__tstate); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | } | |
27349 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27350 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27351 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27352 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27353 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27354 | { |
27355 | if (temp2) | |
27356 | delete arg2; | |
27357 | } | |
27358 | return resultobj; | |
27359 | fail: | |
27360 | { | |
27361 | if (temp2) | |
27362 | delete arg2; | |
27363 | } | |
27364 | return NULL; | |
27365 | } | |
27366 | ||
27367 | ||
c32bde28 | 27368 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27369 | PyObject *resultobj; |
27370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27371 | wxString *arg2 = 0 ; | |
27372 | int *arg3 = (int *) 0 ; | |
27373 | int *arg4 = (int *) 0 ; | |
27374 | int *arg5 = (int *) 0 ; | |
27375 | int *arg6 = (int *) 0 ; | |
27376 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 27377 | bool temp2 = false ; |
d14a1e28 | 27378 | int temp3 ; |
c32bde28 | 27379 | int res3 = 0 ; |
d14a1e28 | 27380 | int temp4 ; |
c32bde28 | 27381 | int res4 = 0 ; |
d14a1e28 | 27382 | int temp5 ; |
c32bde28 | 27383 | int res5 = 0 ; |
d14a1e28 | 27384 | int temp6 ; |
c32bde28 | 27385 | int res6 = 0 ; |
d14a1e28 RD |
27386 | PyObject * obj0 = 0 ; |
27387 | PyObject * obj1 = 0 ; | |
27388 | PyObject * obj2 = 0 ; | |
27389 | char *kwnames[] = { | |
27390 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27391 | }; | |
27392 | ||
c32bde28 RD |
27393 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27394 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27395 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27396 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d14a1e28 | 27397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
27398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27400 | { |
27401 | arg2 = wxString_in_helper(obj1); | |
27402 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27403 | temp2 = true; |
d14a1e28 RD |
27404 | } |
27405 | if (obj2) { | |
15afbcd0 RD |
27406 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
27407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27408 | } |
27409 | { | |
27410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27411 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27412 | ||
27413 | wxPyEndAllowThreads(__tstate); | |
27414 | if (PyErr_Occurred()) SWIG_fail; | |
27415 | } | |
27416 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27417 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27418 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27419 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27420 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27421 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27422 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27423 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27424 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27425 | { |
27426 | if (temp2) | |
27427 | delete arg2; | |
27428 | } | |
27429 | return resultobj; | |
27430 | fail: | |
27431 | { | |
27432 | if (temp2) | |
27433 | delete arg2; | |
27434 | } | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
c32bde28 | 27439 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27440 | PyObject *resultobj; |
27441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27442 | int *arg2 = (int *) 0 ; | |
27443 | int *arg3 = (int *) 0 ; | |
27444 | int temp2 ; | |
c32bde28 | 27445 | int res2 = 0 ; |
d14a1e28 | 27446 | int temp3 ; |
c32bde28 | 27447 | int res3 = 0 ; |
d14a1e28 RD |
27448 | PyObject * obj0 = 0 ; |
27449 | PyObject * obj1 = 0 ; | |
27450 | PyObject * obj2 = 0 ; | |
27451 | char *kwnames[] = { | |
27452 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27453 | }; | |
27454 | ||
27455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27458 | { |
c32bde28 RD |
27459 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27460 | temp2 = SWIG_As_int(obj1); | |
27461 | if (PyErr_Occurred()) SWIG_fail; | |
27462 | arg2 = &temp2; | |
27463 | res2 = SWIG_NEWOBJ; | |
27464 | } | |
d14a1e28 RD |
27465 | } |
27466 | { | |
c32bde28 RD |
27467 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27468 | temp3 = SWIG_As_int(obj2); | |
27469 | if (PyErr_Occurred()) SWIG_fail; | |
27470 | arg3 = &temp3; | |
27471 | res3 = SWIG_NEWOBJ; | |
27472 | } | |
d14a1e28 RD |
27473 | } |
27474 | { | |
27475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27476 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27477 | ||
27478 | wxPyEndAllowThreads(__tstate); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
27481 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27482 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27483 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27484 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27485 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27486 | return resultobj; |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
c32bde28 | 27492 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27493 | PyObject *resultobj; |
27494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27495 | int *arg2 = (int *) 0 ; | |
27496 | int *arg3 = (int *) 0 ; | |
27497 | int temp2 ; | |
c32bde28 | 27498 | int res2 = 0 ; |
d14a1e28 | 27499 | int temp3 ; |
c32bde28 | 27500 | int res3 = 0 ; |
d14a1e28 RD |
27501 | PyObject * obj0 = 0 ; |
27502 | PyObject * obj1 = 0 ; | |
27503 | PyObject * obj2 = 0 ; | |
27504 | char *kwnames[] = { | |
27505 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27506 | }; | |
27507 | ||
27508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27511 | { |
c32bde28 RD |
27512 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27513 | temp2 = SWIG_As_int(obj1); | |
27514 | if (PyErr_Occurred()) SWIG_fail; | |
27515 | arg2 = &temp2; | |
27516 | res2 = SWIG_NEWOBJ; | |
27517 | } | |
d14a1e28 RD |
27518 | } |
27519 | { | |
c32bde28 RD |
27520 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27521 | temp3 = SWIG_As_int(obj2); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | arg3 = &temp3; | |
27524 | res3 = SWIG_NEWOBJ; | |
27525 | } | |
d14a1e28 RD |
27526 | } |
27527 | { | |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
27534 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27535 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27536 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27537 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27538 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27539 | return resultobj; |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
c32bde28 | 27545 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27546 | PyObject *resultobj; |
27547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27548 | wxPoint *arg2 = 0 ; | |
27549 | wxPoint result; | |
27550 | wxPoint temp2 ; | |
27551 | PyObject * obj0 = 0 ; | |
27552 | PyObject * obj1 = 0 ; | |
27553 | char *kwnames[] = { | |
27554 | (char *) "self",(char *) "pt", NULL | |
27555 | }; | |
27556 | ||
27557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27560 | { |
27561 | arg2 = &temp2; | |
27562 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27563 | } | |
27564 | { | |
27565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27566 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27567 | ||
27568 | wxPyEndAllowThreads(__tstate); | |
27569 | if (PyErr_Occurred()) SWIG_fail; | |
27570 | } | |
27571 | { | |
27572 | wxPoint * resultptr; | |
27573 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 27574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
27575 | } |
27576 | return resultobj; | |
27577 | fail: | |
27578 | return NULL; | |
27579 | } | |
27580 | ||
27581 | ||
c32bde28 | 27582 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27583 | PyObject *resultobj; |
27584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27585 | wxPoint *arg2 = 0 ; | |
27586 | wxPoint result; | |
27587 | wxPoint temp2 ; | |
27588 | PyObject * obj0 = 0 ; | |
27589 | PyObject * obj1 = 0 ; | |
27590 | char *kwnames[] = { | |
27591 | (char *) "self",(char *) "pt", NULL | |
27592 | }; | |
27593 | ||
27594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27597 | { |
27598 | arg2 = &temp2; | |
27599 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27600 | } | |
27601 | { | |
27602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27603 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27604 | ||
27605 | wxPyEndAllowThreads(__tstate); | |
27606 | if (PyErr_Occurred()) SWIG_fail; | |
27607 | } | |
27608 | { | |
27609 | wxPoint * resultptr; | |
27610 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 27611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
27612 | } |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
c32bde28 | 27619 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27620 | PyObject *resultobj; |
27621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
27622 | int arg2 ; |
27623 | int arg3 ; | |
d14a1e28 RD |
27624 | int result; |
27625 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27626 | PyObject * obj1 = 0 ; |
27627 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27628 | char *kwnames[] = { |
27629 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27630 | }; | |
27631 | ||
994141e6 | 27632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
27633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27635 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 27636 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27637 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 27638 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27639 | { |
27640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27641 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27642 | ||
27643 | wxPyEndAllowThreads(__tstate); | |
27644 | if (PyErr_Occurred()) SWIG_fail; | |
27645 | } | |
c32bde28 | 27646 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27647 | return resultobj; |
27648 | fail: | |
27649 | return NULL; | |
27650 | } | |
27651 | ||
27652 | ||
c32bde28 | 27653 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27654 | PyObject *resultobj; |
27655 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27656 | wxPoint *arg2 = 0 ; | |
27657 | int result; | |
27658 | wxPoint temp2 ; | |
27659 | PyObject * obj0 = 0 ; | |
27660 | PyObject * obj1 = 0 ; | |
27661 | char *kwnames[] = { | |
27662 | (char *) "self",(char *) "pt", NULL | |
27663 | }; | |
27664 | ||
27665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27668 | { |
27669 | arg2 = &temp2; | |
27670 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27671 | } | |
27672 | { | |
27673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27674 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27675 | ||
27676 | wxPyEndAllowThreads(__tstate); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
c32bde28 | 27679 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27680 | return resultobj; |
27681 | fail: | |
27682 | return NULL; | |
27683 | } | |
27684 | ||
27685 | ||
c32bde28 | 27686 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
27687 | PyObject *resultobj; |
27688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27689 | long arg2 ; | |
27690 | int result; | |
27691 | PyObject * obj0 = 0 ; | |
994141e6 | 27692 | PyObject * obj1 = 0 ; |
d14a1e28 | 27693 | |
15afbcd0 RD |
27694 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
27695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27697 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 27698 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27699 | { |
27700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27701 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27702 | ||
27703 | wxPyEndAllowThreads(__tstate); | |
27704 | if (PyErr_Occurred()) SWIG_fail; | |
27705 | } | |
c32bde28 | 27706 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27707 | return resultobj; |
27708 | fail: | |
27709 | return NULL; | |
27710 | } | |
27711 | ||
27712 | ||
c32bde28 | 27713 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
27714 | PyObject *resultobj; |
27715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27716 | int result; | |
27717 | PyObject * obj0 = 0 ; | |
d14a1e28 | 27718 | |
15afbcd0 RD |
27719 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
27720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27722 | { |
27723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27724 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27725 | ||
27726 | wxPyEndAllowThreads(__tstate); | |
27727 | if (PyErr_Occurred()) SWIG_fail; | |
27728 | } | |
c32bde28 | 27729 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
27730 | return resultobj; |
27731 | fail: | |
27732 | return NULL; | |
27733 | } | |
27734 | ||
27735 | ||
15afbcd0 RD |
27736 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
27737 | int argc; | |
27738 | PyObject *argv[3]; | |
27739 | int ii; | |
27740 | ||
27741 | argc = PyObject_Length(args); | |
27742 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27743 | argv[ii] = PyTuple_GetItem(args,ii); | |
27744 | } | |
27745 | if (argc == 1) { | |
27746 | int _v; | |
27747 | { | |
27748 | void *ptr; | |
27749 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27750 | _v = 0; | |
27751 | PyErr_Clear(); | |
27752 | } else { | |
27753 | _v = 1; | |
27754 | } | |
27755 | } | |
27756 | if (_v) { | |
27757 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27758 | } | |
27759 | } | |
27760 | if (argc == 2) { | |
27761 | int _v; | |
27762 | { | |
27763 | void *ptr; | |
27764 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27765 | _v = 0; | |
27766 | PyErr_Clear(); | |
27767 | } else { | |
27768 | _v = 1; | |
27769 | } | |
27770 | } | |
27771 | if (_v) { | |
c32bde28 | 27772 | _v = SWIG_Check_long(argv[1]); |
15afbcd0 RD |
27773 | if (_v) { |
27774 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27775 | } | |
27776 | } | |
27777 | } | |
27778 | ||
27779 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27780 | return NULL; | |
27781 | } | |
27782 | ||
27783 | ||
c32bde28 | 27784 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27785 | PyObject *resultobj; |
27786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27787 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27788 | PyObject * obj0 = 0 ; | |
994141e6 | 27789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27790 | char *kwnames[] = { |
27791 | (char *) "self",(char *) "flags", NULL | |
27792 | }; | |
27793 | ||
994141e6 | 27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27797 | if (obj1) { |
c32bde28 | 27798 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 27799 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27800 | } |
d14a1e28 RD |
27801 | { |
27802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27803 | (arg1)->UpdateWindowUI(arg2); | |
27804 | ||
27805 | wxPyEndAllowThreads(__tstate); | |
27806 | if (PyErr_Occurred()) SWIG_fail; | |
27807 | } | |
27808 | Py_INCREF(Py_None); resultobj = Py_None; | |
27809 | return resultobj; | |
27810 | fail: | |
27811 | return NULL; | |
27812 | } | |
27813 | ||
27814 | ||
c32bde28 | 27815 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27816 | PyObject *resultobj; |
27817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27818 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27819 | int arg3 = (int) -1 ; |
27820 | int arg4 = (int) -1 ; | |
d14a1e28 RD |
27821 | bool result; |
27822 | PyObject * obj0 = 0 ; | |
27823 | PyObject * obj1 = 0 ; | |
994141e6 RD |
27824 | PyObject * obj2 = 0 ; |
27825 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
27826 | char *kwnames[] = { |
27827 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27828 | }; | |
27829 | ||
b0503257 | 27830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 | 27835 | if (obj2) { |
c32bde28 | 27836 | arg3 = (int)SWIG_As_int(obj2); |
b0503257 RD |
27837 | if (PyErr_Occurred()) SWIG_fail; |
27838 | } | |
27839 | if (obj3) { | |
c32bde28 | 27840 | arg4 = (int)SWIG_As_int(obj3); |
b0503257 RD |
27841 | if (PyErr_Occurred()) SWIG_fail; |
27842 | } | |
d14a1e28 RD |
27843 | { |
27844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27845 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27846 | ||
27847 | wxPyEndAllowThreads(__tstate); | |
27848 | if (PyErr_Occurred()) SWIG_fail; | |
27849 | } | |
4f89f6a3 RD |
27850 | { |
27851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27852 | } | |
d14a1e28 RD |
27853 | return resultobj; |
27854 | fail: | |
27855 | return NULL; | |
27856 | } | |
27857 | ||
27858 | ||
c32bde28 | 27859 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27860 | PyObject *resultobj; |
27861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27862 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27863 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27864 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d14a1e28 RD |
27865 | bool result; |
27866 | wxPoint temp3 ; | |
27867 | PyObject * obj0 = 0 ; | |
27868 | PyObject * obj1 = 0 ; | |
27869 | PyObject * obj2 = 0 ; | |
27870 | char *kwnames[] = { | |
27871 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27872 | }; | |
27873 | ||
b0503257 | 27874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
27875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27879 | if (obj2) { |
27880 | { | |
27881 | arg3 = &temp3; | |
27882 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27883 | } | |
d14a1e28 RD |
27884 | } |
27885 | { | |
27886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27887 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27888 | ||
27889 | wxPyEndAllowThreads(__tstate); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
27891 | } | |
4f89f6a3 RD |
27892 | { |
27893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27894 | } | |
d14a1e28 RD |
27895 | return resultobj; |
27896 | fail: | |
27897 | return NULL; | |
27898 | } | |
27899 | ||
27900 | ||
c32bde28 | 27901 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27902 | PyObject *resultobj; |
27903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27904 | long result; | |
27905 | PyObject * obj0 = 0 ; | |
27906 | char *kwnames[] = { | |
27907 | (char *) "self", NULL | |
27908 | }; | |
27909 | ||
27910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27913 | { |
27914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27915 | result = (long)wxWindow_GetHandle(arg1); | |
27916 | ||
27917 | wxPyEndAllowThreads(__tstate); | |
27918 | if (PyErr_Occurred()) SWIG_fail; | |
27919 | } | |
c32bde28 | 27920 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
27921 | return resultobj; |
27922 | fail: | |
27923 | return NULL; | |
27924 | } | |
27925 | ||
27926 | ||
7e63a440 RD |
27927 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27928 | PyObject *resultobj; | |
27929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27930 | long arg2 ; | |
27931 | PyObject * obj0 = 0 ; | |
27932 | PyObject * obj1 = 0 ; | |
27933 | char *kwnames[] = { | |
27934 | (char *) "self",(char *) "handle", NULL | |
27935 | }; | |
27936 | ||
27937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27940 | arg2 = (long)SWIG_As_long(obj1); | |
27941 | if (PyErr_Occurred()) SWIG_fail; | |
27942 | { | |
27943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27944 | wxWindow_AssociateHandle(arg1,arg2); | |
27945 | ||
27946 | wxPyEndAllowThreads(__tstate); | |
27947 | if (PyErr_Occurred()) SWIG_fail; | |
27948 | } | |
27949 | Py_INCREF(Py_None); resultobj = Py_None; | |
27950 | return resultobj; | |
27951 | fail: | |
27952 | return NULL; | |
27953 | } | |
27954 | ||
27955 | ||
27956 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27957 | PyObject *resultobj; | |
27958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27959 | PyObject * obj0 = 0 ; | |
27960 | char *kwnames[] = { | |
27961 | (char *) "self", NULL | |
27962 | }; | |
27963 | ||
27964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27967 | { | |
27968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27969 | (arg1)->DissociateHandle(); | |
27970 | ||
27971 | wxPyEndAllowThreads(__tstate); | |
27972 | if (PyErr_Occurred()) SWIG_fail; | |
27973 | } | |
27974 | Py_INCREF(Py_None); resultobj = Py_None; | |
27975 | return resultobj; | |
27976 | fail: | |
27977 | return NULL; | |
27978 | } | |
27979 | ||
27980 | ||
c32bde28 | 27981 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27982 | PyObject *resultobj; |
27983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27984 | int arg2 ; | |
27985 | bool result; | |
27986 | PyObject * obj0 = 0 ; | |
994141e6 | 27987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27988 | char *kwnames[] = { |
27989 | (char *) "self",(char *) "orient", NULL | |
27990 | }; | |
27991 | ||
994141e6 | 27992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27995 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 27996 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27997 | { |
27998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27999 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
28000 | ||
28001 | wxPyEndAllowThreads(__tstate); | |
28002 | if (PyErr_Occurred()) SWIG_fail; | |
28003 | } | |
4f89f6a3 RD |
28004 | { |
28005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28006 | } | |
d14a1e28 RD |
28007 | return resultobj; |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
c32bde28 | 28013 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28014 | PyObject *resultobj; |
28015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28016 | int arg2 ; | |
28017 | int arg3 ; | |
28018 | int arg4 ; | |
28019 | int arg5 ; | |
ae8162c8 | 28020 | bool arg6 = (bool) true ; |
d14a1e28 | 28021 | PyObject * obj0 = 0 ; |
994141e6 RD |
28022 | PyObject * obj1 = 0 ; |
28023 | PyObject * obj2 = 0 ; | |
28024 | PyObject * obj3 = 0 ; | |
28025 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28026 | PyObject * obj5 = 0 ; |
28027 | char *kwnames[] = { | |
41e2b43e | 28028 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
28029 | }; |
28030 | ||
994141e6 | 28031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28034 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28035 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28036 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28037 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28038 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 28039 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28040 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 28041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28042 | if (obj5) { |
c32bde28 | 28043 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 28044 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28045 | } |
28046 | { | |
28047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28048 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
28049 | ||
28050 | wxPyEndAllowThreads(__tstate); | |
28051 | if (PyErr_Occurred()) SWIG_fail; | |
28052 | } | |
28053 | Py_INCREF(Py_None); resultobj = Py_None; | |
28054 | return resultobj; | |
28055 | fail: | |
28056 | return NULL; | |
28057 | } | |
28058 | ||
28059 | ||
c32bde28 | 28060 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28061 | PyObject *resultobj; |
28062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28063 | int arg2 ; | |
28064 | int arg3 ; | |
ae8162c8 | 28065 | bool arg4 = (bool) true ; |
d14a1e28 | 28066 | PyObject * obj0 = 0 ; |
994141e6 RD |
28067 | PyObject * obj1 = 0 ; |
28068 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28069 | PyObject * obj3 = 0 ; |
28070 | char *kwnames[] = { | |
15afbcd0 | 28071 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
28072 | }; |
28073 | ||
994141e6 | 28074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28077 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28078 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28079 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28081 | if (obj3) { |
c32bde28 | 28082 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 28083 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28084 | } |
28085 | { | |
28086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28087 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
28088 | ||
28089 | wxPyEndAllowThreads(__tstate); | |
28090 | if (PyErr_Occurred()) SWIG_fail; | |
28091 | } | |
28092 | Py_INCREF(Py_None); resultobj = Py_None; | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
c32bde28 | 28099 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28100 | PyObject *resultobj; |
28101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28102 | int arg2 ; | |
28103 | int result; | |
28104 | PyObject * obj0 = 0 ; | |
994141e6 | 28105 | PyObject * obj1 = 0 ; |
d14a1e28 | 28106 | char *kwnames[] = { |
15afbcd0 | 28107 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
28108 | }; |
28109 | ||
994141e6 | 28110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28113 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28114 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28115 | { |
28116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28117 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
28118 | ||
28119 | wxPyEndAllowThreads(__tstate); | |
28120 | if (PyErr_Occurred()) SWIG_fail; | |
28121 | } | |
c32bde28 | 28122 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
28123 | return resultobj; |
28124 | fail: | |
28125 | return NULL; | |
28126 | } | |
28127 | ||
28128 | ||
c32bde28 | 28129 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28130 | PyObject *resultobj; |
28131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28132 | int arg2 ; | |
28133 | int result; | |
28134 | PyObject * obj0 = 0 ; | |
994141e6 | 28135 | PyObject * obj1 = 0 ; |
d14a1e28 | 28136 | char *kwnames[] = { |
15afbcd0 | 28137 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
28138 | }; |
28139 | ||
994141e6 | 28140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28143 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28144 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28145 | { |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
28148 | ||
28149 | wxPyEndAllowThreads(__tstate); | |
28150 | if (PyErr_Occurred()) SWIG_fail; | |
28151 | } | |
c32bde28 | 28152 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
28153 | return resultobj; |
28154 | fail: | |
28155 | return NULL; | |
28156 | } | |
28157 | ||
28158 | ||
c32bde28 | 28159 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28160 | PyObject *resultobj; |
28161 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28162 | int arg2 ; | |
28163 | int result; | |
28164 | PyObject * obj0 = 0 ; | |
994141e6 | 28165 | PyObject * obj1 = 0 ; |
d14a1e28 | 28166 | char *kwnames[] = { |
15afbcd0 | 28167 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
28168 | }; |
28169 | ||
994141e6 | 28170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28173 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28174 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28175 | { |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28177 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28178 | ||
28179 | wxPyEndAllowThreads(__tstate); | |
28180 | if (PyErr_Occurred()) SWIG_fail; | |
28181 | } | |
c32bde28 | 28182 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
28183 | return resultobj; |
28184 | fail: | |
28185 | return NULL; | |
28186 | } | |
28187 | ||
28188 | ||
c32bde28 | 28189 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28190 | PyObject *resultobj; |
28191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28192 | int arg2 ; | |
28193 | int arg3 ; | |
28194 | wxRect *arg4 = (wxRect *) NULL ; | |
28195 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28196 | PyObject * obj1 = 0 ; |
28197 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28198 | PyObject * obj3 = 0 ; |
28199 | char *kwnames[] = { | |
28200 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28201 | }; | |
28202 | ||
994141e6 | 28203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28206 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28207 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28208 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28209 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28210 | if (obj3) { |
15afbcd0 RD |
28211 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
28212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28213 | } |
28214 | { | |
28215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28216 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28217 | ||
28218 | wxPyEndAllowThreads(__tstate); | |
28219 | if (PyErr_Occurred()) SWIG_fail; | |
28220 | } | |
28221 | Py_INCREF(Py_None); resultobj = Py_None; | |
28222 | return resultobj; | |
28223 | fail: | |
28224 | return NULL; | |
28225 | } | |
28226 | ||
28227 | ||
c32bde28 | 28228 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28229 | PyObject *resultobj; |
28230 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28231 | int arg2 ; | |
28232 | bool result; | |
28233 | PyObject * obj0 = 0 ; | |
994141e6 | 28234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28235 | char *kwnames[] = { |
28236 | (char *) "self",(char *) "lines", NULL | |
28237 | }; | |
28238 | ||
994141e6 | 28239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28242 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28243 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28244 | { |
28245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28246 | result = (bool)(arg1)->ScrollLines(arg2); | |
28247 | ||
28248 | wxPyEndAllowThreads(__tstate); | |
28249 | if (PyErr_Occurred()) SWIG_fail; | |
28250 | } | |
4f89f6a3 RD |
28251 | { |
28252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28253 | } | |
d14a1e28 RD |
28254 | return resultobj; |
28255 | fail: | |
28256 | return NULL; | |
28257 | } | |
28258 | ||
28259 | ||
c32bde28 | 28260 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28261 | PyObject *resultobj; |
28262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28263 | int arg2 ; | |
28264 | bool result; | |
28265 | PyObject * obj0 = 0 ; | |
994141e6 | 28266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28267 | char *kwnames[] = { |
28268 | (char *) "self",(char *) "pages", NULL | |
28269 | }; | |
28270 | ||
994141e6 | 28271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28274 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28275 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28276 | { |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | result = (bool)(arg1)->ScrollPages(arg2); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
4f89f6a3 RD |
28283 | { |
28284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28285 | } | |
d14a1e28 RD |
28286 | return resultobj; |
28287 | fail: | |
28288 | return NULL; | |
28289 | } | |
28290 | ||
28291 | ||
c32bde28 | 28292 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28293 | PyObject *resultobj; |
28294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28295 | bool result; | |
28296 | PyObject * obj0 = 0 ; | |
28297 | char *kwnames[] = { | |
28298 | (char *) "self", NULL | |
28299 | }; | |
28300 | ||
28301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28304 | { |
28305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28306 | result = (bool)(arg1)->LineUp(); | |
28307 | ||
28308 | wxPyEndAllowThreads(__tstate); | |
28309 | if (PyErr_Occurred()) SWIG_fail; | |
28310 | } | |
4f89f6a3 RD |
28311 | { |
28312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28313 | } | |
d14a1e28 RD |
28314 | return resultobj; |
28315 | fail: | |
28316 | return NULL; | |
28317 | } | |
28318 | ||
28319 | ||
c32bde28 | 28320 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28321 | PyObject *resultobj; |
28322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28323 | bool result; | |
28324 | PyObject * obj0 = 0 ; | |
28325 | char *kwnames[] = { | |
28326 | (char *) "self", NULL | |
28327 | }; | |
28328 | ||
28329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28332 | { |
28333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28334 | result = (bool)(arg1)->LineDown(); | |
28335 | ||
28336 | wxPyEndAllowThreads(__tstate); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
28338 | } | |
4f89f6a3 RD |
28339 | { |
28340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28341 | } | |
d14a1e28 RD |
28342 | return resultobj; |
28343 | fail: | |
28344 | return NULL; | |
28345 | } | |
28346 | ||
28347 | ||
c32bde28 | 28348 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28349 | PyObject *resultobj; |
28350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28351 | bool result; | |
28352 | PyObject * obj0 = 0 ; | |
28353 | char *kwnames[] = { | |
28354 | (char *) "self", NULL | |
28355 | }; | |
28356 | ||
28357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28360 | { |
28361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28362 | result = (bool)(arg1)->PageUp(); | |
28363 | ||
28364 | wxPyEndAllowThreads(__tstate); | |
28365 | if (PyErr_Occurred()) SWIG_fail; | |
28366 | } | |
4f89f6a3 RD |
28367 | { |
28368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28369 | } | |
d14a1e28 RD |
28370 | return resultobj; |
28371 | fail: | |
28372 | return NULL; | |
28373 | } | |
28374 | ||
28375 | ||
c32bde28 | 28376 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28377 | PyObject *resultobj; |
28378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28379 | bool result; | |
28380 | PyObject * obj0 = 0 ; | |
28381 | char *kwnames[] = { | |
28382 | (char *) "self", NULL | |
28383 | }; | |
28384 | ||
28385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28388 | { |
28389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28390 | result = (bool)(arg1)->PageDown(); | |
28391 | ||
28392 | wxPyEndAllowThreads(__tstate); | |
28393 | if (PyErr_Occurred()) SWIG_fail; | |
28394 | } | |
4f89f6a3 RD |
28395 | { |
28396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28397 | } | |
d14a1e28 RD |
28398 | return resultobj; |
28399 | fail: | |
28400 | return NULL; | |
28401 | } | |
28402 | ||
28403 | ||
c32bde28 | 28404 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28405 | PyObject *resultobj; |
28406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28407 | wxString *arg2 = 0 ; | |
ae8162c8 | 28408 | bool temp2 = false ; |
d14a1e28 RD |
28409 | PyObject * obj0 = 0 ; |
28410 | PyObject * obj1 = 0 ; | |
28411 | char *kwnames[] = { | |
28412 | (char *) "self",(char *) "text", NULL | |
28413 | }; | |
28414 | ||
28415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28418 | { |
28419 | arg2 = wxString_in_helper(obj1); | |
28420 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28421 | temp2 = true; |
d14a1e28 RD |
28422 | } |
28423 | { | |
28424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28425 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28426 | ||
28427 | wxPyEndAllowThreads(__tstate); | |
28428 | if (PyErr_Occurred()) SWIG_fail; | |
28429 | } | |
28430 | Py_INCREF(Py_None); resultobj = Py_None; | |
28431 | { | |
28432 | if (temp2) | |
28433 | delete arg2; | |
28434 | } | |
28435 | return resultobj; | |
28436 | fail: | |
28437 | { | |
28438 | if (temp2) | |
28439 | delete arg2; | |
28440 | } | |
28441 | return NULL; | |
28442 | } | |
28443 | ||
28444 | ||
c32bde28 | 28445 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28446 | PyObject *resultobj; |
28447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28448 | wxString *arg2 = 0 ; | |
ae8162c8 | 28449 | bool temp2 = false ; |
d14a1e28 RD |
28450 | PyObject * obj0 = 0 ; |
28451 | PyObject * obj1 = 0 ; | |
28452 | char *kwnames[] = { | |
28453 | (char *) "self",(char *) "text", NULL | |
28454 | }; | |
28455 | ||
28456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28459 | { |
28460 | arg2 = wxString_in_helper(obj1); | |
28461 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28462 | temp2 = true; |
d14a1e28 RD |
28463 | } |
28464 | { | |
28465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28466 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28467 | ||
28468 | wxPyEndAllowThreads(__tstate); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
28471 | Py_INCREF(Py_None); resultobj = Py_None; | |
28472 | { | |
28473 | if (temp2) | |
28474 | delete arg2; | |
28475 | } | |
28476 | return resultobj; | |
28477 | fail: | |
28478 | { | |
28479 | if (temp2) | |
28480 | delete arg2; | |
28481 | } | |
28482 | return NULL; | |
28483 | } | |
28484 | ||
28485 | ||
c32bde28 | 28486 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28487 | PyObject *resultobj; |
28488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28489 | wxString result; | |
28490 | PyObject * obj0 = 0 ; | |
28491 | char *kwnames[] = { | |
28492 | (char *) "self", NULL | |
28493 | }; | |
28494 | ||
28495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28498 | { |
28499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28500 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28501 | ||
28502 | wxPyEndAllowThreads(__tstate); | |
28503 | if (PyErr_Occurred()) SWIG_fail; | |
28504 | } | |
28505 | { | |
28506 | #if wxUSE_UNICODE | |
28507 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28508 | #else | |
28509 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28510 | #endif | |
28511 | } | |
28512 | return resultobj; | |
28513 | fail: | |
28514 | return NULL; | |
28515 | } | |
28516 | ||
28517 | ||
c32bde28 | 28518 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28519 | PyObject *resultobj; |
28520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28521 | wxString *arg2 = 0 ; | |
ae8162c8 | 28522 | bool temp2 = false ; |
d14a1e28 RD |
28523 | PyObject * obj0 = 0 ; |
28524 | PyObject * obj1 = 0 ; | |
28525 | char *kwnames[] = { | |
28526 | (char *) "self",(char *) "tip", NULL | |
28527 | }; | |
28528 | ||
28529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28532 | { |
28533 | arg2 = wxString_in_helper(obj1); | |
28534 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28535 | temp2 = true; |
d14a1e28 RD |
28536 | } |
28537 | { | |
28538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28539 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28540 | ||
28541 | wxPyEndAllowThreads(__tstate); | |
28542 | if (PyErr_Occurred()) SWIG_fail; | |
28543 | } | |
28544 | Py_INCREF(Py_None); resultobj = Py_None; | |
28545 | { | |
28546 | if (temp2) | |
28547 | delete arg2; | |
28548 | } | |
28549 | return resultobj; | |
28550 | fail: | |
28551 | { | |
28552 | if (temp2) | |
28553 | delete arg2; | |
28554 | } | |
28555 | return NULL; | |
28556 | } | |
28557 | ||
28558 | ||
c32bde28 | 28559 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28560 | PyObject *resultobj; |
28561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28562 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28563 | PyObject * obj0 = 0 ; | |
28564 | PyObject * obj1 = 0 ; | |
28565 | char *kwnames[] = { | |
28566 | (char *) "self",(char *) "tip", NULL | |
28567 | }; | |
28568 | ||
28569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28574 | { |
28575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28576 | (arg1)->SetToolTip(arg2); | |
28577 | ||
28578 | wxPyEndAllowThreads(__tstate); | |
28579 | if (PyErr_Occurred()) SWIG_fail; | |
28580 | } | |
28581 | Py_INCREF(Py_None); resultobj = Py_None; | |
28582 | return resultobj; | |
28583 | fail: | |
28584 | return NULL; | |
28585 | } | |
28586 | ||
28587 | ||
c32bde28 | 28588 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28589 | PyObject *resultobj; |
28590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28591 | wxToolTip *result; | |
28592 | PyObject * obj0 = 0 ; | |
28593 | char *kwnames[] = { | |
28594 | (char *) "self", NULL | |
28595 | }; | |
28596 | ||
28597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28600 | { |
28601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28602 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28603 | ||
28604 | wxPyEndAllowThreads(__tstate); | |
28605 | if (PyErr_Occurred()) SWIG_fail; | |
28606 | } | |
28607 | { | |
412d302d | 28608 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28609 | } |
28610 | return resultobj; | |
28611 | fail: | |
28612 | return NULL; | |
28613 | } | |
28614 | ||
28615 | ||
c32bde28 | 28616 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28617 | PyObject *resultobj; |
28618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 28619 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
28620 | PyObject * obj0 = 0 ; |
28621 | PyObject * obj1 = 0 ; | |
28622 | char *kwnames[] = { | |
28623 | (char *) "self",(char *) "dropTarget", NULL | |
28624 | }; | |
28625 | ||
28626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28630 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
28631 | { |
28632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28633 | (arg1)->SetDropTarget(arg2); | |
28634 | ||
28635 | wxPyEndAllowThreads(__tstate); | |
28636 | if (PyErr_Occurred()) SWIG_fail; | |
28637 | } | |
28638 | Py_INCREF(Py_None); resultobj = Py_None; | |
28639 | return resultobj; | |
28640 | fail: | |
28641 | return NULL; | |
28642 | } | |
28643 | ||
28644 | ||
c32bde28 | 28645 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28646 | PyObject *resultobj; |
28647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 28648 | wxPyDropTarget *result; |
d14a1e28 RD |
28649 | PyObject * obj0 = 0 ; |
28650 | char *kwnames[] = { | |
28651 | (char *) "self", NULL | |
28652 | }; | |
28653 | ||
28654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28657 | { |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 28659 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
28660 | |
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
15afbcd0 | 28664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
28665 | return resultobj; |
28666 | fail: | |
28667 | return NULL; | |
28668 | } | |
28669 | ||
28670 | ||
c32bde28 | 28671 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28672 | PyObject *resultobj; |
28673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28674 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28675 | PyObject * obj0 = 0 ; | |
28676 | PyObject * obj1 = 0 ; | |
28677 | char *kwnames[] = { | |
28678 | (char *) "self",(char *) "constraints", NULL | |
28679 | }; | |
28680 | ||
28681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28686 | { |
28687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28688 | (arg1)->SetConstraints(arg2); | |
28689 | ||
28690 | wxPyEndAllowThreads(__tstate); | |
28691 | if (PyErr_Occurred()) SWIG_fail; | |
28692 | } | |
28693 | Py_INCREF(Py_None); resultobj = Py_None; | |
28694 | return resultobj; | |
28695 | fail: | |
28696 | return NULL; | |
28697 | } | |
28698 | ||
28699 | ||
c32bde28 | 28700 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28701 | PyObject *resultobj; |
28702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28703 | wxLayoutConstraints *result; | |
28704 | PyObject * obj0 = 0 ; | |
28705 | char *kwnames[] = { | |
28706 | (char *) "self", NULL | |
28707 | }; | |
28708 | ||
28709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28712 | { |
28713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28714 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28715 | ||
28716 | wxPyEndAllowThreads(__tstate); | |
28717 | if (PyErr_Occurred()) SWIG_fail; | |
28718 | } | |
15afbcd0 | 28719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
28720 | return resultobj; |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
c32bde28 | 28726 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28727 | PyObject *resultobj; |
28728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28729 | bool arg2 ; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | PyObject * obj1 = 0 ; | |
28732 | char *kwnames[] = { | |
28733 | (char *) "self",(char *) "autoLayout", NULL | |
28734 | }; | |
28735 | ||
28736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28739 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 28740 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28741 | { |
28742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28743 | (arg1)->SetAutoLayout(arg2); | |
28744 | ||
28745 | wxPyEndAllowThreads(__tstate); | |
28746 | if (PyErr_Occurred()) SWIG_fail; | |
28747 | } | |
28748 | Py_INCREF(Py_None); resultobj = Py_None; | |
28749 | return resultobj; | |
28750 | fail: | |
28751 | return NULL; | |
28752 | } | |
28753 | ||
28754 | ||
c32bde28 | 28755 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28756 | PyObject *resultobj; |
28757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28758 | bool result; | |
28759 | PyObject * obj0 = 0 ; | |
28760 | char *kwnames[] = { | |
28761 | (char *) "self", NULL | |
28762 | }; | |
28763 | ||
28764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28767 | { |
28768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28769 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28770 | ||
28771 | wxPyEndAllowThreads(__tstate); | |
28772 | if (PyErr_Occurred()) SWIG_fail; | |
28773 | } | |
4f89f6a3 RD |
28774 | { |
28775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28776 | } | |
d14a1e28 RD |
28777 | return resultobj; |
28778 | fail: | |
28779 | return NULL; | |
28780 | } | |
28781 | ||
28782 | ||
c32bde28 | 28783 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28784 | PyObject *resultobj; |
28785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28786 | bool result; | |
28787 | PyObject * obj0 = 0 ; | |
28788 | char *kwnames[] = { | |
28789 | (char *) "self", NULL | |
28790 | }; | |
28791 | ||
28792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28795 | { |
28796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28797 | result = (bool)(arg1)->Layout(); | |
28798 | ||
28799 | wxPyEndAllowThreads(__tstate); | |
28800 | if (PyErr_Occurred()) SWIG_fail; | |
28801 | } | |
4f89f6a3 RD |
28802 | { |
28803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28804 | } | |
d14a1e28 RD |
28805 | return resultobj; |
28806 | fail: | |
28807 | return NULL; | |
28808 | } | |
28809 | ||
28810 | ||
c32bde28 | 28811 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28812 | PyObject *resultobj; |
28813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28814 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28815 | bool arg3 = (bool) true ; |
d14a1e28 RD |
28816 | PyObject * obj0 = 0 ; |
28817 | PyObject * obj1 = 0 ; | |
28818 | PyObject * obj2 = 0 ; | |
28819 | char *kwnames[] = { | |
28820 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28821 | }; | |
28822 | ||
28823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 28828 | if (obj2) { |
c32bde28 | 28829 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 28830 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28831 | } |
28832 | { | |
28833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28834 | (arg1)->SetSizer(arg2,arg3); | |
28835 | ||
28836 | wxPyEndAllowThreads(__tstate); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
28838 | } | |
28839 | Py_INCREF(Py_None); resultobj = Py_None; | |
28840 | return resultobj; | |
28841 | fail: | |
28842 | return NULL; | |
28843 | } | |
28844 | ||
28845 | ||
c32bde28 | 28846 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28847 | PyObject *resultobj; |
28848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28849 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28850 | bool arg3 = (bool) true ; |
d14a1e28 RD |
28851 | PyObject * obj0 = 0 ; |
28852 | PyObject * obj1 = 0 ; | |
28853 | PyObject * obj2 = 0 ; | |
28854 | char *kwnames[] = { | |
28855 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28856 | }; | |
28857 | ||
28858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 28863 | if (obj2) { |
c32bde28 | 28864 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 28865 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28866 | } |
28867 | { | |
28868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28869 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28870 | ||
28871 | wxPyEndAllowThreads(__tstate); | |
28872 | if (PyErr_Occurred()) SWIG_fail; | |
28873 | } | |
28874 | Py_INCREF(Py_None); resultobj = Py_None; | |
28875 | return resultobj; | |
28876 | fail: | |
28877 | return NULL; | |
28878 | } | |
28879 | ||
28880 | ||
c32bde28 | 28881 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28882 | PyObject *resultobj; |
28883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28884 | wxSizer *result; | |
28885 | PyObject * obj0 = 0 ; | |
28886 | char *kwnames[] = { | |
28887 | (char *) "self", NULL | |
28888 | }; | |
28889 | ||
28890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28893 | { |
28894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28895 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28896 | ||
28897 | wxPyEndAllowThreads(__tstate); | |
28898 | if (PyErr_Occurred()) SWIG_fail; | |
28899 | } | |
28900 | { | |
412d302d | 28901 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
28902 | } |
28903 | return resultobj; | |
28904 | fail: | |
28905 | return NULL; | |
28906 | } | |
28907 | ||
28908 | ||
c32bde28 | 28909 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28910 | PyObject *resultobj; |
28911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28912 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28913 | PyObject * obj0 = 0 ; | |
28914 | PyObject * obj1 = 0 ; | |
28915 | char *kwnames[] = { | |
28916 | (char *) "self",(char *) "sizer", NULL | |
28917 | }; | |
28918 | ||
28919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28924 | { |
28925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28926 | (arg1)->SetContainingSizer(arg2); | |
28927 | ||
28928 | wxPyEndAllowThreads(__tstate); | |
28929 | if (PyErr_Occurred()) SWIG_fail; | |
28930 | } | |
28931 | Py_INCREF(Py_None); resultobj = Py_None; | |
28932 | return resultobj; | |
28933 | fail: | |
28934 | return NULL; | |
28935 | } | |
28936 | ||
28937 | ||
c32bde28 | 28938 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28939 | PyObject *resultobj; |
28940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28941 | wxSizer *result; | |
28942 | PyObject * obj0 = 0 ; | |
28943 | char *kwnames[] = { | |
28944 | (char *) "self", NULL | |
28945 | }; | |
28946 | ||
28947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28950 | { |
28951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28952 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28953 | ||
28954 | wxPyEndAllowThreads(__tstate); | |
28955 | if (PyErr_Occurred()) SWIG_fail; | |
28956 | } | |
28957 | { | |
412d302d | 28958 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
28959 | } |
28960 | return resultobj; | |
28961 | fail: | |
28962 | return NULL; | |
28963 | } | |
28964 | ||
28965 | ||
c32bde28 | 28966 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
28967 | PyObject *resultobj; |
28968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28969 | PyObject * obj0 = 0 ; | |
28970 | char *kwnames[] = { | |
28971 | (char *) "self", NULL | |
28972 | }; | |
28973 | ||
28974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28977 | { | |
28978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28979 | (arg1)->InheritAttributes(); | |
28980 | ||
28981 | wxPyEndAllowThreads(__tstate); | |
28982 | if (PyErr_Occurred()) SWIG_fail; | |
28983 | } | |
28984 | Py_INCREF(Py_None); resultobj = Py_None; | |
28985 | return resultobj; | |
28986 | fail: | |
28987 | return NULL; | |
28988 | } | |
28989 | ||
28990 | ||
c32bde28 | 28991 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
28992 | PyObject *resultobj; |
28993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28994 | bool result; | |
28995 | PyObject * obj0 = 0 ; | |
28996 | char *kwnames[] = { | |
28997 | (char *) "self", NULL | |
28998 | }; | |
28999 | ||
29000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29003 | { | |
29004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29005 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
29006 | ||
29007 | wxPyEndAllowThreads(__tstate); | |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
29009 | } | |
29010 | { | |
29011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29012 | } | |
29013 | return resultobj; | |
29014 | fail: | |
29015 | return NULL; | |
29016 | } | |
29017 | ||
29018 | ||
c32bde28 | 29019 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29020 | PyObject *obj; |
29021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29022 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
29023 | Py_INCREF(obj); | |
29024 | return Py_BuildValue((char *)""); | |
29025 | } | |
c32bde28 | 29026 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29027 | PyObject *resultobj; |
29028 | long arg1 ; | |
29029 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29030 | wxWindow *result; | |
994141e6 | 29031 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29032 | PyObject * obj1 = 0 ; |
29033 | char *kwnames[] = { | |
29034 | (char *) "id",(char *) "parent", NULL | |
29035 | }; | |
29036 | ||
994141e6 | 29037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
c32bde28 | 29038 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 29039 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29040 | if (obj1) { |
15afbcd0 RD |
29041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29043 | } |
29044 | { | |
e3b71cb8 | 29045 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29047 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
29048 | ||
29049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29050 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29051 | } |
29052 | { | |
412d302d | 29053 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29054 | } |
29055 | return resultobj; | |
29056 | fail: | |
29057 | return NULL; | |
29058 | } | |
29059 | ||
29060 | ||
c32bde28 | 29061 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29062 | PyObject *resultobj; |
29063 | wxString *arg1 = 0 ; | |
29064 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29065 | wxWindow *result; | |
ae8162c8 | 29066 | bool temp1 = false ; |
d14a1e28 RD |
29067 | PyObject * obj0 = 0 ; |
29068 | PyObject * obj1 = 0 ; | |
29069 | char *kwnames[] = { | |
29070 | (char *) "name",(char *) "parent", NULL | |
29071 | }; | |
29072 | ||
29073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
29074 | { | |
29075 | arg1 = wxString_in_helper(obj0); | |
29076 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29077 | temp1 = true; |
d14a1e28 RD |
29078 | } |
29079 | if (obj1) { | |
15afbcd0 RD |
29080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29082 | } |
29083 | { | |
e3b71cb8 | 29084 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29086 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
29087 | ||
29088 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29089 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29090 | } |
29091 | { | |
412d302d | 29092 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29093 | } |
29094 | { | |
29095 | if (temp1) | |
29096 | delete arg1; | |
29097 | } | |
29098 | return resultobj; | |
29099 | fail: | |
29100 | { | |
29101 | if (temp1) | |
29102 | delete arg1; | |
29103 | } | |
29104 | return NULL; | |
29105 | } | |
29106 | ||
29107 | ||
c32bde28 | 29108 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29109 | PyObject *resultobj; |
29110 | wxString *arg1 = 0 ; | |
29111 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29112 | wxWindow *result; | |
ae8162c8 | 29113 | bool temp1 = false ; |
d14a1e28 RD |
29114 | PyObject * obj0 = 0 ; |
29115 | PyObject * obj1 = 0 ; | |
29116 | char *kwnames[] = { | |
29117 | (char *) "label",(char *) "parent", NULL | |
29118 | }; | |
29119 | ||
29120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
29121 | { | |
29122 | arg1 = wxString_in_helper(obj0); | |
29123 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29124 | temp1 = true; |
d14a1e28 RD |
29125 | } |
29126 | if (obj1) { | |
15afbcd0 RD |
29127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29129 | } |
29130 | { | |
e3b71cb8 | 29131 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29133 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29134 | ||
29135 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29136 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29137 | } |
29138 | { | |
412d302d | 29139 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29140 | } |
29141 | { | |
29142 | if (temp1) | |
29143 | delete arg1; | |
29144 | } | |
29145 | return resultobj; | |
29146 | fail: | |
29147 | { | |
29148 | if (temp1) | |
29149 | delete arg1; | |
29150 | } | |
29151 | return NULL; | |
29152 | } | |
29153 | ||
29154 | ||
c32bde28 | 29155 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 29156 | PyObject *resultobj; |
4276dc52 RD |
29157 | wxWindow *arg1 = (wxWindow *) 0 ; |
29158 | unsigned long arg2 ; | |
d14a1e28 RD |
29159 | wxWindow *result; |
29160 | PyObject * obj0 = 0 ; | |
4276dc52 | 29161 | PyObject * obj1 = 0 ; |
d14a1e28 | 29162 | char *kwnames[] = { |
4276dc52 | 29163 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
29164 | }; |
29165 | ||
4276dc52 RD |
29166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
29167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29169 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 29170 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29171 | { |
29172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 29173 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
29174 | |
29175 | wxPyEndAllowThreads(__tstate); | |
29176 | if (PyErr_Occurred()) SWIG_fail; | |
29177 | } | |
29178 | { | |
412d302d | 29179 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29180 | } |
29181 | return resultobj; | |
29182 | fail: | |
29183 | return NULL; | |
29184 | } | |
29185 | ||
29186 | ||
c32bde28 | 29187 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29188 | PyObject *resultobj; |
29189 | wxValidator *result; | |
29190 | char *kwnames[] = { | |
29191 | NULL | |
29192 | }; | |
29193 | ||
29194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29195 | { | |
29196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29197 | result = (wxValidator *)new wxValidator(); | |
29198 | ||
29199 | wxPyEndAllowThreads(__tstate); | |
29200 | if (PyErr_Occurred()) SWIG_fail; | |
29201 | } | |
b0f7404b | 29202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d14a1e28 RD |
29203 | return resultobj; |
29204 | fail: | |
29205 | return NULL; | |
29206 | } | |
29207 | ||
29208 | ||
c32bde28 | 29209 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29210 | PyObject *resultobj; |
29211 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29212 | wxValidator *result; | |
29213 | PyObject * obj0 = 0 ; | |
29214 | char *kwnames[] = { | |
29215 | (char *) "self", NULL | |
29216 | }; | |
29217 | ||
29218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29221 | { |
29222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29223 | result = (wxValidator *)(arg1)->Clone(); | |
29224 | ||
29225 | wxPyEndAllowThreads(__tstate); | |
29226 | if (PyErr_Occurred()) SWIG_fail; | |
29227 | } | |
29228 | { | |
412d302d | 29229 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29230 | } |
29231 | return resultobj; | |
29232 | fail: | |
29233 | return NULL; | |
29234 | } | |
29235 | ||
29236 | ||
c32bde28 | 29237 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29238 | PyObject *resultobj; |
29239 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29240 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29241 | bool result; | |
29242 | PyObject * obj0 = 0 ; | |
29243 | PyObject * obj1 = 0 ; | |
29244 | char *kwnames[] = { | |
29245 | (char *) "self",(char *) "parent", NULL | |
29246 | }; | |
29247 | ||
29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29253 | { |
29254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29255 | result = (bool)(arg1)->Validate(arg2); | |
29256 | ||
29257 | wxPyEndAllowThreads(__tstate); | |
29258 | if (PyErr_Occurred()) SWIG_fail; | |
29259 | } | |
4f89f6a3 RD |
29260 | { |
29261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29262 | } | |
d14a1e28 RD |
29263 | return resultobj; |
29264 | fail: | |
29265 | return NULL; | |
29266 | } | |
29267 | ||
29268 | ||
c32bde28 | 29269 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29270 | PyObject *resultobj; |
29271 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29272 | bool result; | |
29273 | PyObject * obj0 = 0 ; | |
29274 | char *kwnames[] = { | |
29275 | (char *) "self", NULL | |
29276 | }; | |
29277 | ||
29278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29281 | { |
29282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29283 | result = (bool)(arg1)->TransferToWindow(); | |
29284 | ||
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
4f89f6a3 RD |
29288 | { |
29289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29290 | } | |
d14a1e28 RD |
29291 | return resultobj; |
29292 | fail: | |
29293 | return NULL; | |
29294 | } | |
29295 | ||
29296 | ||
c32bde28 | 29297 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29298 | PyObject *resultobj; |
29299 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29300 | bool result; | |
29301 | PyObject * obj0 = 0 ; | |
29302 | char *kwnames[] = { | |
29303 | (char *) "self", NULL | |
29304 | }; | |
29305 | ||
29306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29309 | { |
29310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29311 | result = (bool)(arg1)->TransferFromWindow(); | |
29312 | ||
29313 | wxPyEndAllowThreads(__tstate); | |
29314 | if (PyErr_Occurred()) SWIG_fail; | |
29315 | } | |
4f89f6a3 RD |
29316 | { |
29317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29318 | } | |
d14a1e28 RD |
29319 | return resultobj; |
29320 | fail: | |
29321 | return NULL; | |
29322 | } | |
29323 | ||
29324 | ||
c32bde28 | 29325 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29326 | PyObject *resultobj; |
29327 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29328 | wxWindow *result; | |
29329 | PyObject * obj0 = 0 ; | |
29330 | char *kwnames[] = { | |
29331 | (char *) "self", NULL | |
29332 | }; | |
29333 | ||
29334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29337 | { |
29338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29339 | result = (wxWindow *)(arg1)->GetWindow(); | |
29340 | ||
29341 | wxPyEndAllowThreads(__tstate); | |
29342 | if (PyErr_Occurred()) SWIG_fail; | |
29343 | } | |
29344 | { | |
412d302d | 29345 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29346 | } |
29347 | return resultobj; | |
29348 | fail: | |
29349 | return NULL; | |
29350 | } | |
29351 | ||
29352 | ||
c32bde28 | 29353 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29354 | PyObject *resultobj; |
29355 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29357 | PyObject * obj0 = 0 ; | |
29358 | PyObject * obj1 = 0 ; | |
29359 | char *kwnames[] = { | |
29360 | (char *) "self",(char *) "window", NULL | |
29361 | }; | |
29362 | ||
29363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
29365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29368 | { |
29369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29370 | (arg1)->SetWindow(arg2); | |
29371 | ||
29372 | wxPyEndAllowThreads(__tstate); | |
29373 | if (PyErr_Occurred()) SWIG_fail; | |
29374 | } | |
29375 | Py_INCREF(Py_None); resultobj = Py_None; | |
29376 | return resultobj; | |
29377 | fail: | |
29378 | return NULL; | |
29379 | } | |
29380 | ||
29381 | ||
c32bde28 | 29382 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29383 | PyObject *resultobj; |
29384 | bool result; | |
29385 | char *kwnames[] = { | |
29386 | NULL | |
29387 | }; | |
29388 | ||
29389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29390 | { | |
29391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29392 | result = (bool)wxValidator::IsSilent(); | |
29393 | ||
29394 | wxPyEndAllowThreads(__tstate); | |
29395 | if (PyErr_Occurred()) SWIG_fail; | |
29396 | } | |
4f89f6a3 RD |
29397 | { |
29398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29399 | } | |
d14a1e28 RD |
29400 | return resultobj; |
29401 | fail: | |
29402 | return NULL; | |
29403 | } | |
29404 | ||
29405 | ||
c32bde28 | 29406 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 29407 | PyObject *resultobj; |
ae8162c8 | 29408 | int arg1 = (int) true ; |
994141e6 | 29409 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29410 | char *kwnames[] = { |
29411 | (char *) "doIt", NULL | |
29412 | }; | |
29413 | ||
994141e6 RD |
29414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
29415 | if (obj0) { | |
c32bde28 | 29416 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 29417 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29418 | } |
d14a1e28 RD |
29419 | { |
29420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29421 | wxValidator::SetBellOnError(arg1); | |
29422 | ||
29423 | wxPyEndAllowThreads(__tstate); | |
29424 | if (PyErr_Occurred()) SWIG_fail; | |
29425 | } | |
29426 | Py_INCREF(Py_None); resultobj = Py_None; | |
29427 | return resultobj; | |
29428 | fail: | |
29429 | return NULL; | |
29430 | } | |
29431 | ||
29432 | ||
c32bde28 | 29433 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29434 | PyObject *obj; |
29435 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29436 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29437 | Py_INCREF(obj); | |
29438 | return Py_BuildValue((char *)""); | |
29439 | } | |
c32bde28 | 29440 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29441 | PyObject *resultobj; |
29442 | wxPyValidator *result; | |
29443 | char *kwnames[] = { | |
29444 | NULL | |
29445 | }; | |
29446 | ||
29447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29448 | { | |
29449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29450 | result = (wxPyValidator *)new wxPyValidator(); | |
29451 | ||
29452 | wxPyEndAllowThreads(__tstate); | |
29453 | if (PyErr_Occurred()) SWIG_fail; | |
29454 | } | |
15afbcd0 | 29455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
29456 | return resultobj; |
29457 | fail: | |
29458 | return NULL; | |
29459 | } | |
29460 | ||
29461 | ||
c32bde28 | 29462 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29463 | PyObject *resultobj; |
29464 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29465 | PyObject *arg2 = (PyObject *) 0 ; | |
29466 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 29467 | int arg4 = (int) true ; |
d14a1e28 RD |
29468 | PyObject * obj0 = 0 ; |
29469 | PyObject * obj1 = 0 ; | |
29470 | PyObject * obj2 = 0 ; | |
994141e6 | 29471 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
29472 | char *kwnames[] = { |
29473 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29474 | }; | |
29475 | ||
994141e6 | 29476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
29478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29479 | arg2 = obj1; |
29480 | arg3 = obj2; | |
994141e6 | 29481 | if (obj3) { |
c32bde28 | 29482 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29483 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29484 | } |
d14a1e28 RD |
29485 | { |
29486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29487 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29488 | ||
29489 | wxPyEndAllowThreads(__tstate); | |
29490 | if (PyErr_Occurred()) SWIG_fail; | |
29491 | } | |
29492 | Py_INCREF(Py_None); resultobj = Py_None; | |
29493 | return resultobj; | |
29494 | fail: | |
29495 | return NULL; | |
29496 | } | |
29497 | ||
29498 | ||
c32bde28 | 29499 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29500 | PyObject *obj; |
29501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29502 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29503 | Py_INCREF(obj); | |
29504 | return Py_BuildValue((char *)""); | |
29505 | } | |
c32bde28 | 29506 | static int _wrap_DefaultValidator_set(PyObject *) { |
d14a1e28 RD |
29507 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29508 | return 1; | |
29509 | } | |
29510 | ||
29511 | ||
29512 | static PyObject *_wrap_DefaultValidator_get() { | |
29513 | PyObject *pyobj; | |
29514 | ||
15afbcd0 | 29515 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
29516 | return pyobj; |
29517 | } | |
29518 | ||
29519 | ||
c32bde28 | 29520 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29521 | PyObject *resultobj; |
29522 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29523 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29524 | long arg2 = (long) 0 ; | |
29525 | wxMenu *result; | |
ae8162c8 | 29526 | bool temp1 = false ; |
d14a1e28 | 29527 | PyObject * obj0 = 0 ; |
994141e6 | 29528 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29529 | char *kwnames[] = { |
29530 | (char *) "title",(char *) "style", NULL | |
29531 | }; | |
29532 | ||
994141e6 | 29533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
29534 | if (obj0) { |
29535 | { | |
29536 | arg1 = wxString_in_helper(obj0); | |
29537 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29538 | temp1 = true; |
d14a1e28 RD |
29539 | } |
29540 | } | |
994141e6 | 29541 | if (obj1) { |
c32bde28 | 29542 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 29543 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29544 | } |
d14a1e28 | 29545 | { |
e3b71cb8 | 29546 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29548 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29549 | ||
29550 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29551 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29552 | } |
b0f7404b | 29553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d14a1e28 RD |
29554 | { |
29555 | if (temp1) | |
29556 | delete arg1; | |
29557 | } | |
29558 | return resultobj; | |
29559 | fail: | |
29560 | { | |
29561 | if (temp1) | |
29562 | delete arg1; | |
29563 | } | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
c32bde28 | 29568 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29569 | PyObject *resultobj; |
29570 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29571 | int arg2 ; | |
29572 | wxString *arg3 = 0 ; | |
29573 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29574 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29575 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29576 | wxMenuItem *result; |
ae8162c8 RD |
29577 | bool temp3 = false ; |
29578 | bool temp4 = false ; | |
d14a1e28 | 29579 | PyObject * obj0 = 0 ; |
994141e6 | 29580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29581 | PyObject * obj2 = 0 ; |
29582 | PyObject * obj3 = 0 ; | |
994141e6 | 29583 | PyObject * obj4 = 0 ; |
d14a1e28 | 29584 | char *kwnames[] = { |
242b7b46 | 29585 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29586 | }; |
29587 | ||
994141e6 | 29588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29591 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29592 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29593 | { |
29594 | arg3 = wxString_in_helper(obj2); | |
29595 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29596 | temp3 = true; |
d14a1e28 RD |
29597 | } |
29598 | if (obj3) { | |
29599 | { | |
29600 | arg4 = wxString_in_helper(obj3); | |
29601 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29602 | temp4 = true; |
d14a1e28 RD |
29603 | } |
29604 | } | |
994141e6 | 29605 | if (obj4) { |
c32bde28 | 29606 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29607 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29608 | } |
d14a1e28 RD |
29609 | { |
29610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29611 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
29612 | |
29613 | wxPyEndAllowThreads(__tstate); | |
29614 | if (PyErr_Occurred()) SWIG_fail; | |
29615 | } | |
a41e16b6 | 29616 | { |
412d302d | 29617 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29618 | } |
d14a1e28 RD |
29619 | { |
29620 | if (temp3) | |
29621 | delete arg3; | |
29622 | } | |
29623 | { | |
29624 | if (temp4) | |
29625 | delete arg4; | |
29626 | } | |
29627 | return resultobj; | |
29628 | fail: | |
29629 | { | |
29630 | if (temp3) | |
29631 | delete arg3; | |
29632 | } | |
29633 | { | |
29634 | if (temp4) | |
29635 | delete arg4; | |
29636 | } | |
29637 | return NULL; | |
29638 | } | |
29639 | ||
29640 | ||
c32bde28 | 29641 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29642 | PyObject *resultobj; |
29643 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 29644 | wxMenuItem *result; |
d14a1e28 RD |
29645 | PyObject * obj0 = 0 ; |
29646 | char *kwnames[] = { | |
29647 | (char *) "self", NULL | |
29648 | }; | |
29649 | ||
29650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29653 | { |
29654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29655 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
29656 | |
29657 | wxPyEndAllowThreads(__tstate); | |
29658 | if (PyErr_Occurred()) SWIG_fail; | |
29659 | } | |
a41e16b6 | 29660 | { |
412d302d | 29661 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29662 | } |
d14a1e28 RD |
29663 | return resultobj; |
29664 | fail: | |
29665 | return NULL; | |
29666 | } | |
29667 | ||
29668 | ||
c32bde28 | 29669 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29670 | PyObject *resultobj; |
29671 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29672 | int arg2 ; | |
29673 | wxString *arg3 = 0 ; | |
29674 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29675 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29676 | wxMenuItem *result; |
ae8162c8 RD |
29677 | bool temp3 = false ; |
29678 | bool temp4 = false ; | |
d14a1e28 | 29679 | PyObject * obj0 = 0 ; |
994141e6 | 29680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29681 | PyObject * obj2 = 0 ; |
29682 | PyObject * obj3 = 0 ; | |
29683 | char *kwnames[] = { | |
242b7b46 | 29684 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29685 | }; |
29686 | ||
994141e6 | 29687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29690 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29691 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29692 | { |
29693 | arg3 = wxString_in_helper(obj2); | |
29694 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29695 | temp3 = true; |
d14a1e28 RD |
29696 | } |
29697 | if (obj3) { | |
29698 | { | |
29699 | arg4 = wxString_in_helper(obj3); | |
29700 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29701 | temp4 = true; |
d14a1e28 RD |
29702 | } |
29703 | } | |
29704 | { | |
29705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29706 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29707 | |
29708 | wxPyEndAllowThreads(__tstate); | |
29709 | if (PyErr_Occurred()) SWIG_fail; | |
29710 | } | |
a41e16b6 | 29711 | { |
412d302d | 29712 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29713 | } |
d14a1e28 RD |
29714 | { |
29715 | if (temp3) | |
29716 | delete arg3; | |
29717 | } | |
29718 | { | |
29719 | if (temp4) | |
29720 | delete arg4; | |
29721 | } | |
29722 | return resultobj; | |
29723 | fail: | |
29724 | { | |
29725 | if (temp3) | |
29726 | delete arg3; | |
29727 | } | |
29728 | { | |
29729 | if (temp4) | |
29730 | delete arg4; | |
29731 | } | |
29732 | return NULL; | |
29733 | } | |
29734 | ||
29735 | ||
c32bde28 | 29736 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29737 | PyObject *resultobj; |
29738 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29739 | int arg2 ; | |
29740 | wxString *arg3 = 0 ; | |
29741 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29742 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29743 | wxMenuItem *result; |
ae8162c8 RD |
29744 | bool temp3 = false ; |
29745 | bool temp4 = false ; | |
d14a1e28 | 29746 | PyObject * obj0 = 0 ; |
994141e6 | 29747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29748 | PyObject * obj2 = 0 ; |
29749 | PyObject * obj3 = 0 ; | |
29750 | char *kwnames[] = { | |
242b7b46 | 29751 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29752 | }; |
29753 | ||
994141e6 | 29754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29757 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29758 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29759 | { |
29760 | arg3 = wxString_in_helper(obj2); | |
29761 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29762 | temp3 = true; |
d14a1e28 RD |
29763 | } |
29764 | if (obj3) { | |
29765 | { | |
29766 | arg4 = wxString_in_helper(obj3); | |
29767 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29768 | temp4 = true; |
d14a1e28 RD |
29769 | } |
29770 | } | |
29771 | { | |
29772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29773 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29774 | |
29775 | wxPyEndAllowThreads(__tstate); | |
29776 | if (PyErr_Occurred()) SWIG_fail; | |
29777 | } | |
a41e16b6 | 29778 | { |
412d302d | 29779 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29780 | } |
d14a1e28 RD |
29781 | { |
29782 | if (temp3) | |
29783 | delete arg3; | |
29784 | } | |
29785 | { | |
29786 | if (temp4) | |
29787 | delete arg4; | |
29788 | } | |
29789 | return resultobj; | |
29790 | fail: | |
29791 | { | |
29792 | if (temp3) | |
29793 | delete arg3; | |
29794 | } | |
29795 | { | |
29796 | if (temp4) | |
29797 | delete arg4; | |
29798 | } | |
29799 | return NULL; | |
29800 | } | |
29801 | ||
29802 | ||
c32bde28 | 29803 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29804 | PyObject *resultobj; |
29805 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29806 | int arg2 ; | |
29807 | wxString *arg3 = 0 ; | |
29808 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29809 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29810 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29811 | wxMenuItem *result; |
ae8162c8 RD |
29812 | bool temp3 = false ; |
29813 | bool temp5 = false ; | |
d14a1e28 | 29814 | PyObject * obj0 = 0 ; |
994141e6 | 29815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29816 | PyObject * obj2 = 0 ; |
29817 | PyObject * obj3 = 0 ; | |
29818 | PyObject * obj4 = 0 ; | |
29819 | char *kwnames[] = { | |
242b7b46 | 29820 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29821 | }; |
29822 | ||
994141e6 | 29823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29826 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29827 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29828 | { |
29829 | arg3 = wxString_in_helper(obj2); | |
29830 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29831 | temp3 = true; |
d14a1e28 | 29832 | } |
15afbcd0 RD |
29833 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29835 | if (obj4) { |
29836 | { | |
29837 | arg5 = wxString_in_helper(obj4); | |
29838 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29839 | temp5 = true; |
d14a1e28 RD |
29840 | } |
29841 | } | |
29842 | { | |
29843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29844 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29845 | |
29846 | wxPyEndAllowThreads(__tstate); | |
29847 | if (PyErr_Occurred()) SWIG_fail; | |
29848 | } | |
a41e16b6 | 29849 | { |
412d302d | 29850 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29851 | } |
d14a1e28 RD |
29852 | { |
29853 | if (temp3) | |
29854 | delete arg3; | |
29855 | } | |
29856 | { | |
29857 | if (temp5) | |
29858 | delete arg5; | |
29859 | } | |
29860 | return resultobj; | |
29861 | fail: | |
29862 | { | |
29863 | if (temp3) | |
29864 | delete arg3; | |
29865 | } | |
29866 | { | |
29867 | if (temp5) | |
29868 | delete arg5; | |
29869 | } | |
29870 | return NULL; | |
29871 | } | |
29872 | ||
29873 | ||
c32bde28 | 29874 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29875 | PyObject *resultobj; |
29876 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29877 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29878 | wxMenuItem *result; |
d14a1e28 RD |
29879 | PyObject * obj0 = 0 ; |
29880 | PyObject * obj1 = 0 ; | |
29881 | char *kwnames[] = { | |
29882 | (char *) "self",(char *) "item", NULL | |
29883 | }; | |
29884 | ||
29885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29890 | { |
29891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29892 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
29893 | |
29894 | wxPyEndAllowThreads(__tstate); | |
29895 | if (PyErr_Occurred()) SWIG_fail; | |
29896 | } | |
a41e16b6 | 29897 | { |
412d302d | 29898 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29899 | } |
d14a1e28 RD |
29900 | return resultobj; |
29901 | fail: | |
29902 | return NULL; | |
29903 | } | |
29904 | ||
29905 | ||
c32bde28 | 29906 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29907 | PyObject *resultobj; |
29908 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29909 | PyObject * obj0 = 0 ; | |
29910 | char *kwnames[] = { | |
29911 | (char *) "self", NULL | |
29912 | }; | |
29913 | ||
29914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29917 | { |
29918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29919 | (arg1)->Break(); | |
29920 | ||
29921 | wxPyEndAllowThreads(__tstate); | |
29922 | if (PyErr_Occurred()) SWIG_fail; | |
29923 | } | |
29924 | Py_INCREF(Py_None); resultobj = Py_None; | |
29925 | return resultobj; | |
29926 | fail: | |
29927 | return NULL; | |
29928 | } | |
29929 | ||
29930 | ||
c32bde28 | 29931 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29932 | PyObject *resultobj; |
29933 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29934 | size_t arg2 ; | |
29935 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29936 | wxMenuItem *result; |
d14a1e28 RD |
29937 | PyObject * obj0 = 0 ; |
29938 | PyObject * obj1 = 0 ; | |
29939 | PyObject * obj2 = 0 ; | |
29940 | char *kwnames[] = { | |
29941 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29942 | }; | |
29943 | ||
29944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29947 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
29948 | if (PyErr_Occurred()) SWIG_fail; |
29949 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29951 | { |
29952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29953 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
29954 | |
29955 | wxPyEndAllowThreads(__tstate); | |
29956 | if (PyErr_Occurred()) SWIG_fail; | |
29957 | } | |
a41e16b6 | 29958 | { |
412d302d | 29959 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29960 | } |
d14a1e28 RD |
29961 | return resultobj; |
29962 | fail: | |
29963 | return NULL; | |
29964 | } | |
29965 | ||
29966 | ||
c32bde28 | 29967 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29968 | PyObject *resultobj; |
29969 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29970 | size_t arg2 ; | |
29971 | int arg3 ; | |
29972 | wxString *arg4 = 0 ; | |
29973 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29974 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29975 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29976 | wxMenuItem *result; |
ae8162c8 RD |
29977 | bool temp4 = false ; |
29978 | bool temp5 = false ; | |
d14a1e28 RD |
29979 | PyObject * obj0 = 0 ; |
29980 | PyObject * obj1 = 0 ; | |
994141e6 | 29981 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29982 | PyObject * obj3 = 0 ; |
29983 | PyObject * obj4 = 0 ; | |
994141e6 | 29984 | PyObject * obj5 = 0 ; |
d14a1e28 | 29985 | char *kwnames[] = { |
242b7b46 | 29986 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29987 | }; |
29988 | ||
994141e6 | 29989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29992 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 29993 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29994 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29995 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29996 | { |
29997 | arg4 = wxString_in_helper(obj3); | |
29998 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29999 | temp4 = true; |
d14a1e28 RD |
30000 | } |
30001 | if (obj4) { | |
30002 | { | |
30003 | arg5 = wxString_in_helper(obj4); | |
30004 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30005 | temp5 = true; |
d14a1e28 RD |
30006 | } |
30007 | } | |
994141e6 | 30008 | if (obj5) { |
c32bde28 | 30009 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 30010 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30011 | } |
d14a1e28 RD |
30012 | { |
30013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30014 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
30015 | |
30016 | wxPyEndAllowThreads(__tstate); | |
30017 | if (PyErr_Occurred()) SWIG_fail; | |
30018 | } | |
a41e16b6 | 30019 | { |
412d302d | 30020 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30021 | } |
d14a1e28 RD |
30022 | { |
30023 | if (temp4) | |
30024 | delete arg4; | |
30025 | } | |
30026 | { | |
30027 | if (temp5) | |
30028 | delete arg5; | |
30029 | } | |
30030 | return resultobj; | |
30031 | fail: | |
30032 | { | |
30033 | if (temp4) | |
30034 | delete arg4; | |
30035 | } | |
30036 | { | |
30037 | if (temp5) | |
30038 | delete arg5; | |
30039 | } | |
30040 | return NULL; | |
30041 | } | |
30042 | ||
30043 | ||
c32bde28 | 30044 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30045 | PyObject *resultobj; |
30046 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30047 | size_t arg2 ; | |
a41e16b6 | 30048 | wxMenuItem *result; |
d14a1e28 RD |
30049 | PyObject * obj0 = 0 ; |
30050 | PyObject * obj1 = 0 ; | |
30051 | char *kwnames[] = { | |
30052 | (char *) "self",(char *) "pos", NULL | |
30053 | }; | |
30054 | ||
30055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30058 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 30059 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30060 | { |
30061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30062 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
30063 | |
30064 | wxPyEndAllowThreads(__tstate); | |
30065 | if (PyErr_Occurred()) SWIG_fail; | |
30066 | } | |
a41e16b6 | 30067 | { |
412d302d | 30068 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30069 | } |
d14a1e28 RD |
30070 | return resultobj; |
30071 | fail: | |
30072 | return NULL; | |
30073 | } | |
30074 | ||
30075 | ||
c32bde28 | 30076 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30077 | PyObject *resultobj; |
30078 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30079 | size_t arg2 ; | |
30080 | int arg3 ; | |
30081 | wxString *arg4 = 0 ; | |
30082 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30083 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 30084 | wxMenuItem *result; |
ae8162c8 RD |
30085 | bool temp4 = false ; |
30086 | bool temp5 = false ; | |
d14a1e28 RD |
30087 | PyObject * obj0 = 0 ; |
30088 | PyObject * obj1 = 0 ; | |
994141e6 | 30089 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
30090 | PyObject * obj3 = 0 ; |
30091 | PyObject * obj4 = 0 ; | |
30092 | char *kwnames[] = { | |
242b7b46 | 30093 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
30094 | }; |
30095 | ||
994141e6 | 30096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30099 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 30100 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30101 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 30102 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30103 | { |
30104 | arg4 = wxString_in_helper(obj3); | |
30105 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30106 | temp4 = true; |
d14a1e28 RD |
30107 | } |
30108 | if (obj4) { | |
30109 | { | |
30110 | arg5 = wxString_in_helper(obj4); | |
30111 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30112 | temp5 = true; |
d14a1e28 RD |
30113 | } |
30114 | } | |
30115 | { | |
30116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30117 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
30118 | |
30119 | wxPyEndAllowThreads(__tstate); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
a41e16b6 | 30122 | { |
412d302d | 30123 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30124 | } |
d14a1e28 RD |
30125 | { |
30126 | if (temp4) | |
30127 | delete arg4; | |
30128 | } | |
30129 | { | |
30130 | if (temp5) | |
30131 | delete arg5; | |
30132 | } | |
30133 | return resultobj; | |
30134 | fail: | |
30135 | { | |
30136 | if (temp4) | |
30137 | delete arg4; | |
30138 | } | |
30139 | { | |
30140 | if (temp5) | |
30141 | delete arg5; | |
30142 | } | |
30143 | return NULL; | |
30144 | } | |
30145 | ||
30146 | ||
c32bde28 | 30147 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30148 | PyObject *resultobj; |
30149 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30150 | size_t arg2 ; | |
30151 | int arg3 ; | |
30152 | wxString *arg4 = 0 ; | |
30153 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30154 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 30155 | wxMenuItem *result; |
ae8162c8 RD |
30156 | bool temp4 = false ; |
30157 | bool temp5 = false ; | |
d14a1e28 RD |
30158 | PyObject * obj0 = 0 ; |
30159 | PyObject * obj1 = 0 ; | |
994141e6 | 30160 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
30161 | PyObject * obj3 = 0 ; |
30162 | PyObject * obj4 = 0 ; | |
30163 | char *kwnames[] = { | |
242b7b46 | 30164 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
30165 | }; |
30166 | ||
994141e6 | 30167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30170 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 30171 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30172 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 30173 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30174 | { |
30175 | arg4 = wxString_in_helper(obj3); | |
30176 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30177 | temp4 = true; |
d14a1e28 RD |
30178 | } |
30179 | if (obj4) { | |
30180 | { | |
30181 | arg5 = wxString_in_helper(obj4); | |
30182 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30183 | temp5 = true; |
d14a1e28 RD |
30184 | } |
30185 | } | |
30186 | { | |
30187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30188 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
30189 | |
30190 | wxPyEndAllowThreads(__tstate); | |
30191 | if (PyErr_Occurred()) SWIG_fail; | |
30192 | } | |
a41e16b6 | 30193 | { |
412d302d | 30194 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30195 | } |
d14a1e28 RD |
30196 | { |
30197 | if (temp4) | |
30198 | delete arg4; | |
30199 | } | |
30200 | { | |
30201 | if (temp5) | |
30202 | delete arg5; | |
30203 | } | |
30204 | return resultobj; | |
30205 | fail: | |
30206 | { | |
30207 | if (temp4) | |
30208 | delete arg4; | |
30209 | } | |
30210 | { | |
30211 | if (temp5) | |
30212 | delete arg5; | |
30213 | } | |
30214 | return NULL; | |
30215 | } | |
30216 | ||
30217 | ||
c32bde28 | 30218 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30219 | PyObject *resultobj; |
30220 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30221 | size_t arg2 ; | |
30222 | int arg3 ; | |
30223 | wxString *arg4 = 0 ; | |
30224 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30225 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30226 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 30227 | wxMenuItem *result; |
ae8162c8 RD |
30228 | bool temp4 = false ; |
30229 | bool temp6 = false ; | |
d14a1e28 RD |
30230 | PyObject * obj0 = 0 ; |
30231 | PyObject * obj1 = 0 ; | |
994141e6 | 30232 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
30233 | PyObject * obj3 = 0 ; |
30234 | PyObject * obj4 = 0 ; | |
30235 | PyObject * obj5 = 0 ; | |
30236 | char *kwnames[] = { | |
242b7b46 | 30237 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
30238 | }; |
30239 | ||
994141e6 | 30240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
30241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30243 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 30244 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30245 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 30246 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30247 | { |
30248 | arg4 = wxString_in_helper(obj3); | |
30249 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30250 | temp4 = true; |
d14a1e28 | 30251 | } |
15afbcd0 RD |
30252 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
30253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30254 | if (obj5) { |
30255 | { | |
30256 | arg6 = wxString_in_helper(obj5); | |
30257 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 30258 | temp6 = true; |
d14a1e28 RD |
30259 | } |
30260 | } | |
30261 | { | |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30263 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
30264 | |
30265 | wxPyEndAllowThreads(__tstate); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
a41e16b6 | 30268 | { |
412d302d | 30269 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30270 | } |
d14a1e28 RD |
30271 | { |
30272 | if (temp4) | |
30273 | delete arg4; | |
30274 | } | |
30275 | { | |
30276 | if (temp6) | |
30277 | delete arg6; | |
30278 | } | |
30279 | return resultobj; | |
30280 | fail: | |
30281 | { | |
30282 | if (temp4) | |
30283 | delete arg4; | |
30284 | } | |
30285 | { | |
30286 | if (temp6) | |
30287 | delete arg6; | |
30288 | } | |
30289 | return NULL; | |
30290 | } | |
30291 | ||
30292 | ||
c32bde28 | 30293 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30294 | PyObject *resultobj; |
30295 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30296 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 30297 | wxMenuItem *result; |
d14a1e28 RD |
30298 | PyObject * obj0 = 0 ; |
30299 | PyObject * obj1 = 0 ; | |
30300 | char *kwnames[] = { | |
30301 | (char *) "self",(char *) "item", NULL | |
30302 | }; | |
30303 | ||
30304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30309 | { |
30310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30311 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
30312 | |
30313 | wxPyEndAllowThreads(__tstate); | |
30314 | if (PyErr_Occurred()) SWIG_fail; | |
30315 | } | |
a41e16b6 | 30316 | { |
412d302d | 30317 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30318 | } |
d14a1e28 RD |
30319 | return resultobj; |
30320 | fail: | |
30321 | return NULL; | |
30322 | } | |
30323 | ||
30324 | ||
c32bde28 | 30325 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30326 | PyObject *resultobj; |
30327 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30328 | int arg2 ; | |
30329 | wxString *arg3 = 0 ; | |
30330 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30331 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30332 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 30333 | wxMenuItem *result; |
ae8162c8 RD |
30334 | bool temp3 = false ; |
30335 | bool temp4 = false ; | |
d14a1e28 | 30336 | PyObject * obj0 = 0 ; |
994141e6 | 30337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30338 | PyObject * obj2 = 0 ; |
30339 | PyObject * obj3 = 0 ; | |
994141e6 | 30340 | PyObject * obj4 = 0 ; |
d14a1e28 | 30341 | char *kwnames[] = { |
242b7b46 | 30342 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
30343 | }; |
30344 | ||
994141e6 | 30345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30348 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30349 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30350 | { |
30351 | arg3 = wxString_in_helper(obj2); | |
30352 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30353 | temp3 = true; |
d14a1e28 RD |
30354 | } |
30355 | if (obj3) { | |
30356 | { | |
30357 | arg4 = wxString_in_helper(obj3); | |
30358 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30359 | temp4 = true; |
d14a1e28 RD |
30360 | } |
30361 | } | |
994141e6 | 30362 | if (obj4) { |
c32bde28 | 30363 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 30364 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30365 | } |
d14a1e28 RD |
30366 | { |
30367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30368 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
30369 | |
30370 | wxPyEndAllowThreads(__tstate); | |
30371 | if (PyErr_Occurred()) SWIG_fail; | |
30372 | } | |
a41e16b6 | 30373 | { |
412d302d | 30374 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30375 | } |
d14a1e28 RD |
30376 | { |
30377 | if (temp3) | |
30378 | delete arg3; | |
30379 | } | |
30380 | { | |
30381 | if (temp4) | |
30382 | delete arg4; | |
30383 | } | |
30384 | return resultobj; | |
30385 | fail: | |
30386 | { | |
30387 | if (temp3) | |
30388 | delete arg3; | |
30389 | } | |
30390 | { | |
30391 | if (temp4) | |
30392 | delete arg4; | |
30393 | } | |
30394 | return NULL; | |
30395 | } | |
30396 | ||
30397 | ||
c32bde28 | 30398 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30399 | PyObject *resultobj; |
30400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 30401 | wxMenuItem *result; |
d14a1e28 RD |
30402 | PyObject * obj0 = 0 ; |
30403 | char *kwnames[] = { | |
30404 | (char *) "self", NULL | |
30405 | }; | |
30406 | ||
30407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30410 | { |
30411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30412 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
30413 | |
30414 | wxPyEndAllowThreads(__tstate); | |
30415 | if (PyErr_Occurred()) SWIG_fail; | |
30416 | } | |
a41e16b6 | 30417 | { |
412d302d | 30418 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30419 | } |
d14a1e28 RD |
30420 | return resultobj; |
30421 | fail: | |
30422 | return NULL; | |
30423 | } | |
30424 | ||
30425 | ||
c32bde28 | 30426 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30427 | PyObject *resultobj; |
30428 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30429 | int arg2 ; | |
30430 | wxString *arg3 = 0 ; | |
30431 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30432 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 30433 | wxMenuItem *result; |
ae8162c8 RD |
30434 | bool temp3 = false ; |
30435 | bool temp4 = false ; | |
d14a1e28 | 30436 | PyObject * obj0 = 0 ; |
994141e6 | 30437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30438 | PyObject * obj2 = 0 ; |
30439 | PyObject * obj3 = 0 ; | |
30440 | char *kwnames[] = { | |
242b7b46 | 30441 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
30442 | }; |
30443 | ||
994141e6 | 30444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
30445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30447 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30448 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30449 | { |
30450 | arg3 = wxString_in_helper(obj2); | |
30451 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30452 | temp3 = true; |
d14a1e28 RD |
30453 | } |
30454 | if (obj3) { | |
30455 | { | |
30456 | arg4 = wxString_in_helper(obj3); | |
30457 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30458 | temp4 = true; |
d14a1e28 RD |
30459 | } |
30460 | } | |
30461 | { | |
30462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30463 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
30464 | |
30465 | wxPyEndAllowThreads(__tstate); | |
30466 | if (PyErr_Occurred()) SWIG_fail; | |
30467 | } | |
a41e16b6 | 30468 | { |
412d302d | 30469 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30470 | } |
d14a1e28 RD |
30471 | { |
30472 | if (temp3) | |
30473 | delete arg3; | |
30474 | } | |
30475 | { | |
30476 | if (temp4) | |
30477 | delete arg4; | |
30478 | } | |
30479 | return resultobj; | |
30480 | fail: | |
30481 | { | |
30482 | if (temp3) | |
30483 | delete arg3; | |
30484 | } | |
30485 | { | |
30486 | if (temp4) | |
30487 | delete arg4; | |
30488 | } | |
30489 | return NULL; | |
30490 | } | |
30491 | ||
30492 | ||
c32bde28 | 30493 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30494 | PyObject *resultobj; |
30495 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30496 | int arg2 ; | |
30497 | wxString *arg3 = 0 ; | |
30498 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30499 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 30500 | wxMenuItem *result; |
ae8162c8 RD |
30501 | bool temp3 = false ; |
30502 | bool temp4 = false ; | |
d14a1e28 | 30503 | PyObject * obj0 = 0 ; |
994141e6 | 30504 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30505 | PyObject * obj2 = 0 ; |
30506 | PyObject * obj3 = 0 ; | |
30507 | char *kwnames[] = { | |
242b7b46 | 30508 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
30509 | }; |
30510 | ||
994141e6 | 30511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
30512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30514 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30515 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30516 | { |
30517 | arg3 = wxString_in_helper(obj2); | |
30518 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30519 | temp3 = true; |
d14a1e28 RD |
30520 | } |
30521 | if (obj3) { | |
30522 | { | |
30523 | arg4 = wxString_in_helper(obj3); | |
30524 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30525 | temp4 = true; |
d14a1e28 RD |
30526 | } |
30527 | } | |
30528 | { | |
30529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30530 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
30531 | |
30532 | wxPyEndAllowThreads(__tstate); | |
30533 | if (PyErr_Occurred()) SWIG_fail; | |
30534 | } | |
a41e16b6 | 30535 | { |
412d302d | 30536 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30537 | } |
d14a1e28 RD |
30538 | { |
30539 | if (temp3) | |
30540 | delete arg3; | |
30541 | } | |
30542 | { | |
30543 | if (temp4) | |
30544 | delete arg4; | |
30545 | } | |
30546 | return resultobj; | |
30547 | fail: | |
30548 | { | |
30549 | if (temp3) | |
30550 | delete arg3; | |
30551 | } | |
30552 | { | |
30553 | if (temp4) | |
30554 | delete arg4; | |
30555 | } | |
30556 | return NULL; | |
30557 | } | |
30558 | ||
30559 | ||
c32bde28 | 30560 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30561 | PyObject *resultobj; |
30562 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30563 | int arg2 ; | |
30564 | wxString *arg3 = 0 ; | |
30565 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30566 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30567 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 30568 | wxMenuItem *result; |
ae8162c8 RD |
30569 | bool temp3 = false ; |
30570 | bool temp5 = false ; | |
d14a1e28 | 30571 | PyObject * obj0 = 0 ; |
994141e6 | 30572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30573 | PyObject * obj2 = 0 ; |
30574 | PyObject * obj3 = 0 ; | |
30575 | PyObject * obj4 = 0 ; | |
30576 | char *kwnames[] = { | |
242b7b46 | 30577 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
30578 | }; |
30579 | ||
994141e6 | 30580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30583 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30584 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30585 | { |
30586 | arg3 = wxString_in_helper(obj2); | |
30587 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30588 | temp3 = true; |
d14a1e28 | 30589 | } |
15afbcd0 RD |
30590 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
30591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30592 | if (obj4) { |
30593 | { | |
30594 | arg5 = wxString_in_helper(obj4); | |
30595 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30596 | temp5 = true; |
d14a1e28 RD |
30597 | } |
30598 | } | |
30599 | { | |
30600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 30601 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
30602 | |
30603 | wxPyEndAllowThreads(__tstate); | |
30604 | if (PyErr_Occurred()) SWIG_fail; | |
30605 | } | |
a41e16b6 | 30606 | { |
412d302d | 30607 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 30608 | } |
d14a1e28 RD |
30609 | { |
30610 | if (temp3) | |
30611 | delete arg3; | |
30612 | } | |
30613 | { | |
30614 | if (temp5) | |
30615 | delete arg5; | |
30616 | } | |
30617 | return resultobj; | |
30618 | fail: | |
30619 | { | |
30620 | if (temp3) | |
30621 | delete arg3; | |
30622 | } | |
30623 | { | |
30624 | if (temp5) | |
30625 | delete arg5; | |
30626 | } | |
30627 | return NULL; | |
30628 | } | |
30629 | ||
30630 | ||
c32bde28 | 30631 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30632 | PyObject *resultobj; |
30633 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30634 | int arg2 ; | |
30635 | wxMenuItem *result; | |
30636 | PyObject * obj0 = 0 ; | |
994141e6 | 30637 | PyObject * obj1 = 0 ; |
d14a1e28 | 30638 | char *kwnames[] = { |
242b7b46 | 30639 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30640 | }; |
30641 | ||
994141e6 | 30642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30645 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30646 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30647 | { |
30648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30649 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30650 | ||
30651 | wxPyEndAllowThreads(__tstate); | |
30652 | if (PyErr_Occurred()) SWIG_fail; | |
30653 | } | |
30654 | { | |
412d302d | 30655 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30656 | } |
30657 | return resultobj; | |
30658 | fail: | |
30659 | return NULL; | |
30660 | } | |
30661 | ||
30662 | ||
c32bde28 | 30663 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30664 | PyObject *resultobj; |
30665 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30666 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30667 | wxMenuItem *result; | |
30668 | PyObject * obj0 = 0 ; | |
30669 | PyObject * obj1 = 0 ; | |
30670 | char *kwnames[] = { | |
30671 | (char *) "self",(char *) "item", NULL | |
30672 | }; | |
30673 | ||
30674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30679 | { |
30680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30681 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30682 | ||
30683 | wxPyEndAllowThreads(__tstate); | |
30684 | if (PyErr_Occurred()) SWIG_fail; | |
30685 | } | |
30686 | { | |
412d302d | 30687 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30688 | } |
30689 | return resultobj; | |
30690 | fail: | |
30691 | return NULL; | |
30692 | } | |
30693 | ||
30694 | ||
c32bde28 | 30695 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30696 | PyObject *resultobj; |
30697 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30698 | int arg2 ; | |
30699 | bool result; | |
30700 | PyObject * obj0 = 0 ; | |
994141e6 | 30701 | PyObject * obj1 = 0 ; |
d14a1e28 | 30702 | char *kwnames[] = { |
242b7b46 | 30703 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30704 | }; |
30705 | ||
994141e6 | 30706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30709 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30711 | { |
30712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30713 | result = (bool)(arg1)->Delete(arg2); | |
30714 | ||
30715 | wxPyEndAllowThreads(__tstate); | |
30716 | if (PyErr_Occurred()) SWIG_fail; | |
30717 | } | |
4f89f6a3 RD |
30718 | { |
30719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30720 | } | |
d14a1e28 RD |
30721 | return resultobj; |
30722 | fail: | |
30723 | return NULL; | |
30724 | } | |
30725 | ||
30726 | ||
c32bde28 | 30727 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30728 | PyObject *resultobj; |
30729 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30730 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30731 | bool result; | |
30732 | PyObject * obj0 = 0 ; | |
30733 | PyObject * obj1 = 0 ; | |
30734 | char *kwnames[] = { | |
30735 | (char *) "self",(char *) "item", NULL | |
30736 | }; | |
30737 | ||
30738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30743 | { |
30744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30745 | result = (bool)(arg1)->Delete(arg2); | |
30746 | ||
30747 | wxPyEndAllowThreads(__tstate); | |
30748 | if (PyErr_Occurred()) SWIG_fail; | |
30749 | } | |
4f89f6a3 RD |
30750 | { |
30751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30752 | } | |
d14a1e28 RD |
30753 | return resultobj; |
30754 | fail: | |
30755 | return NULL; | |
30756 | } | |
30757 | ||
30758 | ||
c32bde28 | 30759 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30760 | PyObject *resultobj; |
30761 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30762 | PyObject * obj0 = 0 ; | |
30763 | char *kwnames[] = { | |
30764 | (char *) "self", NULL | |
30765 | }; | |
30766 | ||
30767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30770 | { |
30771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30772 | wxMenu_Destroy(arg1); | |
30773 | ||
30774 | wxPyEndAllowThreads(__tstate); | |
30775 | if (PyErr_Occurred()) SWIG_fail; | |
30776 | } | |
30777 | Py_INCREF(Py_None); resultobj = Py_None; | |
30778 | return resultobj; | |
30779 | fail: | |
30780 | return NULL; | |
30781 | } | |
30782 | ||
30783 | ||
c32bde28 | 30784 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30785 | PyObject *resultobj; |
30786 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30787 | int arg2 ; | |
30788 | bool result; | |
30789 | PyObject * obj0 = 0 ; | |
994141e6 | 30790 | PyObject * obj1 = 0 ; |
d14a1e28 | 30791 | char *kwnames[] = { |
242b7b46 | 30792 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30793 | }; |
30794 | ||
994141e6 | 30795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30798 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30799 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30800 | { |
30801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30802 | result = (bool)(arg1)->Destroy(arg2); | |
30803 | ||
30804 | wxPyEndAllowThreads(__tstate); | |
30805 | if (PyErr_Occurred()) SWIG_fail; | |
30806 | } | |
4f89f6a3 RD |
30807 | { |
30808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30809 | } | |
d14a1e28 RD |
30810 | return resultobj; |
30811 | fail: | |
30812 | return NULL; | |
30813 | } | |
30814 | ||
30815 | ||
c32bde28 | 30816 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30817 | PyObject *resultobj; |
30818 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30819 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30820 | bool result; | |
30821 | PyObject * obj0 = 0 ; | |
30822 | PyObject * obj1 = 0 ; | |
30823 | char *kwnames[] = { | |
30824 | (char *) "self",(char *) "item", NULL | |
30825 | }; | |
30826 | ||
30827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30832 | { |
30833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30834 | result = (bool)(arg1)->Destroy(arg2); | |
30835 | ||
30836 | wxPyEndAllowThreads(__tstate); | |
30837 | if (PyErr_Occurred()) SWIG_fail; | |
30838 | } | |
4f89f6a3 RD |
30839 | { |
30840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30841 | } | |
d14a1e28 RD |
30842 | return resultobj; |
30843 | fail: | |
30844 | return NULL; | |
30845 | } | |
30846 | ||
30847 | ||
c32bde28 | 30848 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30849 | PyObject *resultobj; |
30850 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30851 | size_t result; | |
30852 | PyObject * obj0 = 0 ; | |
30853 | char *kwnames[] = { | |
30854 | (char *) "self", NULL | |
30855 | }; | |
30856 | ||
30857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30860 | { |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30863 | ||
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
c32bde28 | 30867 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
30868 | return resultobj; |
30869 | fail: | |
30870 | return NULL; | |
30871 | } | |
30872 | ||
30873 | ||
c32bde28 | 30874 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30875 | PyObject *resultobj; |
30876 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30877 | PyObject *result; | |
30878 | PyObject * obj0 = 0 ; | |
30879 | char *kwnames[] = { | |
30880 | (char *) "self", NULL | |
30881 | }; | |
30882 | ||
30883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30886 | { |
30887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30888 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30889 | ||
30890 | wxPyEndAllowThreads(__tstate); | |
30891 | if (PyErr_Occurred()) SWIG_fail; | |
30892 | } | |
30893 | resultobj = result; | |
30894 | return resultobj; | |
30895 | fail: | |
30896 | return NULL; | |
30897 | } | |
30898 | ||
30899 | ||
c32bde28 | 30900 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30901 | PyObject *resultobj; |
30902 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30903 | wxString *arg2 = 0 ; | |
30904 | int result; | |
ae8162c8 | 30905 | bool temp2 = false ; |
d14a1e28 RD |
30906 | PyObject * obj0 = 0 ; |
30907 | PyObject * obj1 = 0 ; | |
30908 | char *kwnames[] = { | |
30909 | (char *) "self",(char *) "item", NULL | |
30910 | }; | |
30911 | ||
30912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30915 | { |
30916 | arg2 = wxString_in_helper(obj1); | |
30917 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30918 | temp2 = true; |
d14a1e28 RD |
30919 | } |
30920 | { | |
30921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30922 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30923 | ||
30924 | wxPyEndAllowThreads(__tstate); | |
30925 | if (PyErr_Occurred()) SWIG_fail; | |
30926 | } | |
c32bde28 | 30927 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
30928 | { |
30929 | if (temp2) | |
30930 | delete arg2; | |
30931 | } | |
30932 | return resultobj; | |
30933 | fail: | |
30934 | { | |
30935 | if (temp2) | |
30936 | delete arg2; | |
30937 | } | |
30938 | return NULL; | |
30939 | } | |
30940 | ||
30941 | ||
c32bde28 | 30942 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30943 | PyObject *resultobj; |
30944 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30945 | int arg2 ; | |
30946 | wxMenuItem *result; | |
30947 | PyObject * obj0 = 0 ; | |
994141e6 | 30948 | PyObject * obj1 = 0 ; |
d14a1e28 | 30949 | char *kwnames[] = { |
242b7b46 | 30950 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30951 | }; |
30952 | ||
994141e6 | 30953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30956 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30957 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30958 | { |
30959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30960 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30961 | ||
30962 | wxPyEndAllowThreads(__tstate); | |
30963 | if (PyErr_Occurred()) SWIG_fail; | |
30964 | } | |
30965 | { | |
412d302d | 30966 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30967 | } |
30968 | return resultobj; | |
30969 | fail: | |
30970 | return NULL; | |
30971 | } | |
30972 | ||
30973 | ||
c32bde28 | 30974 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30975 | PyObject *resultobj; |
30976 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30977 | size_t arg2 ; | |
30978 | wxMenuItem *result; | |
30979 | PyObject * obj0 = 0 ; | |
30980 | PyObject * obj1 = 0 ; | |
30981 | char *kwnames[] = { | |
30982 | (char *) "self",(char *) "position", NULL | |
30983 | }; | |
30984 | ||
30985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30988 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 30989 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30990 | { |
30991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30992 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30993 | ||
30994 | wxPyEndAllowThreads(__tstate); | |
30995 | if (PyErr_Occurred()) SWIG_fail; | |
30996 | } | |
30997 | { | |
412d302d | 30998 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30999 | } |
31000 | return resultobj; | |
31001 | fail: | |
31002 | return NULL; | |
31003 | } | |
31004 | ||
31005 | ||
c32bde28 | 31006 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31007 | PyObject *resultobj; |
31008 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31009 | int arg2 ; | |
31010 | bool arg3 ; | |
31011 | PyObject * obj0 = 0 ; | |
994141e6 | 31012 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31013 | PyObject * obj2 = 0 ; |
31014 | char *kwnames[] = { | |
242b7b46 | 31015 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
31016 | }; |
31017 | ||
994141e6 | 31018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31021 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31022 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31023 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 31024 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31025 | { |
31026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31027 | (arg1)->Enable(arg2,arg3); | |
31028 | ||
31029 | wxPyEndAllowThreads(__tstate); | |
31030 | if (PyErr_Occurred()) SWIG_fail; | |
31031 | } | |
31032 | Py_INCREF(Py_None); resultobj = Py_None; | |
31033 | return resultobj; | |
31034 | fail: | |
31035 | return NULL; | |
31036 | } | |
31037 | ||
31038 | ||
c32bde28 | 31039 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31040 | PyObject *resultobj; |
31041 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31042 | int arg2 ; | |
31043 | bool result; | |
31044 | PyObject * obj0 = 0 ; | |
994141e6 | 31045 | PyObject * obj1 = 0 ; |
d14a1e28 | 31046 | char *kwnames[] = { |
242b7b46 | 31047 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31048 | }; |
31049 | ||
994141e6 | 31050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31053 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31055 | { |
31056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31057 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
31058 | ||
31059 | wxPyEndAllowThreads(__tstate); | |
31060 | if (PyErr_Occurred()) SWIG_fail; | |
31061 | } | |
4f89f6a3 RD |
31062 | { |
31063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31064 | } | |
d14a1e28 RD |
31065 | return resultobj; |
31066 | fail: | |
31067 | return NULL; | |
31068 | } | |
31069 | ||
31070 | ||
c32bde28 | 31071 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31072 | PyObject *resultobj; |
31073 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31074 | int arg2 ; | |
31075 | bool arg3 ; | |
31076 | PyObject * obj0 = 0 ; | |
994141e6 | 31077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31078 | PyObject * obj2 = 0 ; |
31079 | char *kwnames[] = { | |
242b7b46 | 31080 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
31081 | }; |
31082 | ||
994141e6 | 31083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31086 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31087 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31088 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 31089 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31090 | { |
31091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31092 | (arg1)->Check(arg2,arg3); | |
31093 | ||
31094 | wxPyEndAllowThreads(__tstate); | |
31095 | if (PyErr_Occurred()) SWIG_fail; | |
31096 | } | |
31097 | Py_INCREF(Py_None); resultobj = Py_None; | |
31098 | return resultobj; | |
31099 | fail: | |
31100 | return NULL; | |
31101 | } | |
31102 | ||
31103 | ||
c32bde28 | 31104 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31105 | PyObject *resultobj; |
31106 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31107 | int arg2 ; | |
31108 | bool result; | |
31109 | PyObject * obj0 = 0 ; | |
994141e6 | 31110 | PyObject * obj1 = 0 ; |
d14a1e28 | 31111 | char *kwnames[] = { |
242b7b46 | 31112 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31113 | }; |
31114 | ||
994141e6 | 31115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31118 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31119 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31120 | { |
31121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31122 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
31123 | ||
31124 | wxPyEndAllowThreads(__tstate); | |
31125 | if (PyErr_Occurred()) SWIG_fail; | |
31126 | } | |
4f89f6a3 RD |
31127 | { |
31128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31129 | } | |
d14a1e28 RD |
31130 | return resultobj; |
31131 | fail: | |
31132 | return NULL; | |
31133 | } | |
31134 | ||
31135 | ||
c32bde28 | 31136 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31137 | PyObject *resultobj; |
31138 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31139 | int arg2 ; | |
31140 | wxString *arg3 = 0 ; | |
ae8162c8 | 31141 | bool temp3 = false ; |
d14a1e28 | 31142 | PyObject * obj0 = 0 ; |
994141e6 | 31143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31144 | PyObject * obj2 = 0 ; |
31145 | char *kwnames[] = { | |
242b7b46 | 31146 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
31147 | }; |
31148 | ||
994141e6 | 31149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31152 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31153 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31154 | { |
31155 | arg3 = wxString_in_helper(obj2); | |
31156 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31157 | temp3 = true; |
d14a1e28 RD |
31158 | } |
31159 | { | |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | Py_INCREF(Py_None); resultobj = Py_None; | |
31167 | { | |
31168 | if (temp3) | |
31169 | delete arg3; | |
31170 | } | |
31171 | return resultobj; | |
31172 | fail: | |
31173 | { | |
31174 | if (temp3) | |
31175 | delete arg3; | |
31176 | } | |
31177 | return NULL; | |
31178 | } | |
31179 | ||
31180 | ||
c32bde28 | 31181 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31182 | PyObject *resultobj; |
31183 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31184 | int arg2 ; | |
31185 | wxString result; | |
31186 | PyObject * obj0 = 0 ; | |
994141e6 | 31187 | PyObject * obj1 = 0 ; |
d14a1e28 | 31188 | char *kwnames[] = { |
242b7b46 | 31189 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31190 | }; |
31191 | ||
994141e6 | 31192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31195 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31196 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31197 | { |
31198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31199 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31200 | ||
31201 | wxPyEndAllowThreads(__tstate); | |
31202 | if (PyErr_Occurred()) SWIG_fail; | |
31203 | } | |
31204 | { | |
31205 | #if wxUSE_UNICODE | |
31206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31207 | #else | |
31208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31209 | #endif | |
31210 | } | |
31211 | return resultobj; | |
31212 | fail: | |
31213 | return NULL; | |
31214 | } | |
31215 | ||
31216 | ||
c32bde28 | 31217 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31218 | PyObject *resultobj; |
31219 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31220 | int arg2 ; | |
31221 | wxString *arg3 = 0 ; | |
ae8162c8 | 31222 | bool temp3 = false ; |
d14a1e28 | 31223 | PyObject * obj0 = 0 ; |
994141e6 | 31224 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31225 | PyObject * obj2 = 0 ; |
31226 | char *kwnames[] = { | |
242b7b46 | 31227 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
31228 | }; |
31229 | ||
994141e6 | 31230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31233 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31234 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31235 | { |
31236 | arg3 = wxString_in_helper(obj2); | |
31237 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31238 | temp3 = true; |
d14a1e28 RD |
31239 | } |
31240 | { | |
31241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31242 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31243 | ||
31244 | wxPyEndAllowThreads(__tstate); | |
31245 | if (PyErr_Occurred()) SWIG_fail; | |
31246 | } | |
31247 | Py_INCREF(Py_None); resultobj = Py_None; | |
31248 | { | |
31249 | if (temp3) | |
31250 | delete arg3; | |
31251 | } | |
31252 | return resultobj; | |
31253 | fail: | |
31254 | { | |
31255 | if (temp3) | |
31256 | delete arg3; | |
31257 | } | |
31258 | return NULL; | |
31259 | } | |
31260 | ||
31261 | ||
c32bde28 | 31262 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31263 | PyObject *resultobj; |
31264 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31265 | int arg2 ; | |
31266 | wxString result; | |
31267 | PyObject * obj0 = 0 ; | |
994141e6 | 31268 | PyObject * obj1 = 0 ; |
d14a1e28 | 31269 | char *kwnames[] = { |
242b7b46 | 31270 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31271 | }; |
31272 | ||
994141e6 | 31273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31276 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31277 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31278 | { |
31279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31280 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31281 | ||
31282 | wxPyEndAllowThreads(__tstate); | |
31283 | if (PyErr_Occurred()) SWIG_fail; | |
31284 | } | |
31285 | { | |
31286 | #if wxUSE_UNICODE | |
31287 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31288 | #else | |
31289 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31290 | #endif | |
31291 | } | |
31292 | return resultobj; | |
31293 | fail: | |
31294 | return NULL; | |
31295 | } | |
31296 | ||
31297 | ||
c32bde28 | 31298 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31299 | PyObject *resultobj; |
31300 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31301 | wxString *arg2 = 0 ; | |
ae8162c8 | 31302 | bool temp2 = false ; |
d14a1e28 RD |
31303 | PyObject * obj0 = 0 ; |
31304 | PyObject * obj1 = 0 ; | |
31305 | char *kwnames[] = { | |
31306 | (char *) "self",(char *) "title", NULL | |
31307 | }; | |
31308 | ||
31309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31312 | { |
31313 | arg2 = wxString_in_helper(obj1); | |
31314 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31315 | temp2 = true; |
d14a1e28 RD |
31316 | } |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->SetTitle((wxString const &)*arg2); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | Py_INCREF(Py_None); resultobj = Py_None; | |
31325 | { | |
31326 | if (temp2) | |
31327 | delete arg2; | |
31328 | } | |
31329 | return resultobj; | |
31330 | fail: | |
31331 | { | |
31332 | if (temp2) | |
31333 | delete arg2; | |
31334 | } | |
31335 | return NULL; | |
31336 | } | |
31337 | ||
31338 | ||
c32bde28 | 31339 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31340 | PyObject *resultobj; |
31341 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31342 | wxString result; | |
31343 | PyObject * obj0 = 0 ; | |
31344 | char *kwnames[] = { | |
31345 | (char *) "self", NULL | |
31346 | }; | |
31347 | ||
31348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31351 | { |
31352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31353 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31354 | ||
31355 | wxPyEndAllowThreads(__tstate); | |
31356 | if (PyErr_Occurred()) SWIG_fail; | |
31357 | } | |
31358 | { | |
31359 | #if wxUSE_UNICODE | |
31360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31361 | #else | |
31362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31363 | #endif | |
31364 | } | |
31365 | return resultobj; | |
31366 | fail: | |
31367 | return NULL; | |
31368 | } | |
31369 | ||
31370 | ||
c32bde28 | 31371 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31372 | PyObject *resultobj; |
31373 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31374 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31375 | PyObject * obj0 = 0 ; | |
31376 | PyObject * obj1 = 0 ; | |
31377 | char *kwnames[] = { | |
31378 | (char *) "self",(char *) "handler", NULL | |
31379 | }; | |
31380 | ||
31381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31386 | { |
31387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31388 | (arg1)->SetEventHandler(arg2); | |
31389 | ||
31390 | wxPyEndAllowThreads(__tstate); | |
31391 | if (PyErr_Occurred()) SWIG_fail; | |
31392 | } | |
31393 | Py_INCREF(Py_None); resultobj = Py_None; | |
31394 | return resultobj; | |
31395 | fail: | |
31396 | return NULL; | |
31397 | } | |
31398 | ||
31399 | ||
c32bde28 | 31400 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31401 | PyObject *resultobj; |
31402 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31403 | wxEvtHandler *result; | |
31404 | PyObject * obj0 = 0 ; | |
31405 | char *kwnames[] = { | |
31406 | (char *) "self", NULL | |
31407 | }; | |
31408 | ||
31409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31412 | { |
31413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31414 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31415 | ||
31416 | wxPyEndAllowThreads(__tstate); | |
31417 | if (PyErr_Occurred()) SWIG_fail; | |
31418 | } | |
31419 | { | |
412d302d | 31420 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31421 | } |
31422 | return resultobj; | |
31423 | fail: | |
31424 | return NULL; | |
31425 | } | |
31426 | ||
31427 | ||
c32bde28 | 31428 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31429 | PyObject *resultobj; |
31430 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31431 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31432 | PyObject * obj0 = 0 ; | |
31433 | PyObject * obj1 = 0 ; | |
31434 | char *kwnames[] = { | |
31435 | (char *) "self",(char *) "win", NULL | |
31436 | }; | |
31437 | ||
31438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31443 | { |
31444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31445 | (arg1)->SetInvokingWindow(arg2); | |
31446 | ||
31447 | wxPyEndAllowThreads(__tstate); | |
31448 | if (PyErr_Occurred()) SWIG_fail; | |
31449 | } | |
31450 | Py_INCREF(Py_None); resultobj = Py_None; | |
31451 | return resultobj; | |
31452 | fail: | |
31453 | return NULL; | |
31454 | } | |
31455 | ||
31456 | ||
c32bde28 | 31457 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31458 | PyObject *resultobj; |
31459 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31460 | wxWindow *result; | |
31461 | PyObject * obj0 = 0 ; | |
31462 | char *kwnames[] = { | |
31463 | (char *) "self", NULL | |
31464 | }; | |
31465 | ||
31466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31469 | { |
31470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31471 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31472 | ||
31473 | wxPyEndAllowThreads(__tstate); | |
31474 | if (PyErr_Occurred()) SWIG_fail; | |
31475 | } | |
31476 | { | |
412d302d | 31477 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31478 | } |
31479 | return resultobj; | |
31480 | fail: | |
31481 | return NULL; | |
31482 | } | |
31483 | ||
31484 | ||
c32bde28 | 31485 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31486 | PyObject *resultobj; |
31487 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31488 | long result; | |
31489 | PyObject * obj0 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31497 | { |
31498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31499 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31500 | ||
31501 | wxPyEndAllowThreads(__tstate); | |
31502 | if (PyErr_Occurred()) SWIG_fail; | |
31503 | } | |
c32bde28 | 31504 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
31505 | return resultobj; |
31506 | fail: | |
31507 | return NULL; | |
31508 | } | |
31509 | ||
31510 | ||
c32bde28 | 31511 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31512 | PyObject *resultobj; |
31513 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31514 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31515 | PyObject * obj0 = 0 ; | |
31516 | PyObject * obj1 = 0 ; | |
31517 | char *kwnames[] = { | |
31518 | (char *) "self",(char *) "source", NULL | |
31519 | }; | |
31520 | ||
31521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31524 | if (obj1) { |
15afbcd0 RD |
31525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
31526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31527 | } |
31528 | { | |
31529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31530 | (arg1)->UpdateUI(arg2); | |
31531 | ||
31532 | wxPyEndAllowThreads(__tstate); | |
31533 | if (PyErr_Occurred()) SWIG_fail; | |
31534 | } | |
31535 | Py_INCREF(Py_None); resultobj = Py_None; | |
31536 | return resultobj; | |
31537 | fail: | |
31538 | return NULL; | |
31539 | } | |
31540 | ||
31541 | ||
c32bde28 | 31542 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31543 | PyObject *resultobj; |
31544 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31545 | wxMenuBar *result; | |
31546 | PyObject * obj0 = 0 ; | |
31547 | char *kwnames[] = { | |
31548 | (char *) "self", NULL | |
31549 | }; | |
31550 | ||
31551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31554 | { |
31555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31556 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31557 | ||
31558 | wxPyEndAllowThreads(__tstate); | |
31559 | if (PyErr_Occurred()) SWIG_fail; | |
31560 | } | |
31561 | { | |
412d302d | 31562 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31563 | } |
31564 | return resultobj; | |
31565 | fail: | |
31566 | return NULL; | |
31567 | } | |
31568 | ||
31569 | ||
c32bde28 | 31570 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31571 | PyObject *resultobj; |
31572 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31573 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31574 | PyObject * obj0 = 0 ; | |
31575 | PyObject * obj1 = 0 ; | |
31576 | char *kwnames[] = { | |
31577 | (char *) "self",(char *) "menubar", NULL | |
31578 | }; | |
31579 | ||
31580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31585 | { |
31586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31587 | (arg1)->Attach(arg2); | |
31588 | ||
31589 | wxPyEndAllowThreads(__tstate); | |
31590 | if (PyErr_Occurred()) SWIG_fail; | |
31591 | } | |
31592 | Py_INCREF(Py_None); resultobj = Py_None; | |
31593 | return resultobj; | |
31594 | fail: | |
31595 | return NULL; | |
31596 | } | |
31597 | ||
31598 | ||
c32bde28 | 31599 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31600 | PyObject *resultobj; |
31601 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31602 | PyObject * obj0 = 0 ; | |
31603 | char *kwnames[] = { | |
31604 | (char *) "self", NULL | |
31605 | }; | |
31606 | ||
31607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31610 | { |
31611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31612 | (arg1)->Detach(); | |
31613 | ||
31614 | wxPyEndAllowThreads(__tstate); | |
31615 | if (PyErr_Occurred()) SWIG_fail; | |
31616 | } | |
31617 | Py_INCREF(Py_None); resultobj = Py_None; | |
31618 | return resultobj; | |
31619 | fail: | |
31620 | return NULL; | |
31621 | } | |
31622 | ||
31623 | ||
c32bde28 | 31624 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31625 | PyObject *resultobj; |
31626 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31627 | bool result; | |
31628 | PyObject * obj0 = 0 ; | |
31629 | char *kwnames[] = { | |
31630 | (char *) "self", NULL | |
31631 | }; | |
31632 | ||
31633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31636 | { |
31637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31638 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31639 | ||
31640 | wxPyEndAllowThreads(__tstate); | |
31641 | if (PyErr_Occurred()) SWIG_fail; | |
31642 | } | |
4f89f6a3 RD |
31643 | { |
31644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31645 | } | |
d14a1e28 RD |
31646 | return resultobj; |
31647 | fail: | |
31648 | return NULL; | |
31649 | } | |
31650 | ||
31651 | ||
c32bde28 | 31652 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31653 | PyObject *resultobj; |
31654 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31655 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31656 | PyObject * obj0 = 0 ; | |
31657 | PyObject * obj1 = 0 ; | |
31658 | char *kwnames[] = { | |
31659 | (char *) "self",(char *) "parent", NULL | |
31660 | }; | |
31661 | ||
31662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31667 | { |
31668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31669 | (arg1)->SetParent(arg2); | |
31670 | ||
31671 | wxPyEndAllowThreads(__tstate); | |
31672 | if (PyErr_Occurred()) SWIG_fail; | |
31673 | } | |
31674 | Py_INCREF(Py_None); resultobj = Py_None; | |
31675 | return resultobj; | |
31676 | fail: | |
31677 | return NULL; | |
31678 | } | |
31679 | ||
31680 | ||
c32bde28 | 31681 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31682 | PyObject *resultobj; |
31683 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31684 | wxMenu *result; | |
31685 | PyObject * obj0 = 0 ; | |
31686 | char *kwnames[] = { | |
31687 | (char *) "self", NULL | |
31688 | }; | |
31689 | ||
31690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31693 | { |
31694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31695 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31696 | ||
31697 | wxPyEndAllowThreads(__tstate); | |
31698 | if (PyErr_Occurred()) SWIG_fail; | |
31699 | } | |
31700 | { | |
412d302d | 31701 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31702 | } |
31703 | return resultobj; | |
31704 | fail: | |
31705 | return NULL; | |
31706 | } | |
31707 | ||
31708 | ||
c32bde28 | 31709 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31710 | PyObject *obj; |
31711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31712 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31713 | Py_INCREF(obj); | |
31714 | return Py_BuildValue((char *)""); | |
31715 | } | |
c32bde28 | 31716 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31717 | PyObject *resultobj; |
31718 | long arg1 = (long) 0 ; | |
31719 | wxMenuBar *result; | |
994141e6 | 31720 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
31721 | char *kwnames[] = { |
31722 | (char *) "style", NULL | |
31723 | }; | |
31724 | ||
994141e6 RD |
31725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
31726 | if (obj0) { | |
c32bde28 | 31727 | arg1 = (long)SWIG_As_long(obj0); |
15afbcd0 | 31728 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 31729 | } |
d14a1e28 | 31730 | { |
e3b71cb8 | 31731 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31733 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31734 | ||
31735 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31736 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31737 | } |
b0f7404b | 31738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d14a1e28 RD |
31739 | return resultobj; |
31740 | fail: | |
31741 | return NULL; | |
31742 | } | |
31743 | ||
31744 | ||
c32bde28 | 31745 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31746 | PyObject *resultobj; |
31747 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31748 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31749 | wxString *arg3 = 0 ; | |
31750 | bool result; | |
ae8162c8 | 31751 | bool temp3 = false ; |
d14a1e28 RD |
31752 | PyObject * obj0 = 0 ; |
31753 | PyObject * obj1 = 0 ; | |
31754 | PyObject * obj2 = 0 ; | |
31755 | char *kwnames[] = { | |
31756 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31757 | }; | |
31758 | ||
31759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31764 | { |
31765 | arg3 = wxString_in_helper(obj2); | |
31766 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31767 | temp3 = true; |
d14a1e28 RD |
31768 | } |
31769 | { | |
31770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31771 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31772 | ||
31773 | wxPyEndAllowThreads(__tstate); | |
31774 | if (PyErr_Occurred()) SWIG_fail; | |
31775 | } | |
4f89f6a3 RD |
31776 | { |
31777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31778 | } | |
d14a1e28 RD |
31779 | { |
31780 | if (temp3) | |
31781 | delete arg3; | |
31782 | } | |
31783 | return resultobj; | |
31784 | fail: | |
31785 | { | |
31786 | if (temp3) | |
31787 | delete arg3; | |
31788 | } | |
31789 | return NULL; | |
31790 | } | |
31791 | ||
31792 | ||
c32bde28 | 31793 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31794 | PyObject *resultobj; |
31795 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31796 | size_t arg2 ; | |
31797 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31798 | wxString *arg4 = 0 ; | |
31799 | bool result; | |
ae8162c8 | 31800 | bool temp4 = false ; |
d14a1e28 RD |
31801 | PyObject * obj0 = 0 ; |
31802 | PyObject * obj1 = 0 ; | |
31803 | PyObject * obj2 = 0 ; | |
31804 | PyObject * obj3 = 0 ; | |
31805 | char *kwnames[] = { | |
31806 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31807 | }; | |
31808 | ||
31809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31812 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
31813 | if (PyErr_Occurred()) SWIG_fail; |
31814 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31816 | { |
31817 | arg4 = wxString_in_helper(obj3); | |
31818 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31819 | temp4 = true; |
d14a1e28 RD |
31820 | } |
31821 | { | |
31822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31823 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31824 | ||
31825 | wxPyEndAllowThreads(__tstate); | |
31826 | if (PyErr_Occurred()) SWIG_fail; | |
31827 | } | |
4f89f6a3 RD |
31828 | { |
31829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31830 | } | |
d14a1e28 RD |
31831 | { |
31832 | if (temp4) | |
31833 | delete arg4; | |
31834 | } | |
31835 | return resultobj; | |
31836 | fail: | |
31837 | { | |
31838 | if (temp4) | |
31839 | delete arg4; | |
31840 | } | |
31841 | return NULL; | |
31842 | } | |
31843 | ||
31844 | ||
c32bde28 | 31845 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31846 | PyObject *resultobj; |
31847 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31848 | size_t result; | |
31849 | PyObject * obj0 = 0 ; | |
31850 | char *kwnames[] = { | |
31851 | (char *) "self", NULL | |
31852 | }; | |
31853 | ||
31854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31857 | { |
31858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31859 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31860 | ||
31861 | wxPyEndAllowThreads(__tstate); | |
31862 | if (PyErr_Occurred()) SWIG_fail; | |
31863 | } | |
c32bde28 | 31864 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
31865 | return resultobj; |
31866 | fail: | |
31867 | return NULL; | |
31868 | } | |
31869 | ||
31870 | ||
c32bde28 | 31871 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31872 | PyObject *resultobj; |
31873 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31874 | size_t arg2 ; | |
31875 | wxMenu *result; | |
31876 | PyObject * obj0 = 0 ; | |
31877 | PyObject * obj1 = 0 ; | |
31878 | char *kwnames[] = { | |
31879 | (char *) "self",(char *) "pos", NULL | |
31880 | }; | |
31881 | ||
31882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31885 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 31886 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31887 | { |
31888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31889 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31890 | ||
31891 | wxPyEndAllowThreads(__tstate); | |
31892 | if (PyErr_Occurred()) SWIG_fail; | |
31893 | } | |
31894 | { | |
412d302d | 31895 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31896 | } |
31897 | return resultobj; | |
31898 | fail: | |
31899 | return NULL; | |
31900 | } | |
31901 | ||
31902 | ||
c32bde28 | 31903 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31904 | PyObject *resultobj; |
31905 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31906 | size_t arg2 ; | |
31907 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31908 | wxString *arg4 = 0 ; | |
31909 | wxMenu *result; | |
ae8162c8 | 31910 | bool temp4 = false ; |
d14a1e28 RD |
31911 | PyObject * obj0 = 0 ; |
31912 | PyObject * obj1 = 0 ; | |
31913 | PyObject * obj2 = 0 ; | |
31914 | PyObject * obj3 = 0 ; | |
31915 | char *kwnames[] = { | |
31916 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31917 | }; | |
31918 | ||
31919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31922 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
31923 | if (PyErr_Occurred()) SWIG_fail; |
31924 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31926 | { |
31927 | arg4 = wxString_in_helper(obj3); | |
31928 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31929 | temp4 = true; |
d14a1e28 RD |
31930 | } |
31931 | { | |
31932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31933 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31934 | ||
31935 | wxPyEndAllowThreads(__tstate); | |
31936 | if (PyErr_Occurred()) SWIG_fail; | |
31937 | } | |
31938 | { | |
412d302d | 31939 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31940 | } |
31941 | { | |
31942 | if (temp4) | |
31943 | delete arg4; | |
31944 | } | |
31945 | return resultobj; | |
31946 | fail: | |
31947 | { | |
31948 | if (temp4) | |
31949 | delete arg4; | |
31950 | } | |
31951 | return NULL; | |
31952 | } | |
31953 | ||
31954 | ||
c32bde28 | 31955 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31956 | PyObject *resultobj; |
31957 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31958 | size_t arg2 ; | |
31959 | wxMenu *result; | |
31960 | PyObject * obj0 = 0 ; | |
31961 | PyObject * obj1 = 0 ; | |
31962 | char *kwnames[] = { | |
31963 | (char *) "self",(char *) "pos", NULL | |
31964 | }; | |
31965 | ||
31966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31969 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 31970 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31971 | { |
31972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31973 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31974 | ||
31975 | wxPyEndAllowThreads(__tstate); | |
31976 | if (PyErr_Occurred()) SWIG_fail; | |
31977 | } | |
31978 | { | |
412d302d | 31979 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31980 | } |
31981 | return resultobj; | |
31982 | fail: | |
31983 | return NULL; | |
31984 | } | |
31985 | ||
31986 | ||
c32bde28 | 31987 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31988 | PyObject *resultobj; |
31989 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31990 | size_t arg2 ; | |
31991 | bool arg3 ; | |
31992 | PyObject * obj0 = 0 ; | |
31993 | PyObject * obj1 = 0 ; | |
31994 | PyObject * obj2 = 0 ; | |
31995 | char *kwnames[] = { | |
31996 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31997 | }; | |
31998 | ||
31999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
32000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32002 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 32003 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32004 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 32005 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32006 | { |
32007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32008 | (arg1)->EnableTop(arg2,arg3); | |
32009 | ||
32010 | wxPyEndAllowThreads(__tstate); | |
32011 | if (PyErr_Occurred()) SWIG_fail; | |
32012 | } | |
32013 | Py_INCREF(Py_None); resultobj = Py_None; | |
32014 | return resultobj; | |
32015 | fail: | |
32016 | return NULL; | |
32017 | } | |
32018 | ||
32019 | ||
c32bde28 | 32020 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32021 | PyObject *resultobj; |
32022 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32023 | size_t arg2 ; | |
32024 | bool result; | |
32025 | PyObject * obj0 = 0 ; | |
32026 | PyObject * obj1 = 0 ; | |
32027 | char *kwnames[] = { | |
32028 | (char *) "self",(char *) "pos", NULL | |
32029 | }; | |
32030 | ||
32031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32034 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 32035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32036 | { |
32037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32038 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
32039 | ||
32040 | wxPyEndAllowThreads(__tstate); | |
32041 | if (PyErr_Occurred()) SWIG_fail; | |
32042 | } | |
4f89f6a3 RD |
32043 | { |
32044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32045 | } | |
d14a1e28 RD |
32046 | return resultobj; |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
c32bde28 | 32052 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32053 | PyObject *resultobj; |
32054 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32055 | size_t arg2 ; | |
32056 | wxString *arg3 = 0 ; | |
ae8162c8 | 32057 | bool temp3 = false ; |
d14a1e28 RD |
32058 | PyObject * obj0 = 0 ; |
32059 | PyObject * obj1 = 0 ; | |
32060 | PyObject * obj2 = 0 ; | |
32061 | char *kwnames[] = { | |
32062 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
32063 | }; | |
32064 | ||
32065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
32066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32068 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 32069 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32070 | { |
32071 | arg3 = wxString_in_helper(obj2); | |
32072 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32073 | temp3 = true; |
d14a1e28 RD |
32074 | } |
32075 | { | |
32076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32077 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
32078 | ||
32079 | wxPyEndAllowThreads(__tstate); | |
32080 | if (PyErr_Occurred()) SWIG_fail; | |
32081 | } | |
32082 | Py_INCREF(Py_None); resultobj = Py_None; | |
32083 | { | |
32084 | if (temp3) | |
32085 | delete arg3; | |
32086 | } | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | { | |
32090 | if (temp3) | |
32091 | delete arg3; | |
32092 | } | |
32093 | return NULL; | |
32094 | } | |
32095 | ||
32096 | ||
c32bde28 | 32097 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32098 | PyObject *resultobj; |
32099 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32100 | size_t arg2 ; | |
32101 | wxString result; | |
32102 | PyObject * obj0 = 0 ; | |
32103 | PyObject * obj1 = 0 ; | |
32104 | char *kwnames[] = { | |
32105 | (char *) "self",(char *) "pos", NULL | |
32106 | }; | |
32107 | ||
32108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32111 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 32112 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32113 | { |
32114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32115 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
32116 | ||
32117 | wxPyEndAllowThreads(__tstate); | |
32118 | if (PyErr_Occurred()) SWIG_fail; | |
32119 | } | |
32120 | { | |
32121 | #if wxUSE_UNICODE | |
32122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32123 | #else | |
32124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32125 | #endif | |
32126 | } | |
32127 | return resultobj; | |
32128 | fail: | |
32129 | return NULL; | |
32130 | } | |
32131 | ||
32132 | ||
c32bde28 | 32133 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32134 | PyObject *resultobj; |
32135 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32136 | wxString *arg2 = 0 ; | |
32137 | wxString *arg3 = 0 ; | |
32138 | int result; | |
ae8162c8 RD |
32139 | bool temp2 = false ; |
32140 | bool temp3 = false ; | |
d14a1e28 RD |
32141 | PyObject * obj0 = 0 ; |
32142 | PyObject * obj1 = 0 ; | |
32143 | PyObject * obj2 = 0 ; | |
32144 | char *kwnames[] = { | |
32145 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32146 | }; | |
32147 | ||
32148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
32149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32151 | { |
32152 | arg2 = wxString_in_helper(obj1); | |
32153 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32154 | temp2 = true; |
d14a1e28 RD |
32155 | } |
32156 | { | |
32157 | arg3 = wxString_in_helper(obj2); | |
32158 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32159 | temp3 = true; |
d14a1e28 RD |
32160 | } |
32161 | { | |
32162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32163 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32164 | ||
32165 | wxPyEndAllowThreads(__tstate); | |
32166 | if (PyErr_Occurred()) SWIG_fail; | |
32167 | } | |
c32bde28 | 32168 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
32169 | { |
32170 | if (temp2) | |
32171 | delete arg2; | |
32172 | } | |
32173 | { | |
32174 | if (temp3) | |
32175 | delete arg3; | |
32176 | } | |
32177 | return resultobj; | |
32178 | fail: | |
32179 | { | |
32180 | if (temp2) | |
32181 | delete arg2; | |
32182 | } | |
32183 | { | |
32184 | if (temp3) | |
32185 | delete arg3; | |
32186 | } | |
32187 | return NULL; | |
32188 | } | |
32189 | ||
32190 | ||
c32bde28 | 32191 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32192 | PyObject *resultobj; |
32193 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32194 | int arg2 ; | |
32195 | wxMenuItem *result; | |
32196 | PyObject * obj0 = 0 ; | |
994141e6 | 32197 | PyObject * obj1 = 0 ; |
d14a1e28 | 32198 | char *kwnames[] = { |
242b7b46 | 32199 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32200 | }; |
32201 | ||
994141e6 | 32202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32205 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32206 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32207 | { |
32208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32209 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32210 | ||
32211 | wxPyEndAllowThreads(__tstate); | |
32212 | if (PyErr_Occurred()) SWIG_fail; | |
32213 | } | |
32214 | { | |
412d302d | 32215 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32216 | } |
32217 | return resultobj; | |
32218 | fail: | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
c32bde28 | 32223 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32224 | PyObject *resultobj; |
32225 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32226 | wxString *arg2 = 0 ; | |
32227 | int result; | |
ae8162c8 | 32228 | bool temp2 = false ; |
d14a1e28 RD |
32229 | PyObject * obj0 = 0 ; |
32230 | PyObject * obj1 = 0 ; | |
32231 | char *kwnames[] = { | |
32232 | (char *) "self",(char *) "title", NULL | |
32233 | }; | |
32234 | ||
32235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32238 | { |
32239 | arg2 = wxString_in_helper(obj1); | |
32240 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32241 | temp2 = true; |
d14a1e28 RD |
32242 | } |
32243 | { | |
32244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32245 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32246 | ||
32247 | wxPyEndAllowThreads(__tstate); | |
32248 | if (PyErr_Occurred()) SWIG_fail; | |
32249 | } | |
c32bde28 | 32250 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
32251 | { |
32252 | if (temp2) | |
32253 | delete arg2; | |
32254 | } | |
32255 | return resultobj; | |
32256 | fail: | |
32257 | { | |
32258 | if (temp2) | |
32259 | delete arg2; | |
32260 | } | |
32261 | return NULL; | |
32262 | } | |
32263 | ||
32264 | ||
c32bde28 | 32265 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32266 | PyObject *resultobj; |
32267 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32268 | int arg2 ; | |
32269 | bool arg3 ; | |
32270 | PyObject * obj0 = 0 ; | |
994141e6 | 32271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32272 | PyObject * obj2 = 0 ; |
32273 | char *kwnames[] = { | |
242b7b46 | 32274 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
32275 | }; |
32276 | ||
994141e6 | 32277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
32278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32280 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32281 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32282 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 32283 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32284 | { |
32285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32286 | (arg1)->Enable(arg2,arg3); | |
32287 | ||
32288 | wxPyEndAllowThreads(__tstate); | |
32289 | if (PyErr_Occurred()) SWIG_fail; | |
32290 | } | |
32291 | Py_INCREF(Py_None); resultobj = Py_None; | |
32292 | return resultobj; | |
32293 | fail: | |
32294 | return NULL; | |
32295 | } | |
32296 | ||
32297 | ||
c32bde28 | 32298 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32299 | PyObject *resultobj; |
32300 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32301 | int arg2 ; | |
32302 | bool arg3 ; | |
32303 | PyObject * obj0 = 0 ; | |
994141e6 | 32304 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32305 | PyObject * obj2 = 0 ; |
32306 | char *kwnames[] = { | |
242b7b46 | 32307 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
32308 | }; |
32309 | ||
994141e6 | 32310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
32311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32313 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32314 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32315 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 32316 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32317 | { |
32318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32319 | (arg1)->Check(arg2,arg3); | |
32320 | ||
32321 | wxPyEndAllowThreads(__tstate); | |
32322 | if (PyErr_Occurred()) SWIG_fail; | |
32323 | } | |
32324 | Py_INCREF(Py_None); resultobj = Py_None; | |
32325 | return resultobj; | |
32326 | fail: | |
32327 | return NULL; | |
32328 | } | |
32329 | ||
32330 | ||
c32bde28 | 32331 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32332 | PyObject *resultobj; |
32333 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32334 | int arg2 ; | |
32335 | bool result; | |
32336 | PyObject * obj0 = 0 ; | |
994141e6 | 32337 | PyObject * obj1 = 0 ; |
d14a1e28 | 32338 | char *kwnames[] = { |
242b7b46 | 32339 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32340 | }; |
32341 | ||
994141e6 | 32342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32345 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32346 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32347 | { |
32348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32349 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32350 | ||
32351 | wxPyEndAllowThreads(__tstate); | |
32352 | if (PyErr_Occurred()) SWIG_fail; | |
32353 | } | |
4f89f6a3 RD |
32354 | { |
32355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32356 | } | |
d14a1e28 RD |
32357 | return resultobj; |
32358 | fail: | |
32359 | return NULL; | |
32360 | } | |
32361 | ||
32362 | ||
c32bde28 | 32363 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32364 | PyObject *resultobj; |
32365 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32366 | int arg2 ; | |
32367 | bool result; | |
32368 | PyObject * obj0 = 0 ; | |
994141e6 | 32369 | PyObject * obj1 = 0 ; |
d14a1e28 | 32370 | char *kwnames[] = { |
242b7b46 | 32371 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32372 | }; |
32373 | ||
994141e6 | 32374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32377 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32378 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32379 | { |
32380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32381 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32382 | ||
32383 | wxPyEndAllowThreads(__tstate); | |
32384 | if (PyErr_Occurred()) SWIG_fail; | |
32385 | } | |
4f89f6a3 RD |
32386 | { |
32387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32388 | } | |
d14a1e28 RD |
32389 | return resultobj; |
32390 | fail: | |
32391 | return NULL; | |
32392 | } | |
32393 | ||
32394 | ||
c32bde28 | 32395 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32396 | PyObject *resultobj; |
32397 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32398 | int arg2 ; | |
32399 | wxString *arg3 = 0 ; | |
ae8162c8 | 32400 | bool temp3 = false ; |
d14a1e28 | 32401 | PyObject * obj0 = 0 ; |
994141e6 | 32402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32403 | PyObject * obj2 = 0 ; |
32404 | char *kwnames[] = { | |
242b7b46 | 32405 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
32406 | }; |
32407 | ||
994141e6 | 32408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
32409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32411 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32412 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32413 | { |
32414 | arg3 = wxString_in_helper(obj2); | |
32415 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32416 | temp3 = true; |
d14a1e28 RD |
32417 | } |
32418 | { | |
32419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32420 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32421 | ||
32422 | wxPyEndAllowThreads(__tstate); | |
32423 | if (PyErr_Occurred()) SWIG_fail; | |
32424 | } | |
32425 | Py_INCREF(Py_None); resultobj = Py_None; | |
32426 | { | |
32427 | if (temp3) | |
32428 | delete arg3; | |
32429 | } | |
32430 | return resultobj; | |
32431 | fail: | |
32432 | { | |
32433 | if (temp3) | |
32434 | delete arg3; | |
32435 | } | |
32436 | return NULL; | |
32437 | } | |
32438 | ||
32439 | ||
c32bde28 | 32440 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32441 | PyObject *resultobj; |
32442 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32443 | int arg2 ; | |
32444 | wxString result; | |
32445 | PyObject * obj0 = 0 ; | |
994141e6 | 32446 | PyObject * obj1 = 0 ; |
d14a1e28 | 32447 | char *kwnames[] = { |
242b7b46 | 32448 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32449 | }; |
32450 | ||
994141e6 | 32451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32454 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32455 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32456 | { |
32457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32458 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32459 | ||
32460 | wxPyEndAllowThreads(__tstate); | |
32461 | if (PyErr_Occurred()) SWIG_fail; | |
32462 | } | |
32463 | { | |
32464 | #if wxUSE_UNICODE | |
32465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32466 | #else | |
32467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32468 | #endif | |
32469 | } | |
32470 | return resultobj; | |
32471 | fail: | |
32472 | return NULL; | |
32473 | } | |
32474 | ||
32475 | ||
c32bde28 | 32476 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32477 | PyObject *resultobj; |
32478 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32479 | int arg2 ; | |
32480 | wxString *arg3 = 0 ; | |
ae8162c8 | 32481 | bool temp3 = false ; |
d14a1e28 | 32482 | PyObject * obj0 = 0 ; |
994141e6 | 32483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32484 | PyObject * obj2 = 0 ; |
32485 | char *kwnames[] = { | |
242b7b46 | 32486 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
32487 | }; |
32488 | ||
994141e6 | 32489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
32490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32492 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32493 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32494 | { |
32495 | arg3 = wxString_in_helper(obj2); | |
32496 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32497 | temp3 = true; |
d14a1e28 RD |
32498 | } |
32499 | { | |
32500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32501 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32502 | ||
32503 | wxPyEndAllowThreads(__tstate); | |
32504 | if (PyErr_Occurred()) SWIG_fail; | |
32505 | } | |
32506 | Py_INCREF(Py_None); resultobj = Py_None; | |
32507 | { | |
32508 | if (temp3) | |
32509 | delete arg3; | |
32510 | } | |
32511 | return resultobj; | |
32512 | fail: | |
32513 | { | |
32514 | if (temp3) | |
32515 | delete arg3; | |
32516 | } | |
32517 | return NULL; | |
32518 | } | |
32519 | ||
32520 | ||
c32bde28 | 32521 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32522 | PyObject *resultobj; |
32523 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32524 | int arg2 ; | |
32525 | wxString result; | |
32526 | PyObject * obj0 = 0 ; | |
994141e6 | 32527 | PyObject * obj1 = 0 ; |
d14a1e28 | 32528 | char *kwnames[] = { |
242b7b46 | 32529 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32530 | }; |
32531 | ||
994141e6 | 32532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32535 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32536 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32537 | { |
32538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32539 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32540 | ||
32541 | wxPyEndAllowThreads(__tstate); | |
32542 | if (PyErr_Occurred()) SWIG_fail; | |
32543 | } | |
32544 | { | |
32545 | #if wxUSE_UNICODE | |
32546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32547 | #else | |
32548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32549 | #endif | |
32550 | } | |
32551 | return resultobj; | |
32552 | fail: | |
32553 | return NULL; | |
32554 | } | |
32555 | ||
32556 | ||
c32bde28 | 32557 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32558 | PyObject *resultobj; |
32559 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32560 | wxFrame *result; | |
32561 | PyObject * obj0 = 0 ; | |
32562 | char *kwnames[] = { | |
32563 | (char *) "self", NULL | |
32564 | }; | |
32565 | ||
32566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32569 | { |
32570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32571 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32572 | ||
32573 | wxPyEndAllowThreads(__tstate); | |
32574 | if (PyErr_Occurred()) SWIG_fail; | |
32575 | } | |
32576 | { | |
412d302d | 32577 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32578 | } |
32579 | return resultobj; | |
32580 | fail: | |
32581 | return NULL; | |
32582 | } | |
32583 | ||
32584 | ||
c32bde28 | 32585 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32586 | PyObject *resultobj; |
32587 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32588 | bool result; | |
32589 | PyObject * obj0 = 0 ; | |
32590 | char *kwnames[] = { | |
32591 | (char *) "self", NULL | |
32592 | }; | |
32593 | ||
32594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32597 | { |
32598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32599 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32600 | ||
32601 | wxPyEndAllowThreads(__tstate); | |
32602 | if (PyErr_Occurred()) SWIG_fail; | |
32603 | } | |
4f89f6a3 RD |
32604 | { |
32605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32606 | } | |
d14a1e28 RD |
32607 | return resultobj; |
32608 | fail: | |
32609 | return NULL; | |
32610 | } | |
32611 | ||
32612 | ||
c32bde28 | 32613 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32614 | PyObject *resultobj; |
32615 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32616 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32617 | PyObject * obj0 = 0 ; | |
32618 | PyObject * obj1 = 0 ; | |
32619 | char *kwnames[] = { | |
32620 | (char *) "self",(char *) "frame", NULL | |
32621 | }; | |
32622 | ||
32623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32628 | { |
32629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32630 | (arg1)->Attach(arg2); | |
32631 | ||
32632 | wxPyEndAllowThreads(__tstate); | |
32633 | if (PyErr_Occurred()) SWIG_fail; | |
32634 | } | |
32635 | Py_INCREF(Py_None); resultobj = Py_None; | |
32636 | return resultobj; | |
32637 | fail: | |
32638 | return NULL; | |
32639 | } | |
32640 | ||
32641 | ||
c32bde28 | 32642 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32643 | PyObject *resultobj; |
32644 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32645 | PyObject * obj0 = 0 ; | |
32646 | char *kwnames[] = { | |
32647 | (char *) "self", NULL | |
32648 | }; | |
32649 | ||
32650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
32652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32653 | { |
32654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32655 | (arg1)->Detach(); | |
32656 | ||
32657 | wxPyEndAllowThreads(__tstate); | |
32658 | if (PyErr_Occurred()) SWIG_fail; | |
32659 | } | |
32660 | Py_INCREF(Py_None); resultobj = Py_None; | |
32661 | return resultobj; | |
32662 | fail: | |
32663 | return NULL; | |
32664 | } | |
32665 | ||
32666 | ||
c32bde28 | 32667 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32668 | PyObject *obj; |
32669 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32670 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32671 | Py_INCREF(obj); | |
32672 | return Py_BuildValue((char *)""); | |
32673 | } | |
c32bde28 | 32674 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32675 | PyObject *resultobj; |
32676 | wxMenu *arg1 = (wxMenu *) NULL ; | |
a95a7133 | 32677 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
32678 | wxString const &arg3_defvalue = wxPyEmptyString ; |
32679 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32680 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32681 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32682 | int arg5 = (int) wxITEM_NORMAL ; | |
32683 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32684 | wxMenuItem *result; | |
ae8162c8 RD |
32685 | bool temp3 = false ; |
32686 | bool temp4 = false ; | |
d14a1e28 | 32687 | PyObject * obj0 = 0 ; |
994141e6 | 32688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32689 | PyObject * obj2 = 0 ; |
32690 | PyObject * obj3 = 0 ; | |
994141e6 | 32691 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32692 | PyObject * obj5 = 0 ; |
32693 | char *kwnames[] = { | |
32694 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32695 | }; | |
32696 | ||
994141e6 | 32697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 32698 | if (obj0) { |
15afbcd0 RD |
32699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
32700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32701 | } |
994141e6 | 32702 | if (obj1) { |
c32bde28 | 32703 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32704 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 32705 | } |
d14a1e28 RD |
32706 | if (obj2) { |
32707 | { | |
32708 | arg3 = wxString_in_helper(obj2); | |
32709 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32710 | temp3 = true; |
d14a1e28 RD |
32711 | } |
32712 | } | |
32713 | if (obj3) { | |
32714 | { | |
32715 | arg4 = wxString_in_helper(obj3); | |
32716 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32717 | temp4 = true; |
d14a1e28 RD |
32718 | } |
32719 | } | |
994141e6 | 32720 | if (obj4) { |
c32bde28 | 32721 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 32722 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 32723 | } |
d14a1e28 | 32724 | if (obj5) { |
15afbcd0 RD |
32725 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
32726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32727 | } |
32728 | { | |
32729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32730 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32731 | ||
32732 | wxPyEndAllowThreads(__tstate); | |
32733 | if (PyErr_Occurred()) SWIG_fail; | |
32734 | } | |
32735 | { | |
412d302d | 32736 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
32737 | } |
32738 | { | |
32739 | if (temp3) | |
32740 | delete arg3; | |
32741 | } | |
32742 | { | |
32743 | if (temp4) | |
32744 | delete arg4; | |
32745 | } | |
32746 | return resultobj; | |
32747 | fail: | |
32748 | { | |
32749 | if (temp3) | |
32750 | delete arg3; | |
32751 | } | |
32752 | { | |
32753 | if (temp4) | |
32754 | delete arg4; | |
32755 | } | |
32756 | return NULL; | |
32757 | } | |
32758 | ||
32759 | ||
c32bde28 | 32760 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32761 | PyObject *resultobj; |
32762 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32763 | wxMenu *result; | |
32764 | PyObject * obj0 = 0 ; | |
32765 | char *kwnames[] = { | |
32766 | (char *) "self", NULL | |
32767 | }; | |
32768 | ||
32769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32772 | { |
32773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32774 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32775 | ||
32776 | wxPyEndAllowThreads(__tstate); | |
32777 | if (PyErr_Occurred()) SWIG_fail; | |
32778 | } | |
32779 | { | |
412d302d | 32780 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32781 | } |
32782 | return resultobj; | |
32783 | fail: | |
32784 | return NULL; | |
32785 | } | |
32786 | ||
32787 | ||
c32bde28 | 32788 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32789 | PyObject *resultobj; |
32790 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32791 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32792 | PyObject * obj0 = 0 ; | |
32793 | PyObject * obj1 = 0 ; | |
32794 | char *kwnames[] = { | |
32795 | (char *) "self",(char *) "menu", NULL | |
32796 | }; | |
32797 | ||
32798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32803 | { |
32804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32805 | (arg1)->SetMenu(arg2); | |
32806 | ||
32807 | wxPyEndAllowThreads(__tstate); | |
32808 | if (PyErr_Occurred()) SWIG_fail; | |
32809 | } | |
32810 | Py_INCREF(Py_None); resultobj = Py_None; | |
32811 | return resultobj; | |
32812 | fail: | |
32813 | return NULL; | |
32814 | } | |
32815 | ||
32816 | ||
c32bde28 | 32817 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32818 | PyObject *resultobj; |
32819 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32820 | int arg2 ; | |
32821 | PyObject * obj0 = 0 ; | |
994141e6 | 32822 | PyObject * obj1 = 0 ; |
d14a1e28 | 32823 | char *kwnames[] = { |
242b7b46 | 32824 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32825 | }; |
32826 | ||
994141e6 | 32827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32830 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 32831 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32832 | { |
32833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32834 | (arg1)->SetId(arg2); | |
32835 | ||
32836 | wxPyEndAllowThreads(__tstate); | |
32837 | if (PyErr_Occurred()) SWIG_fail; | |
32838 | } | |
32839 | Py_INCREF(Py_None); resultobj = Py_None; | |
32840 | return resultobj; | |
32841 | fail: | |
32842 | return NULL; | |
32843 | } | |
32844 | ||
32845 | ||
c32bde28 | 32846 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32847 | PyObject *resultobj; |
32848 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32849 | int result; | |
32850 | PyObject * obj0 = 0 ; | |
32851 | char *kwnames[] = { | |
32852 | (char *) "self", NULL | |
32853 | }; | |
32854 | ||
32855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32858 | { |
32859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32860 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32861 | ||
32862 | wxPyEndAllowThreads(__tstate); | |
32863 | if (PyErr_Occurred()) SWIG_fail; | |
32864 | } | |
c32bde28 | 32865 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
32866 | return resultobj; |
32867 | fail: | |
32868 | return NULL; | |
32869 | } | |
32870 | ||
32871 | ||
c32bde28 | 32872 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32873 | PyObject *resultobj; |
32874 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32875 | bool result; | |
32876 | PyObject * obj0 = 0 ; | |
32877 | char *kwnames[] = { | |
32878 | (char *) "self", NULL | |
32879 | }; | |
32880 | ||
32881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32884 | { |
32885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32886 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32887 | ||
32888 | wxPyEndAllowThreads(__tstate); | |
32889 | if (PyErr_Occurred()) SWIG_fail; | |
32890 | } | |
4f89f6a3 RD |
32891 | { |
32892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32893 | } | |
d14a1e28 RD |
32894 | return resultobj; |
32895 | fail: | |
32896 | return NULL; | |
32897 | } | |
32898 | ||
32899 | ||
c32bde28 | 32900 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32901 | PyObject *resultobj; |
32902 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32903 | wxString *arg2 = 0 ; | |
ae8162c8 | 32904 | bool temp2 = false ; |
d14a1e28 RD |
32905 | PyObject * obj0 = 0 ; |
32906 | PyObject * obj1 = 0 ; | |
32907 | char *kwnames[] = { | |
32908 | (char *) "self",(char *) "str", NULL | |
32909 | }; | |
32910 | ||
32911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32914 | { |
32915 | arg2 = wxString_in_helper(obj1); | |
32916 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32917 | temp2 = true; |
d14a1e28 RD |
32918 | } |
32919 | { | |
32920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32921 | (arg1)->SetText((wxString const &)*arg2); | |
32922 | ||
32923 | wxPyEndAllowThreads(__tstate); | |
32924 | if (PyErr_Occurred()) SWIG_fail; | |
32925 | } | |
32926 | Py_INCREF(Py_None); resultobj = Py_None; | |
32927 | { | |
32928 | if (temp2) | |
32929 | delete arg2; | |
32930 | } | |
32931 | return resultobj; | |
32932 | fail: | |
32933 | { | |
32934 | if (temp2) | |
32935 | delete arg2; | |
32936 | } | |
32937 | return NULL; | |
32938 | } | |
32939 | ||
32940 | ||
c32bde28 | 32941 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32942 | PyObject *resultobj; |
32943 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32944 | wxString result; | |
32945 | PyObject * obj0 = 0 ; | |
32946 | char *kwnames[] = { | |
32947 | (char *) "self", NULL | |
32948 | }; | |
32949 | ||
32950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32953 | { |
32954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32955 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32956 | ||
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
32960 | { | |
32961 | #if wxUSE_UNICODE | |
32962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32963 | #else | |
32964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32965 | #endif | |
32966 | } | |
32967 | return resultobj; | |
32968 | fail: | |
32969 | return NULL; | |
32970 | } | |
32971 | ||
32972 | ||
c32bde28 | 32973 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32974 | PyObject *resultobj; |
32975 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32976 | wxString *result; | |
32977 | PyObject * obj0 = 0 ; | |
32978 | char *kwnames[] = { | |
32979 | (char *) "self", NULL | |
32980 | }; | |
32981 | ||
32982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32985 | { |
32986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32987 | { | |
32988 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32989 | result = (wxString *) &_result_ref; | |
32990 | } | |
32991 | ||
32992 | wxPyEndAllowThreads(__tstate); | |
32993 | if (PyErr_Occurred()) SWIG_fail; | |
32994 | } | |
cc6dd355 RD |
32995 | { |
32996 | #if wxUSE_UNICODE | |
32997 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32998 | #else | |
32999 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33000 | #endif | |
33001 | } | |
d14a1e28 RD |
33002 | return resultobj; |
33003 | fail: | |
33004 | return NULL; | |
33005 | } | |
33006 | ||
33007 | ||
c32bde28 | 33008 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33009 | PyObject *resultobj; |
33010 | wxString *arg1 = 0 ; | |
33011 | wxString result; | |
ae8162c8 | 33012 | bool temp1 = false ; |
d14a1e28 RD |
33013 | PyObject * obj0 = 0 ; |
33014 | char *kwnames[] = { | |
33015 | (char *) "text", NULL | |
33016 | }; | |
33017 | ||
33018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
33019 | { | |
33020 | arg1 = wxString_in_helper(obj0); | |
33021 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33022 | temp1 = true; |
d14a1e28 RD |
33023 | } |
33024 | { | |
33025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33026 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
33027 | ||
33028 | wxPyEndAllowThreads(__tstate); | |
33029 | if (PyErr_Occurred()) SWIG_fail; | |
33030 | } | |
33031 | { | |
33032 | #if wxUSE_UNICODE | |
33033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33034 | #else | |
33035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33036 | #endif | |
33037 | } | |
33038 | { | |
33039 | if (temp1) | |
33040 | delete arg1; | |
33041 | } | |
33042 | return resultobj; | |
33043 | fail: | |
33044 | { | |
33045 | if (temp1) | |
33046 | delete arg1; | |
33047 | } | |
33048 | return NULL; | |
33049 | } | |
33050 | ||
33051 | ||
c32bde28 | 33052 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33053 | PyObject *resultobj; |
33054 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33055 | int result; | |
33056 | PyObject * obj0 = 0 ; | |
33057 | char *kwnames[] = { | |
33058 | (char *) "self", NULL | |
33059 | }; | |
33060 | ||
33061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33064 | { |
33065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33066 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
33067 | ||
33068 | wxPyEndAllowThreads(__tstate); | |
33069 | if (PyErr_Occurred()) SWIG_fail; | |
33070 | } | |
c32bde28 | 33071 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
33072 | return resultobj; |
33073 | fail: | |
33074 | return NULL; | |
33075 | } | |
33076 | ||
33077 | ||
c32bde28 | 33078 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
33079 | PyObject *resultobj; |
33080 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33081 | int arg2 ; | |
33082 | PyObject * obj0 = 0 ; | |
33083 | PyObject * obj1 = 0 ; | |
33084 | char *kwnames[] = { | |
33085 | (char *) "self",(char *) "kind", NULL | |
33086 | }; | |
33087 | ||
33088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
33089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33091 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
33092 | if (PyErr_Occurred()) SWIG_fail; |
33093 | { | |
33094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33095 | (arg1)->SetKind((wxItemKind )arg2); | |
33096 | ||
33097 | wxPyEndAllowThreads(__tstate); | |
33098 | if (PyErr_Occurred()) SWIG_fail; | |
33099 | } | |
33100 | Py_INCREF(Py_None); resultobj = Py_None; | |
33101 | return resultobj; | |
33102 | fail: | |
33103 | return NULL; | |
33104 | } | |
33105 | ||
33106 | ||
c32bde28 | 33107 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33108 | PyObject *resultobj; |
33109 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33110 | bool arg2 ; | |
33111 | PyObject * obj0 = 0 ; | |
33112 | PyObject * obj1 = 0 ; | |
33113 | char *kwnames[] = { | |
33114 | (char *) "self",(char *) "checkable", NULL | |
33115 | }; | |
33116 | ||
33117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33120 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 33121 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33122 | { |
33123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33124 | (arg1)->SetCheckable(arg2); | |
33125 | ||
33126 | wxPyEndAllowThreads(__tstate); | |
33127 | if (PyErr_Occurred()) SWIG_fail; | |
33128 | } | |
33129 | Py_INCREF(Py_None); resultobj = Py_None; | |
33130 | return resultobj; | |
33131 | fail: | |
33132 | return NULL; | |
33133 | } | |
33134 | ||
33135 | ||
c32bde28 | 33136 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33137 | PyObject *resultobj; |
33138 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33139 | bool result; | |
33140 | PyObject * obj0 = 0 ; | |
33141 | char *kwnames[] = { | |
33142 | (char *) "self", NULL | |
33143 | }; | |
33144 | ||
33145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33148 | { |
33149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33150 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33151 | ||
33152 | wxPyEndAllowThreads(__tstate); | |
33153 | if (PyErr_Occurred()) SWIG_fail; | |
33154 | } | |
4f89f6a3 RD |
33155 | { |
33156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33157 | } | |
d14a1e28 RD |
33158 | return resultobj; |
33159 | fail: | |
33160 | return NULL; | |
33161 | } | |
33162 | ||
33163 | ||
c32bde28 | 33164 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33165 | PyObject *resultobj; |
33166 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33167 | bool result; | |
33168 | PyObject * obj0 = 0 ; | |
33169 | char *kwnames[] = { | |
33170 | (char *) "self", NULL | |
33171 | }; | |
33172 | ||
33173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33176 | { |
33177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33178 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33179 | ||
33180 | wxPyEndAllowThreads(__tstate); | |
33181 | if (PyErr_Occurred()) SWIG_fail; | |
33182 | } | |
4f89f6a3 RD |
33183 | { |
33184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33185 | } | |
d14a1e28 RD |
33186 | return resultobj; |
33187 | fail: | |
33188 | return NULL; | |
33189 | } | |
33190 | ||
33191 | ||
c32bde28 | 33192 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33193 | PyObject *resultobj; |
33194 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33195 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33196 | PyObject * obj0 = 0 ; | |
33197 | PyObject * obj1 = 0 ; | |
33198 | char *kwnames[] = { | |
33199 | (char *) "self",(char *) "menu", NULL | |
33200 | }; | |
33201 | ||
33202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33207 | { |
33208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33209 | (arg1)->SetSubMenu(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_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33222 | PyObject *resultobj; |
33223 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33224 | wxMenu *result; | |
33225 | PyObject * obj0 = 0 ; | |
33226 | char *kwnames[] = { | |
33227 | (char *) "self", NULL | |
33228 | }; | |
33229 | ||
33230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33233 | { |
33234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33235 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33236 | ||
33237 | wxPyEndAllowThreads(__tstate); | |
33238 | if (PyErr_Occurred()) SWIG_fail; | |
33239 | } | |
33240 | { | |
412d302d | 33241 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
33242 | } |
33243 | return resultobj; | |
33244 | fail: | |
33245 | return NULL; | |
33246 | } | |
33247 | ||
33248 | ||
c32bde28 | 33249 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33250 | PyObject *resultobj; |
33251 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33252 | bool arg2 = (bool) true ; |
d14a1e28 RD |
33253 | PyObject * obj0 = 0 ; |
33254 | PyObject * obj1 = 0 ; | |
33255 | char *kwnames[] = { | |
33256 | (char *) "self",(char *) "enable", NULL | |
33257 | }; | |
33258 | ||
33259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33262 | if (obj1) { |
c32bde28 | 33263 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 33264 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33265 | } |
33266 | { | |
33267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33268 | (arg1)->Enable(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_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 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_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33292 | { |
33293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33294 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33295 | ||
33296 | wxPyEndAllowThreads(__tstate); | |
33297 | if (PyErr_Occurred()) SWIG_fail; | |
33298 | } | |
4f89f6a3 RD |
33299 | { |
33300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33301 | } | |
d14a1e28 RD |
33302 | return resultobj; |
33303 | fail: | |
33304 | return NULL; | |
33305 | } | |
33306 | ||
33307 | ||
c32bde28 | 33308 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33309 | PyObject *resultobj; |
33310 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33311 | bool arg2 = (bool) true ; |
d14a1e28 RD |
33312 | PyObject * obj0 = 0 ; |
33313 | PyObject * obj1 = 0 ; | |
33314 | char *kwnames[] = { | |
33315 | (char *) "self",(char *) "check", NULL | |
33316 | }; | |
33317 | ||
33318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33321 | if (obj1) { |
c32bde28 | 33322 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 33323 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33324 | } |
33325 | { | |
33326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33327 | (arg1)->Check(arg2); | |
33328 | ||
33329 | wxPyEndAllowThreads(__tstate); | |
33330 | if (PyErr_Occurred()) SWIG_fail; | |
33331 | } | |
33332 | Py_INCREF(Py_None); resultobj = Py_None; | |
33333 | return resultobj; | |
33334 | fail: | |
33335 | return NULL; | |
33336 | } | |
33337 | ||
33338 | ||
c32bde28 | 33339 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33340 | PyObject *resultobj; |
33341 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33342 | bool result; | |
33343 | PyObject * obj0 = 0 ; | |
33344 | char *kwnames[] = { | |
33345 | (char *) "self", NULL | |
33346 | }; | |
33347 | ||
33348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33351 | { |
33352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33353 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33354 | ||
33355 | wxPyEndAllowThreads(__tstate); | |
33356 | if (PyErr_Occurred()) SWIG_fail; | |
33357 | } | |
4f89f6a3 RD |
33358 | { |
33359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33360 | } | |
d14a1e28 RD |
33361 | return resultobj; |
33362 | fail: | |
33363 | return NULL; | |
33364 | } | |
33365 | ||
33366 | ||
c32bde28 | 33367 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33368 | PyObject *resultobj; |
33369 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33370 | PyObject * obj0 = 0 ; | |
33371 | char *kwnames[] = { | |
33372 | (char *) "self", NULL | |
33373 | }; | |
33374 | ||
33375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33378 | { |
33379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33380 | (arg1)->Toggle(); | |
33381 | ||
33382 | wxPyEndAllowThreads(__tstate); | |
33383 | if (PyErr_Occurred()) SWIG_fail; | |
33384 | } | |
33385 | Py_INCREF(Py_None); resultobj = Py_None; | |
33386 | return resultobj; | |
33387 | fail: | |
33388 | return NULL; | |
33389 | } | |
33390 | ||
33391 | ||
c32bde28 | 33392 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33393 | PyObject *resultobj; |
33394 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33395 | wxString *arg2 = 0 ; | |
ae8162c8 | 33396 | bool temp2 = false ; |
d14a1e28 RD |
33397 | PyObject * obj0 = 0 ; |
33398 | PyObject * obj1 = 0 ; | |
33399 | char *kwnames[] = { | |
33400 | (char *) "self",(char *) "str", NULL | |
33401 | }; | |
33402 | ||
33403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33406 | { |
33407 | arg2 = wxString_in_helper(obj1); | |
33408 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33409 | temp2 = true; |
d14a1e28 RD |
33410 | } |
33411 | { | |
33412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33413 | (arg1)->SetHelp((wxString const &)*arg2); | |
33414 | ||
33415 | wxPyEndAllowThreads(__tstate); | |
33416 | if (PyErr_Occurred()) SWIG_fail; | |
33417 | } | |
33418 | Py_INCREF(Py_None); resultobj = Py_None; | |
33419 | { | |
33420 | if (temp2) | |
33421 | delete arg2; | |
33422 | } | |
33423 | return resultobj; | |
33424 | fail: | |
33425 | { | |
33426 | if (temp2) | |
33427 | delete arg2; | |
33428 | } | |
33429 | return NULL; | |
33430 | } | |
33431 | ||
33432 | ||
c32bde28 | 33433 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33434 | PyObject *resultobj; |
33435 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33436 | wxString *result; | |
33437 | PyObject * obj0 = 0 ; | |
33438 | char *kwnames[] = { | |
33439 | (char *) "self", NULL | |
33440 | }; | |
33441 | ||
33442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33445 | { |
33446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33447 | { | |
33448 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33449 | result = (wxString *) &_result_ref; | |
33450 | } | |
33451 | ||
33452 | wxPyEndAllowThreads(__tstate); | |
33453 | if (PyErr_Occurred()) SWIG_fail; | |
33454 | } | |
cc6dd355 RD |
33455 | { |
33456 | #if wxUSE_UNICODE | |
33457 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33458 | #else | |
33459 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33460 | #endif | |
33461 | } | |
d14a1e28 RD |
33462 | return resultobj; |
33463 | fail: | |
33464 | return NULL; | |
33465 | } | |
33466 | ||
33467 | ||
c32bde28 | 33468 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33469 | PyObject *resultobj; |
33470 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33471 | wxAcceleratorEntry *result; | |
33472 | PyObject * obj0 = 0 ; | |
33473 | char *kwnames[] = { | |
33474 | (char *) "self", NULL | |
33475 | }; | |
33476 | ||
33477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33480 | { |
33481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33482 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33483 | ||
33484 | wxPyEndAllowThreads(__tstate); | |
33485 | if (PyErr_Occurred()) SWIG_fail; | |
33486 | } | |
15afbcd0 | 33487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
33488 | return resultobj; |
33489 | fail: | |
33490 | return NULL; | |
33491 | } | |
33492 | ||
33493 | ||
c32bde28 | 33494 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33495 | PyObject *resultobj; |
33496 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33497 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33498 | PyObject * obj0 = 0 ; | |
33499 | PyObject * obj1 = 0 ; | |
33500 | char *kwnames[] = { | |
33501 | (char *) "self",(char *) "accel", NULL | |
33502 | }; | |
33503 | ||
33504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33507 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33509 | { |
33510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33511 | (arg1)->SetAccel(arg2); | |
33512 | ||
33513 | wxPyEndAllowThreads(__tstate); | |
33514 | if (PyErr_Occurred()) SWIG_fail; | |
33515 | } | |
33516 | Py_INCREF(Py_None); resultobj = Py_None; | |
33517 | return resultobj; | |
33518 | fail: | |
33519 | return NULL; | |
33520 | } | |
33521 | ||
33522 | ||
c32bde28 | 33523 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33524 | PyObject *resultobj; |
33525 | int result; | |
33526 | char *kwnames[] = { | |
33527 | NULL | |
33528 | }; | |
33529 | ||
33530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33531 | { | |
33532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33533 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
33534 | ||
33535 | wxPyEndAllowThreads(__tstate); | |
33536 | if (PyErr_Occurred()) SWIG_fail; | |
33537 | } | |
c32bde28 | 33538 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
33539 | return resultobj; |
33540 | fail: | |
33541 | return NULL; | |
33542 | } | |
33543 | ||
33544 | ||
c32bde28 | 33545 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33546 | PyObject *resultobj; |
33547 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33548 | wxBitmap *arg2 = 0 ; | |
33549 | PyObject * obj0 = 0 ; | |
33550 | PyObject * obj1 = 0 ; | |
33551 | char *kwnames[] = { | |
33552 | (char *) "self",(char *) "bitmap", NULL | |
33553 | }; | |
33554 | ||
33555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33560 | SWIG_fail; | |
d14a1e28 | 33561 | if (arg2 == NULL) { |
15afbcd0 RD |
33562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33563 | SWIG_fail; | |
d14a1e28 RD |
33564 | } |
33565 | { | |
33566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33567 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33568 | ||
33569 | wxPyEndAllowThreads(__tstate); | |
33570 | if (PyErr_Occurred()) SWIG_fail; | |
33571 | } | |
33572 | Py_INCREF(Py_None); resultobj = Py_None; | |
33573 | return resultobj; | |
33574 | fail: | |
33575 | return NULL; | |
33576 | } | |
33577 | ||
33578 | ||
c32bde28 | 33579 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33580 | PyObject *resultobj; |
33581 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33582 | wxBitmap *result; | |
33583 | PyObject * obj0 = 0 ; | |
33584 | char *kwnames[] = { | |
33585 | (char *) "self", NULL | |
33586 | }; | |
33587 | ||
33588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
33590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33591 | { |
33592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33593 | { | |
33594 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33595 | result = (wxBitmap *) &_result_ref; | |
33596 | } | |
33597 | ||
33598 | wxPyEndAllowThreads(__tstate); | |
33599 | if (PyErr_Occurred()) SWIG_fail; | |
33600 | } | |
4276dc52 RD |
33601 | { |
33602 | wxBitmap* resultptr = new wxBitmap(*result); | |
33603 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33604 | } | |
d14a1e28 RD |
33605 | return resultobj; |
33606 | fail: | |
33607 | return NULL; | |
33608 | } | |
33609 | ||
33610 | ||
c32bde28 | 33611 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33612 | PyObject *obj; |
33613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33614 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33615 | Py_INCREF(obj); | |
33616 | return Py_BuildValue((char *)""); | |
33617 | } | |
c32bde28 | 33618 | static int _wrap_ControlNameStr_set(PyObject *) { |
b2dc1044 RD |
33619 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
33620 | return 1; | |
33621 | } | |
33622 | ||
33623 | ||
33624 | static PyObject *_wrap_ControlNameStr_get() { | |
33625 | PyObject *pyobj; | |
33626 | ||
33627 | { | |
33628 | #if wxUSE_UNICODE | |
33629 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33630 | #else | |
33631 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33632 | #endif | |
33633 | } | |
33634 | return pyobj; | |
33635 | } | |
33636 | ||
33637 | ||
c32bde28 | 33638 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33639 | PyObject *resultobj; |
33640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 33641 | int arg2 = (int) -1 ; |
d14a1e28 RD |
33642 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33643 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33644 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33645 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33646 | long arg5 = (long) 0 ; | |
33647 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33648 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33649 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33650 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33651 | wxControl *result; | |
33652 | wxPoint temp3 ; | |
33653 | wxSize temp4 ; | |
ae8162c8 | 33654 | bool temp7 = false ; |
d14a1e28 | 33655 | PyObject * obj0 = 0 ; |
994141e6 | 33656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33657 | PyObject * obj2 = 0 ; |
33658 | PyObject * obj3 = 0 ; | |
994141e6 | 33659 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33660 | PyObject * obj5 = 0 ; |
33661 | PyObject * obj6 = 0 ; | |
33662 | char *kwnames[] = { | |
33663 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33664 | }; | |
33665 | ||
248ed943 | 33666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
33667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 33669 | if (obj1) { |
c32bde28 | 33670 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
33671 | if (PyErr_Occurred()) SWIG_fail; |
33672 | } | |
d14a1e28 RD |
33673 | if (obj2) { |
33674 | { | |
33675 | arg3 = &temp3; | |
33676 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33677 | } | |
33678 | } | |
33679 | if (obj3) { | |
33680 | { | |
33681 | arg4 = &temp4; | |
33682 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33683 | } | |
33684 | } | |
994141e6 | 33685 | if (obj4) { |
c32bde28 | 33686 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 33687 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 33688 | } |
d14a1e28 | 33689 | if (obj5) { |
15afbcd0 RD |
33690 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
33691 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33692 | SWIG_fail; | |
d14a1e28 | 33693 | if (arg6 == NULL) { |
15afbcd0 RD |
33694 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33695 | SWIG_fail; | |
d14a1e28 RD |
33696 | } |
33697 | } | |
33698 | if (obj6) { | |
33699 | { | |
33700 | arg7 = wxString_in_helper(obj6); | |
33701 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 33702 | temp7 = true; |
d14a1e28 RD |
33703 | } |
33704 | } | |
33705 | { | |
e3b71cb8 | 33706 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33708 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33709 | ||
33710 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33711 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33712 | } |
b0f7404b | 33713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
33714 | { |
33715 | if (temp7) | |
33716 | delete arg7; | |
33717 | } | |
33718 | return resultobj; | |
33719 | fail: | |
33720 | { | |
33721 | if (temp7) | |
33722 | delete arg7; | |
33723 | } | |
33724 | return NULL; | |
33725 | } | |
33726 | ||
33727 | ||
c32bde28 | 33728 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33729 | PyObject *resultobj; |
33730 | wxControl *result; | |
33731 | char *kwnames[] = { | |
33732 | NULL | |
33733 | }; | |
33734 | ||
33735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33736 | { | |
e3b71cb8 | 33737 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33739 | result = (wxControl *)new wxControl(); | |
33740 | ||
33741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33742 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33743 | } |
b0f7404b | 33744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
33745 | return resultobj; |
33746 | fail: | |
33747 | return NULL; | |
33748 | } | |
33749 | ||
33750 | ||
c32bde28 | 33751 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33752 | PyObject *resultobj; |
33753 | wxControl *arg1 = (wxControl *) 0 ; | |
33754 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 33755 | int arg3 = (int) -1 ; |
d14a1e28 RD |
33756 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33757 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33758 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33759 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33760 | long arg6 = (long) 0 ; | |
33761 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33762 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33763 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33764 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33765 | bool result; | |
33766 | wxPoint temp4 ; | |
33767 | wxSize temp5 ; | |
ae8162c8 | 33768 | bool temp8 = false ; |
d14a1e28 RD |
33769 | PyObject * obj0 = 0 ; |
33770 | PyObject * obj1 = 0 ; | |
994141e6 | 33771 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33772 | PyObject * obj3 = 0 ; |
33773 | PyObject * obj4 = 0 ; | |
994141e6 | 33774 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
33775 | PyObject * obj6 = 0 ; |
33776 | PyObject * obj7 = 0 ; | |
33777 | char *kwnames[] = { | |
33778 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33779 | }; | |
33780 | ||
248ed943 | 33781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
33782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 33786 | if (obj2) { |
c32bde28 | 33787 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
33788 | if (PyErr_Occurred()) SWIG_fail; |
33789 | } | |
d14a1e28 RD |
33790 | if (obj3) { |
33791 | { | |
33792 | arg4 = &temp4; | |
33793 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33794 | } | |
33795 | } | |
33796 | if (obj4) { | |
33797 | { | |
33798 | arg5 = &temp5; | |
33799 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33800 | } | |
33801 | } | |
994141e6 | 33802 | if (obj5) { |
c32bde28 | 33803 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 33804 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 33805 | } |
d14a1e28 | 33806 | if (obj6) { |
15afbcd0 RD |
33807 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
33808 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33809 | SWIG_fail; | |
d14a1e28 | 33810 | if (arg7 == NULL) { |
15afbcd0 RD |
33811 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33812 | SWIG_fail; | |
d14a1e28 RD |
33813 | } |
33814 | } | |
33815 | if (obj7) { | |
33816 | { | |
33817 | arg8 = wxString_in_helper(obj7); | |
33818 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 33819 | temp8 = true; |
d14a1e28 RD |
33820 | } |
33821 | } | |
33822 | { | |
33823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33824 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33825 | ||
33826 | wxPyEndAllowThreads(__tstate); | |
33827 | if (PyErr_Occurred()) SWIG_fail; | |
33828 | } | |
4f89f6a3 RD |
33829 | { |
33830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33831 | } | |
d14a1e28 RD |
33832 | { |
33833 | if (temp8) | |
33834 | delete arg8; | |
33835 | } | |
33836 | return resultobj; | |
33837 | fail: | |
33838 | { | |
33839 | if (temp8) | |
33840 | delete arg8; | |
33841 | } | |
33842 | return NULL; | |
33843 | } | |
33844 | ||
33845 | ||
c32bde28 | 33846 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33847 | PyObject *resultobj; |
33848 | wxControl *arg1 = (wxControl *) 0 ; | |
33849 | wxCommandEvent *arg2 = 0 ; | |
33850 | PyObject * obj0 = 0 ; | |
33851 | PyObject * obj1 = 0 ; | |
33852 | char *kwnames[] = { | |
33853 | (char *) "self",(char *) "event", NULL | |
33854 | }; | |
33855 | ||
33856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33861 | SWIG_fail; | |
d14a1e28 | 33862 | if (arg2 == NULL) { |
15afbcd0 RD |
33863 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33864 | SWIG_fail; | |
d14a1e28 RD |
33865 | } |
33866 | { | |
33867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33868 | (arg1)->Command(*arg2); | |
33869 | ||
33870 | wxPyEndAllowThreads(__tstate); | |
33871 | if (PyErr_Occurred()) SWIG_fail; | |
33872 | } | |
33873 | Py_INCREF(Py_None); resultobj = Py_None; | |
33874 | return resultobj; | |
33875 | fail: | |
33876 | return NULL; | |
33877 | } | |
33878 | ||
33879 | ||
c32bde28 | 33880 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33881 | PyObject *resultobj; |
33882 | wxControl *arg1 = (wxControl *) 0 ; | |
33883 | wxString result; | |
33884 | PyObject * obj0 = 0 ; | |
33885 | char *kwnames[] = { | |
33886 | (char *) "self", NULL | |
33887 | }; | |
33888 | ||
33889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33892 | { |
33893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33894 | result = (arg1)->GetLabel(); | |
33895 | ||
33896 | wxPyEndAllowThreads(__tstate); | |
33897 | if (PyErr_Occurred()) SWIG_fail; | |
33898 | } | |
33899 | { | |
33900 | #if wxUSE_UNICODE | |
33901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33902 | #else | |
33903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33904 | #endif | |
33905 | } | |
33906 | return resultobj; | |
33907 | fail: | |
33908 | return NULL; | |
33909 | } | |
33910 | ||
33911 | ||
c32bde28 | 33912 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33913 | PyObject *resultobj; |
33914 | wxControl *arg1 = (wxControl *) 0 ; | |
33915 | wxString *arg2 = 0 ; | |
ae8162c8 | 33916 | bool temp2 = false ; |
d14a1e28 RD |
33917 | PyObject * obj0 = 0 ; |
33918 | PyObject * obj1 = 0 ; | |
33919 | char *kwnames[] = { | |
33920 | (char *) "self",(char *) "label", NULL | |
33921 | }; | |
33922 | ||
33923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33926 | { |
33927 | arg2 = wxString_in_helper(obj1); | |
33928 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33929 | temp2 = true; |
d14a1e28 RD |
33930 | } |
33931 | { | |
33932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33933 | (arg1)->SetLabel((wxString const &)*arg2); | |
33934 | ||
33935 | wxPyEndAllowThreads(__tstate); | |
33936 | if (PyErr_Occurred()) SWIG_fail; | |
33937 | } | |
33938 | Py_INCREF(Py_None); resultobj = Py_None; | |
33939 | { | |
33940 | if (temp2) | |
33941 | delete arg2; | |
33942 | } | |
33943 | return resultobj; | |
33944 | fail: | |
33945 | { | |
33946 | if (temp2) | |
33947 | delete arg2; | |
33948 | } | |
33949 | return NULL; | |
33950 | } | |
33951 | ||
33952 | ||
c32bde28 | 33953 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
33954 | PyObject *resultobj; |
33955 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33956 | wxVisualAttributes result; | |
33957 | PyObject * obj0 = 0 ; | |
33958 | char *kwnames[] = { | |
33959 | (char *) "variant", NULL | |
33960 | }; | |
33961 | ||
33962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33963 | if (obj0) { | |
c32bde28 | 33964 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
33965 | if (PyErr_Occurred()) SWIG_fail; |
33966 | } | |
33967 | { | |
110da5b0 | 33968 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
33969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33970 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33971 | ||
33972 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 33973 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
33974 | } |
33975 | { | |
33976 | wxVisualAttributes * resultptr; | |
33977 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33979 | } | |
33980 | return resultobj; | |
33981 | fail: | |
33982 | return NULL; | |
33983 | } | |
33984 | ||
33985 | ||
c32bde28 | 33986 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33987 | PyObject *obj; |
33988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33989 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33990 | Py_INCREF(obj); | |
33991 | return Py_BuildValue((char *)""); | |
33992 | } | |
c32bde28 | 33993 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33994 | PyObject *resultobj; |
33995 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33996 | wxString *arg2 = 0 ; | |
33997 | PyObject *arg3 = (PyObject *) NULL ; | |
33998 | int result; | |
ae8162c8 | 33999 | bool temp2 = false ; |
d14a1e28 RD |
34000 | PyObject * obj0 = 0 ; |
34001 | PyObject * obj1 = 0 ; | |
34002 | PyObject * obj2 = 0 ; | |
34003 | char *kwnames[] = { | |
34004 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34005 | }; | |
34006 | ||
34007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34010 | { |
34011 | arg2 = wxString_in_helper(obj1); | |
34012 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34013 | temp2 = true; |
d14a1e28 RD |
34014 | } |
34015 | if (obj2) { | |
34016 | arg3 = obj2; | |
34017 | } | |
34018 | { | |
34019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34020 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34021 | ||
34022 | wxPyEndAllowThreads(__tstate); | |
34023 | if (PyErr_Occurred()) SWIG_fail; | |
34024 | } | |
c32bde28 | 34025 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
34026 | { |
34027 | if (temp2) | |
34028 | delete arg2; | |
34029 | } | |
34030 | return resultobj; | |
34031 | fail: | |
34032 | { | |
34033 | if (temp2) | |
34034 | delete arg2; | |
34035 | } | |
34036 | return NULL; | |
34037 | } | |
34038 | ||
34039 | ||
c32bde28 | 34040 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34041 | PyObject *resultobj; |
34042 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34043 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 34044 | bool temp2 = false ; |
d14a1e28 RD |
34045 | PyObject * obj0 = 0 ; |
34046 | PyObject * obj1 = 0 ; | |
34047 | char *kwnames[] = { | |
34048 | (char *) "self",(char *) "strings", NULL | |
34049 | }; | |
34050 | ||
34051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34054 | { |
34055 | if (! PySequence_Check(obj1)) { | |
34056 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34057 | SWIG_fail; | |
34058 | } | |
34059 | arg2 = new wxArrayString; | |
ae8162c8 | 34060 | temp2 = true; |
d14a1e28 RD |
34061 | int i, len=PySequence_Length(obj1); |
34062 | for (i=0; i<len; i++) { | |
34063 | PyObject* item = PySequence_GetItem(obj1, i); | |
34064 | #if wxUSE_UNICODE | |
34065 | PyObject* str = PyObject_Unicode(item); | |
34066 | #else | |
34067 | PyObject* str = PyObject_Str(item); | |
34068 | #endif | |
74a57fcd | 34069 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34070 | arg2->Add(Py2wxString(str)); |
34071 | Py_DECREF(item); | |
34072 | Py_DECREF(str); | |
34073 | } | |
34074 | } | |
34075 | { | |
34076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34077 | (arg1)->Append((wxArrayString const &)*arg2); | |
34078 | ||
34079 | wxPyEndAllowThreads(__tstate); | |
34080 | if (PyErr_Occurred()) SWIG_fail; | |
34081 | } | |
34082 | Py_INCREF(Py_None); resultobj = Py_None; | |
34083 | { | |
3adfb63b | 34084 | if (temp2) delete arg2; |
d14a1e28 RD |
34085 | } |
34086 | return resultobj; | |
34087 | fail: | |
34088 | { | |
3adfb63b | 34089 | if (temp2) delete arg2; |
d14a1e28 RD |
34090 | } |
34091 | return NULL; | |
34092 | } | |
34093 | ||
34094 | ||
c32bde28 | 34095 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34096 | PyObject *resultobj; |
34097 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34098 | wxString *arg2 = 0 ; | |
34099 | int arg3 ; | |
34100 | PyObject *arg4 = (PyObject *) NULL ; | |
34101 | int result; | |
ae8162c8 | 34102 | bool temp2 = false ; |
d14a1e28 RD |
34103 | PyObject * obj0 = 0 ; |
34104 | PyObject * obj1 = 0 ; | |
994141e6 | 34105 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34106 | PyObject * obj3 = 0 ; |
34107 | char *kwnames[] = { | |
34108 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34109 | }; | |
34110 | ||
994141e6 | 34111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
34112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34114 | { |
34115 | arg2 = wxString_in_helper(obj1); | |
34116 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34117 | temp2 = true; |
d14a1e28 | 34118 | } |
c32bde28 | 34119 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34120 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34121 | if (obj3) { |
34122 | arg4 = obj3; | |
34123 | } | |
34124 | { | |
34125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34126 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34127 | ||
34128 | wxPyEndAllowThreads(__tstate); | |
34129 | if (PyErr_Occurred()) SWIG_fail; | |
34130 | } | |
c32bde28 | 34131 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
34132 | { |
34133 | if (temp2) | |
34134 | delete arg2; | |
34135 | } | |
34136 | return resultobj; | |
34137 | fail: | |
34138 | { | |
34139 | if (temp2) | |
34140 | delete arg2; | |
34141 | } | |
34142 | return NULL; | |
34143 | } | |
34144 | ||
34145 | ||
c32bde28 | 34146 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34147 | PyObject *resultobj; |
34148 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34149 | PyObject * obj0 = 0 ; | |
34150 | char *kwnames[] = { | |
34151 | (char *) "self", NULL | |
34152 | }; | |
34153 | ||
34154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34157 | { |
34158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34159 | (arg1)->Clear(); | |
34160 | ||
34161 | wxPyEndAllowThreads(__tstate); | |
34162 | if (PyErr_Occurred()) SWIG_fail; | |
34163 | } | |
34164 | Py_INCREF(Py_None); resultobj = Py_None; | |
34165 | return resultobj; | |
34166 | fail: | |
34167 | return NULL; | |
34168 | } | |
34169 | ||
34170 | ||
c32bde28 | 34171 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34172 | PyObject *resultobj; |
34173 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34174 | int arg2 ; | |
34175 | PyObject * obj0 = 0 ; | |
994141e6 | 34176 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34177 | char *kwnames[] = { |
34178 | (char *) "self",(char *) "n", NULL | |
34179 | }; | |
34180 | ||
994141e6 | 34181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34184 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34185 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34186 | { |
34187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34188 | (arg1)->Delete(arg2); | |
34189 | ||
34190 | wxPyEndAllowThreads(__tstate); | |
34191 | if (PyErr_Occurred()) SWIG_fail; | |
34192 | } | |
34193 | Py_INCREF(Py_None); resultobj = Py_None; | |
34194 | return resultobj; | |
34195 | fail: | |
34196 | return NULL; | |
34197 | } | |
34198 | ||
34199 | ||
c32bde28 | 34200 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34201 | PyObject *resultobj; |
34202 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34203 | int result; | |
34204 | PyObject * obj0 = 0 ; | |
34205 | char *kwnames[] = { | |
34206 | (char *) "self", NULL | |
34207 | }; | |
34208 | ||
34209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34212 | { |
34213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34214 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34215 | ||
34216 | wxPyEndAllowThreads(__tstate); | |
34217 | if (PyErr_Occurred()) SWIG_fail; | |
34218 | } | |
c32bde28 | 34219 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
34220 | return resultobj; |
34221 | fail: | |
34222 | return NULL; | |
34223 | } | |
34224 | ||
34225 | ||
c32bde28 | 34226 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34227 | PyObject *resultobj; |
34228 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34229 | bool result; | |
34230 | PyObject * obj0 = 0 ; | |
34231 | char *kwnames[] = { | |
34232 | (char *) "self", NULL | |
34233 | }; | |
34234 | ||
34235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34238 | { |
34239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34240 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34241 | ||
34242 | wxPyEndAllowThreads(__tstate); | |
34243 | if (PyErr_Occurred()) SWIG_fail; | |
34244 | } | |
4f89f6a3 RD |
34245 | { |
34246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34247 | } | |
d14a1e28 RD |
34248 | return resultobj; |
34249 | fail: | |
34250 | return NULL; | |
34251 | } | |
34252 | ||
34253 | ||
c32bde28 | 34254 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34255 | PyObject *resultobj; |
34256 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34257 | int arg2 ; | |
34258 | wxString result; | |
34259 | PyObject * obj0 = 0 ; | |
994141e6 | 34260 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34261 | char *kwnames[] = { |
34262 | (char *) "self",(char *) "n", NULL | |
34263 | }; | |
34264 | ||
994141e6 | 34265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34268 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34269 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34270 | { |
34271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34272 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34273 | ||
34274 | wxPyEndAllowThreads(__tstate); | |
34275 | if (PyErr_Occurred()) SWIG_fail; | |
34276 | } | |
34277 | { | |
34278 | #if wxUSE_UNICODE | |
34279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34280 | #else | |
34281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34282 | #endif | |
34283 | } | |
34284 | return resultobj; | |
34285 | fail: | |
34286 | return NULL; | |
34287 | } | |
34288 | ||
34289 | ||
c32bde28 | 34290 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34291 | PyObject *resultobj; |
34292 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34293 | wxArrayString result; | |
34294 | PyObject * obj0 = 0 ; | |
34295 | char *kwnames[] = { | |
34296 | (char *) "self", NULL | |
34297 | }; | |
34298 | ||
34299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34302 | { |
34303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34304 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34305 | ||
34306 | wxPyEndAllowThreads(__tstate); | |
34307 | if (PyErr_Occurred()) SWIG_fail; | |
34308 | } | |
34309 | { | |
34310 | resultobj = wxArrayString2PyList_helper(result); | |
34311 | } | |
34312 | return resultobj; | |
34313 | fail: | |
34314 | return NULL; | |
34315 | } | |
34316 | ||
34317 | ||
c32bde28 | 34318 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34319 | PyObject *resultobj; |
34320 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34321 | int arg2 ; | |
34322 | wxString *arg3 = 0 ; | |
ae8162c8 | 34323 | bool temp3 = false ; |
d14a1e28 | 34324 | PyObject * obj0 = 0 ; |
994141e6 | 34325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34326 | PyObject * obj2 = 0 ; |
34327 | char *kwnames[] = { | |
34328 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34329 | }; | |
34330 | ||
994141e6 | 34331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34334 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34335 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34336 | { |
34337 | arg3 = wxString_in_helper(obj2); | |
34338 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34339 | temp3 = true; |
d14a1e28 RD |
34340 | } |
34341 | { | |
34342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34343 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34344 | ||
34345 | wxPyEndAllowThreads(__tstate); | |
34346 | if (PyErr_Occurred()) SWIG_fail; | |
34347 | } | |
34348 | Py_INCREF(Py_None); resultobj = Py_None; | |
34349 | { | |
34350 | if (temp3) | |
34351 | delete arg3; | |
34352 | } | |
34353 | return resultobj; | |
34354 | fail: | |
34355 | { | |
34356 | if (temp3) | |
34357 | delete arg3; | |
34358 | } | |
34359 | return NULL; | |
34360 | } | |
34361 | ||
34362 | ||
c32bde28 | 34363 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34364 | PyObject *resultobj; |
34365 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34366 | wxString *arg2 = 0 ; | |
34367 | int result; | |
ae8162c8 | 34368 | bool temp2 = false ; |
d14a1e28 RD |
34369 | PyObject * obj0 = 0 ; |
34370 | PyObject * obj1 = 0 ; | |
34371 | char *kwnames[] = { | |
34372 | (char *) "self",(char *) "s", NULL | |
34373 | }; | |
34374 | ||
34375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34378 | { |
34379 | arg2 = wxString_in_helper(obj1); | |
34380 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34381 | temp2 = true; |
d14a1e28 RD |
34382 | } |
34383 | { | |
34384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34385 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34386 | ||
34387 | wxPyEndAllowThreads(__tstate); | |
34388 | if (PyErr_Occurred()) SWIG_fail; | |
34389 | } | |
c32bde28 | 34390 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
34391 | { |
34392 | if (temp2) | |
34393 | delete arg2; | |
34394 | } | |
34395 | return resultobj; | |
34396 | fail: | |
34397 | { | |
34398 | if (temp2) | |
34399 | delete arg2; | |
34400 | } | |
34401 | return NULL; | |
34402 | } | |
34403 | ||
34404 | ||
c32bde28 | 34405 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34406 | PyObject *resultobj; |
34407 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34408 | int arg2 ; | |
34409 | PyObject * obj0 = 0 ; | |
994141e6 | 34410 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34411 | char *kwnames[] = { |
34412 | (char *) "self",(char *) "n", NULL | |
34413 | }; | |
34414 | ||
994141e6 | 34415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34418 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34419 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34420 | { |
34421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34422 | (arg1)->Select(arg2); | |
34423 | ||
34424 | wxPyEndAllowThreads(__tstate); | |
34425 | if (PyErr_Occurred()) SWIG_fail; | |
34426 | } | |
34427 | Py_INCREF(Py_None); resultobj = Py_None; | |
34428 | return resultobj; | |
34429 | fail: | |
34430 | return NULL; | |
34431 | } | |
34432 | ||
34433 | ||
c32bde28 | 34434 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34435 | PyObject *resultobj; |
34436 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34437 | int result; | |
34438 | PyObject * obj0 = 0 ; | |
34439 | char *kwnames[] = { | |
34440 | (char *) "self", NULL | |
34441 | }; | |
34442 | ||
34443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34446 | { |
34447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34448 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34449 | ||
34450 | wxPyEndAllowThreads(__tstate); | |
34451 | if (PyErr_Occurred()) SWIG_fail; | |
34452 | } | |
c32bde28 | 34453 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
34454 | return resultobj; |
34455 | fail: | |
34456 | return NULL; | |
34457 | } | |
34458 | ||
34459 | ||
c32bde28 | 34460 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34461 | PyObject *resultobj; |
34462 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34463 | wxString result; | |
34464 | PyObject * obj0 = 0 ; | |
34465 | char *kwnames[] = { | |
34466 | (char *) "self", NULL | |
34467 | }; | |
34468 | ||
34469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34472 | { |
34473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34474 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34475 | ||
34476 | wxPyEndAllowThreads(__tstate); | |
34477 | if (PyErr_Occurred()) SWIG_fail; | |
34478 | } | |
34479 | { | |
34480 | #if wxUSE_UNICODE | |
34481 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34482 | #else | |
34483 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34484 | #endif | |
34485 | } | |
34486 | return resultobj; | |
34487 | fail: | |
34488 | return NULL; | |
34489 | } | |
34490 | ||
34491 | ||
c32bde28 | 34492 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34493 | PyObject *resultobj; |
34494 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34495 | int arg2 ; | |
34496 | PyObject *result; | |
34497 | PyObject * obj0 = 0 ; | |
994141e6 | 34498 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34499 | char *kwnames[] = { |
34500 | (char *) "self",(char *) "n", NULL | |
34501 | }; | |
34502 | ||
994141e6 | 34503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34506 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34507 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34508 | { |
34509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34510 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34511 | ||
34512 | wxPyEndAllowThreads(__tstate); | |
34513 | if (PyErr_Occurred()) SWIG_fail; | |
34514 | } | |
34515 | resultobj = result; | |
34516 | return resultobj; | |
34517 | fail: | |
34518 | return NULL; | |
34519 | } | |
34520 | ||
34521 | ||
c32bde28 | 34522 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34523 | PyObject *resultobj; |
34524 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34525 | int arg2 ; | |
34526 | PyObject *arg3 = (PyObject *) 0 ; | |
34527 | PyObject * obj0 = 0 ; | |
994141e6 | 34528 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34529 | PyObject * obj2 = 0 ; |
34530 | char *kwnames[] = { | |
34531 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34532 | }; | |
34533 | ||
994141e6 | 34534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
34536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34537 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34538 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34539 | arg3 = obj2; |
34540 | { | |
34541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34542 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34543 | ||
34544 | wxPyEndAllowThreads(__tstate); | |
34545 | if (PyErr_Occurred()) SWIG_fail; | |
34546 | } | |
34547 | Py_INCREF(Py_None); resultobj = Py_None; | |
34548 | return resultobj; | |
34549 | fail: | |
34550 | return NULL; | |
34551 | } | |
34552 | ||
34553 | ||
c32bde28 | 34554 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34555 | PyObject *obj; |
34556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34557 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34558 | Py_INCREF(obj); | |
34559 | return Py_BuildValue((char *)""); | |
34560 | } | |
c32bde28 | 34561 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34562 | PyObject *obj; |
34563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34564 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34565 | Py_INCREF(obj); | |
34566 | return Py_BuildValue((char *)""); | |
34567 | } | |
c32bde28 | 34568 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34569 | PyObject *resultobj; |
34570 | wxSizerItem *result; | |
34571 | char *kwnames[] = { | |
34572 | NULL | |
34573 | }; | |
34574 | ||
34575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34576 | { | |
34577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34578 | result = (wxSizerItem *)new wxSizerItem(); | |
34579 | ||
34580 | wxPyEndAllowThreads(__tstate); | |
34581 | if (PyErr_Occurred()) SWIG_fail; | |
34582 | } | |
15afbcd0 | 34583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
34584 | return resultobj; |
34585 | fail: | |
34586 | return NULL; | |
34587 | } | |
34588 | ||
34589 | ||
c32bde28 | 34590 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 34591 | PyObject *resultobj; |
248ed943 | 34592 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
34593 | int arg2 ; |
34594 | int arg3 ; | |
34595 | int arg4 ; | |
248ed943 | 34596 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 | 34597 | wxSizerItem *result; |
994141e6 RD |
34598 | PyObject * obj0 = 0 ; |
34599 | PyObject * obj1 = 0 ; | |
34600 | PyObject * obj2 = 0 ; | |
34601 | PyObject * obj3 = 0 ; | |
34602 | PyObject * obj4 = 0 ; | |
d14a1e28 | 34603 | char *kwnames[] = { |
248ed943 | 34604 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
34605 | }; |
34606 | ||
248ed943 RD |
34607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34610 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34611 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34612 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34613 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34614 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 34615 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
34616 | if (obj4) { |
34617 | arg5 = obj4; | |
34618 | } | |
d14a1e28 RD |
34619 | { |
34620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34621 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
34622 | |
34623 | wxPyEndAllowThreads(__tstate); | |
34624 | if (PyErr_Occurred()) SWIG_fail; | |
34625 | } | |
15afbcd0 | 34626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
34627 | return resultobj; |
34628 | fail: | |
34629 | return NULL; | |
34630 | } | |
34631 | ||
34632 | ||
c32bde28 | 34633 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 34634 | PyObject *resultobj; |
248ed943 | 34635 | int arg1 ; |
d14a1e28 RD |
34636 | int arg2 ; |
34637 | int arg3 ; | |
34638 | int arg4 ; | |
248ed943 RD |
34639 | int arg5 ; |
34640 | PyObject *arg6 = (PyObject *) NULL ; | |
d14a1e28 RD |
34641 | wxSizerItem *result; |
34642 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34643 | PyObject * obj1 = 0 ; |
34644 | PyObject * obj2 = 0 ; | |
34645 | PyObject * obj3 = 0 ; | |
d14a1e28 | 34646 | PyObject * obj4 = 0 ; |
248ed943 | 34647 | PyObject * obj5 = 0 ; |
d14a1e28 | 34648 | char *kwnames[] = { |
248ed943 | 34649 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
34650 | }; |
34651 | ||
248ed943 | 34652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c32bde28 | 34653 | arg1 = (int)SWIG_As_int(obj0); |
248ed943 | 34654 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34655 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34656 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34657 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34658 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34659 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 34660 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34661 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
34662 | if (PyErr_Occurred()) SWIG_fail; |
34663 | if (obj5) { | |
34664 | arg6 = obj5; | |
34665 | } | |
d14a1e28 RD |
34666 | { |
34667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34668 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
34669 | |
34670 | wxPyEndAllowThreads(__tstate); | |
34671 | if (PyErr_Occurred()) SWIG_fail; | |
34672 | } | |
15afbcd0 | 34673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
34674 | return resultobj; |
34675 | fail: | |
34676 | return NULL; | |
34677 | } | |
34678 | ||
34679 | ||
c32bde28 | 34680 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34681 | PyObject *resultobj; |
34682 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34683 | int arg2 ; | |
34684 | int arg3 ; | |
34685 | int arg4 ; | |
248ed943 | 34686 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 RD |
34687 | wxSizerItem *result; |
34688 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34689 | PyObject * obj1 = 0 ; |
34690 | PyObject * obj2 = 0 ; | |
34691 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34692 | PyObject * obj4 = 0 ; |
34693 | char *kwnames[] = { | |
34694 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34695 | }; | |
34696 | ||
248ed943 | 34697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
34698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34700 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34701 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34702 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34703 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34704 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 34705 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
34706 | if (obj4) { |
34707 | arg5 = obj4; | |
34708 | } | |
d14a1e28 RD |
34709 | { |
34710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34711 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
34712 | |
34713 | wxPyEndAllowThreads(__tstate); | |
34714 | if (PyErr_Occurred()) SWIG_fail; | |
34715 | } | |
15afbcd0 | 34716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
34717 | return resultobj; |
34718 | fail: | |
34719 | return NULL; | |
34720 | } | |
34721 | ||
34722 | ||
c32bde28 | 34723 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34724 | PyObject *resultobj; |
34725 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34726 | PyObject * obj0 = 0 ; | |
34727 | char *kwnames[] = { | |
34728 | (char *) "self", NULL | |
34729 | }; | |
34730 | ||
34731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34734 | { |
34735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34736 | (arg1)->DeleteWindows(); | |
34737 | ||
34738 | wxPyEndAllowThreads(__tstate); | |
34739 | if (PyErr_Occurred()) SWIG_fail; | |
34740 | } | |
34741 | Py_INCREF(Py_None); resultobj = Py_None; | |
34742 | return resultobj; | |
34743 | fail: | |
34744 | return NULL; | |
34745 | } | |
34746 | ||
34747 | ||
c32bde28 | 34748 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34749 | PyObject *resultobj; |
34750 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34751 | PyObject * obj0 = 0 ; | |
34752 | char *kwnames[] = { | |
34753 | (char *) "self", NULL | |
34754 | }; | |
34755 | ||
34756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34759 | { |
34760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34761 | (arg1)->DetachSizer(); | |
34762 | ||
34763 | wxPyEndAllowThreads(__tstate); | |
34764 | if (PyErr_Occurred()) SWIG_fail; | |
34765 | } | |
34766 | Py_INCREF(Py_None); resultobj = Py_None; | |
34767 | return resultobj; | |
34768 | fail: | |
34769 | return NULL; | |
34770 | } | |
34771 | ||
34772 | ||
c32bde28 | 34773 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34774 | PyObject *resultobj; |
34775 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34776 | wxSize result; | |
34777 | PyObject * obj0 = 0 ; | |
34778 | char *kwnames[] = { | |
34779 | (char *) "self", NULL | |
34780 | }; | |
34781 | ||
34782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34785 | { |
34786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34787 | result = (arg1)->GetSize(); | |
34788 | ||
34789 | wxPyEndAllowThreads(__tstate); | |
34790 | if (PyErr_Occurred()) SWIG_fail; | |
34791 | } | |
34792 | { | |
34793 | wxSize * resultptr; | |
34794 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34796 | } |
34797 | return resultobj; | |
34798 | fail: | |
34799 | return NULL; | |
34800 | } | |
34801 | ||
34802 | ||
c32bde28 | 34803 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34804 | PyObject *resultobj; |
34805 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34806 | wxSize result; | |
34807 | PyObject * obj0 = 0 ; | |
34808 | char *kwnames[] = { | |
34809 | (char *) "self", NULL | |
34810 | }; | |
34811 | ||
34812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34815 | { |
34816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34817 | result = (arg1)->CalcMin(); | |
34818 | ||
34819 | wxPyEndAllowThreads(__tstate); | |
34820 | if (PyErr_Occurred()) SWIG_fail; | |
34821 | } | |
34822 | { | |
34823 | wxSize * resultptr; | |
34824 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34826 | } |
34827 | return resultobj; | |
34828 | fail: | |
34829 | return NULL; | |
34830 | } | |
34831 | ||
34832 | ||
c32bde28 | 34833 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34834 | PyObject *resultobj; |
34835 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34836 | wxPoint arg2 ; | |
34837 | wxSize arg3 ; | |
34838 | wxPoint *argp2 ; | |
34839 | wxSize *argp3 ; | |
34840 | PyObject * obj0 = 0 ; | |
34841 | PyObject * obj1 = 0 ; | |
34842 | PyObject * obj2 = 0 ; | |
34843 | char *kwnames[] = { | |
34844 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34845 | }; | |
34846 | ||
34847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34850 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34851 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34852 | arg2 = *argp2; | |
34853 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34854 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34855 | arg3 = *argp3; | |
d14a1e28 RD |
34856 | { |
34857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34858 | (arg1)->SetDimension(arg2,arg3); | |
34859 | ||
34860 | wxPyEndAllowThreads(__tstate); | |
34861 | if (PyErr_Occurred()) SWIG_fail; | |
34862 | } | |
34863 | Py_INCREF(Py_None); resultobj = Py_None; | |
34864 | return resultobj; | |
34865 | fail: | |
34866 | return NULL; | |
34867 | } | |
34868 | ||
34869 | ||
c32bde28 | 34870 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34871 | PyObject *resultobj; |
34872 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34873 | wxSize result; | |
34874 | PyObject * obj0 = 0 ; | |
34875 | char *kwnames[] = { | |
34876 | (char *) "self", NULL | |
34877 | }; | |
34878 | ||
34879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34882 | { |
34883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34884 | result = (arg1)->GetMinSize(); | |
34885 | ||
34886 | wxPyEndAllowThreads(__tstate); | |
34887 | if (PyErr_Occurred()) SWIG_fail; | |
34888 | } | |
34889 | { | |
34890 | wxSize * resultptr; | |
34891 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34893 | } |
34894 | return resultobj; | |
34895 | fail: | |
34896 | return NULL; | |
34897 | } | |
34898 | ||
34899 | ||
c32bde28 | 34900 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
34901 | PyObject *resultobj; |
34902 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34903 | wxSize result; | |
34904 | PyObject * obj0 = 0 ; | |
34905 | char *kwnames[] = { | |
34906 | (char *) "self", NULL | |
34907 | }; | |
34908 | ||
34909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
34910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34912 | { | |
34913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34914 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
34915 | ||
34916 | wxPyEndAllowThreads(__tstate); | |
34917 | if (PyErr_Occurred()) SWIG_fail; | |
34918 | } | |
34919 | { | |
34920 | wxSize * resultptr; | |
34921 | resultptr = new wxSize((wxSize &) result); | |
34922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34923 | } | |
34924 | return resultobj; | |
34925 | fail: | |
34926 | return NULL; | |
34927 | } | |
34928 | ||
34929 | ||
c32bde28 | 34930 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34931 | PyObject *resultobj; |
34932 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34933 | int arg2 ; | |
34934 | int arg3 ; | |
34935 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34936 | PyObject * obj1 = 0 ; |
34937 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
34938 | char *kwnames[] = { |
34939 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34940 | }; | |
34941 | ||
994141e6 | 34942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34945 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34946 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34947 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34948 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34949 | { |
34950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34951 | (arg1)->SetInitSize(arg2,arg3); | |
34952 | ||
34953 | wxPyEndAllowThreads(__tstate); | |
34954 | if (PyErr_Occurred()) SWIG_fail; | |
34955 | } | |
34956 | Py_INCREF(Py_None); resultobj = Py_None; | |
34957 | return resultobj; | |
34958 | fail: | |
34959 | return NULL; | |
34960 | } | |
34961 | ||
34962 | ||
c32bde28 | 34963 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34964 | PyObject *resultobj; |
34965 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34966 | int arg2 ; | |
34967 | int arg3 ; | |
34968 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34969 | PyObject * obj1 = 0 ; |
34970 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
34971 | char *kwnames[] = { |
34972 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34973 | }; | |
34974 | ||
994141e6 | 34975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34978 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 34979 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34980 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 34981 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
34982 | { |
34983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34984 | (arg1)->SetRatio(arg2,arg3); | |
34985 | ||
34986 | wxPyEndAllowThreads(__tstate); | |
34987 | if (PyErr_Occurred()) SWIG_fail; | |
34988 | } | |
34989 | Py_INCREF(Py_None); resultobj = Py_None; | |
34990 | return resultobj; | |
34991 | fail: | |
34992 | return NULL; | |
34993 | } | |
34994 | ||
34995 | ||
c32bde28 | 34996 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34997 | PyObject *resultobj; |
34998 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34999 | wxSize arg2 ; | |
35000 | wxSize *argp2 ; | |
35001 | PyObject * obj0 = 0 ; | |
35002 | PyObject * obj1 = 0 ; | |
35003 | char *kwnames[] = { | |
35004 | (char *) "self",(char *) "size", NULL | |
35005 | }; | |
35006 | ||
35007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35010 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35011 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35012 | arg2 = *argp2; | |
d14a1e28 RD |
35013 | { |
35014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35015 | (arg1)->SetRatio(arg2); | |
35016 | ||
35017 | wxPyEndAllowThreads(__tstate); | |
35018 | if (PyErr_Occurred()) SWIG_fail; | |
35019 | } | |
35020 | Py_INCREF(Py_None); resultobj = Py_None; | |
35021 | return resultobj; | |
35022 | fail: | |
35023 | return NULL; | |
35024 | } | |
35025 | ||
35026 | ||
c32bde28 | 35027 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35028 | PyObject *resultobj; |
35029 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35030 | float arg2 ; | |
35031 | PyObject * obj0 = 0 ; | |
994141e6 | 35032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35033 | char *kwnames[] = { |
35034 | (char *) "self",(char *) "ratio", NULL | |
35035 | }; | |
35036 | ||
994141e6 | 35037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35040 | arg2 = (float)SWIG_As_float(obj1); |
15afbcd0 | 35041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
35042 | { |
35043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35044 | (arg1)->SetRatio(arg2); | |
35045 | ||
35046 | wxPyEndAllowThreads(__tstate); | |
35047 | if (PyErr_Occurred()) SWIG_fail; | |
35048 | } | |
35049 | Py_INCREF(Py_None); resultobj = Py_None; | |
35050 | return resultobj; | |
35051 | fail: | |
35052 | return NULL; | |
35053 | } | |
35054 | ||
35055 | ||
c32bde28 | 35056 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35057 | PyObject *resultobj; |
35058 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35059 | float result; | |
35060 | PyObject * obj0 = 0 ; | |
35061 | char *kwnames[] = { | |
35062 | (char *) "self", NULL | |
35063 | }; | |
35064 | ||
35065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35068 | { |
35069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35070 | result = (float)(arg1)->GetRatio(); | |
35071 | ||
35072 | wxPyEndAllowThreads(__tstate); | |
35073 | if (PyErr_Occurred()) SWIG_fail; | |
35074 | } | |
c32bde28 | 35075 | resultobj = SWIG_From_float((float)result); |
d14a1e28 RD |
35076 | return resultobj; |
35077 | fail: | |
35078 | return NULL; | |
35079 | } | |
35080 | ||
35081 | ||
d3b6e4ff RD |
35082 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
35083 | PyObject *resultobj; | |
35084 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35085 | wxRect result; | |
35086 | PyObject * obj0 = 0 ; | |
35087 | char *kwnames[] = { | |
35088 | (char *) "self", NULL | |
35089 | }; | |
35090 | ||
35091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
35092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35094 | { | |
35095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35096 | result = (arg1)->GetRect(); | |
35097 | ||
35098 | wxPyEndAllowThreads(__tstate); | |
35099 | if (PyErr_Occurred()) SWIG_fail; | |
35100 | } | |
35101 | { | |
35102 | wxRect * resultptr; | |
35103 | resultptr = new wxRect((wxRect &) result); | |
35104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
35105 | } | |
35106 | return resultobj; | |
35107 | fail: | |
35108 | return NULL; | |
35109 | } | |
35110 | ||
35111 | ||
c32bde28 | 35112 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35113 | PyObject *resultobj; |
35114 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35115 | bool result; | |
35116 | PyObject * obj0 = 0 ; | |
35117 | char *kwnames[] = { | |
35118 | (char *) "self", NULL | |
35119 | }; | |
35120 | ||
35121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35124 | { |
35125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35126 | result = (bool)(arg1)->IsWindow(); | |
35127 | ||
35128 | wxPyEndAllowThreads(__tstate); | |
35129 | if (PyErr_Occurred()) SWIG_fail; | |
35130 | } | |
4f89f6a3 RD |
35131 | { |
35132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35133 | } | |
d14a1e28 RD |
35134 | return resultobj; |
35135 | fail: | |
35136 | return NULL; | |
35137 | } | |
35138 | ||
35139 | ||
c32bde28 | 35140 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35141 | PyObject *resultobj; |
35142 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35143 | bool result; | |
35144 | PyObject * obj0 = 0 ; | |
35145 | char *kwnames[] = { | |
35146 | (char *) "self", NULL | |
35147 | }; | |
35148 | ||
35149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35152 | { |
35153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35154 | result = (bool)(arg1)->IsSizer(); | |
35155 | ||
35156 | wxPyEndAllowThreads(__tstate); | |
35157 | if (PyErr_Occurred()) SWIG_fail; | |
35158 | } | |
4f89f6a3 RD |
35159 | { |
35160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35161 | } | |
d14a1e28 RD |
35162 | return resultobj; |
35163 | fail: | |
35164 | return NULL; | |
35165 | } | |
35166 | ||
35167 | ||
c32bde28 | 35168 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35169 | PyObject *resultobj; |
35170 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35171 | bool result; | |
35172 | PyObject * obj0 = 0 ; | |
35173 | char *kwnames[] = { | |
35174 | (char *) "self", NULL | |
35175 | }; | |
35176 | ||
35177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35180 | { |
35181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35182 | result = (bool)(arg1)->IsSpacer(); | |
35183 | ||
35184 | wxPyEndAllowThreads(__tstate); | |
35185 | if (PyErr_Occurred()) SWIG_fail; | |
35186 | } | |
4f89f6a3 RD |
35187 | { |
35188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35189 | } | |
d14a1e28 RD |
35190 | return resultobj; |
35191 | fail: | |
35192 | return NULL; | |
35193 | } | |
35194 | ||
35195 | ||
c32bde28 | 35196 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35197 | PyObject *resultobj; |
35198 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35199 | int arg2 ; | |
35200 | PyObject * obj0 = 0 ; | |
994141e6 | 35201 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35202 | char *kwnames[] = { |
35203 | (char *) "self",(char *) "proportion", NULL | |
35204 | }; | |
35205 | ||
994141e6 | 35206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35209 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 35210 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
35211 | { |
35212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35213 | (arg1)->SetProportion(arg2); | |
35214 | ||
35215 | wxPyEndAllowThreads(__tstate); | |
35216 | if (PyErr_Occurred()) SWIG_fail; | |
35217 | } | |
35218 | Py_INCREF(Py_None); resultobj = Py_None; | |
35219 | return resultobj; | |
35220 | fail: | |
35221 | return NULL; | |
35222 | } | |
35223 | ||
35224 | ||
c32bde28 | 35225 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35226 | PyObject *resultobj; |
35227 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35228 | int result; | |
35229 | PyObject * obj0 = 0 ; | |
35230 | char *kwnames[] = { | |
35231 | (char *) "self", NULL | |
35232 | }; | |
35233 | ||
35234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35237 | { |
35238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35239 | result = (int)(arg1)->GetProportion(); | |
35240 | ||
35241 | wxPyEndAllowThreads(__tstate); | |
35242 | if (PyErr_Occurred()) SWIG_fail; | |
35243 | } | |
c32bde28 | 35244 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
35245 | return resultobj; |
35246 | fail: | |
35247 | return NULL; | |
35248 | } | |
35249 | ||
35250 | ||
c32bde28 | 35251 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35252 | PyObject *resultobj; |
35253 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35254 | int arg2 ; | |
35255 | PyObject * obj0 = 0 ; | |
994141e6 | 35256 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35257 | char *kwnames[] = { |
35258 | (char *) "self",(char *) "flag", NULL | |
35259 | }; | |
35260 | ||
994141e6 | 35261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35264 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 35265 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
35266 | { |
35267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35268 | (arg1)->SetFlag(arg2); | |
35269 | ||
35270 | wxPyEndAllowThreads(__tstate); | |
35271 | if (PyErr_Occurred()) SWIG_fail; | |
35272 | } | |
35273 | Py_INCREF(Py_None); resultobj = Py_None; | |
35274 | return resultobj; | |
35275 | fail: | |
35276 | return NULL; | |
35277 | } | |
35278 | ||
35279 | ||
c32bde28 | 35280 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35281 | PyObject *resultobj; |
35282 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35283 | int result; | |
35284 | PyObject * obj0 = 0 ; | |
35285 | char *kwnames[] = { | |
35286 | (char *) "self", NULL | |
35287 | }; | |
35288 | ||
35289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35292 | { |
35293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35294 | result = (int)(arg1)->GetFlag(); | |
35295 | ||
35296 | wxPyEndAllowThreads(__tstate); | |
35297 | if (PyErr_Occurred()) SWIG_fail; | |
35298 | } | |
c32bde28 | 35299 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
35300 | return resultobj; |
35301 | fail: | |
35302 | return NULL; | |
35303 | } | |
35304 | ||
35305 | ||
c32bde28 | 35306 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35307 | PyObject *resultobj; |
35308 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35309 | int arg2 ; | |
35310 | PyObject * obj0 = 0 ; | |
994141e6 | 35311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35312 | char *kwnames[] = { |
35313 | (char *) "self",(char *) "border", NULL | |
35314 | }; | |
35315 | ||
994141e6 | 35316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35319 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 35320 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
35321 | { |
35322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35323 | (arg1)->SetBorder(arg2); | |
35324 | ||
35325 | wxPyEndAllowThreads(__tstate); | |
35326 | if (PyErr_Occurred()) SWIG_fail; | |
35327 | } | |
35328 | Py_INCREF(Py_None); resultobj = Py_None; | |
35329 | return resultobj; | |
35330 | fail: | |
35331 | return NULL; | |
35332 | } | |
35333 | ||
35334 | ||
c32bde28 | 35335 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35336 | PyObject *resultobj; |
35337 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35338 | int result; | |
35339 | PyObject * obj0 = 0 ; | |
35340 | char *kwnames[] = { | |
35341 | (char *) "self", NULL | |
35342 | }; | |
35343 | ||
35344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35347 | { |
35348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35349 | result = (int)(arg1)->GetBorder(); | |
35350 | ||
35351 | wxPyEndAllowThreads(__tstate); | |
35352 | if (PyErr_Occurred()) SWIG_fail; | |
35353 | } | |
c32bde28 | 35354 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
35355 | return resultobj; |
35356 | fail: | |
35357 | return NULL; | |
35358 | } | |
35359 | ||
35360 | ||
c32bde28 | 35361 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35362 | PyObject *resultobj; |
35363 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35364 | wxWindow *result; | |
35365 | PyObject * obj0 = 0 ; | |
35366 | char *kwnames[] = { | |
35367 | (char *) "self", NULL | |
35368 | }; | |
35369 | ||
35370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35373 | { |
35374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35375 | result = (wxWindow *)(arg1)->GetWindow(); | |
35376 | ||
35377 | wxPyEndAllowThreads(__tstate); | |
35378 | if (PyErr_Occurred()) SWIG_fail; | |
35379 | } | |
35380 | { | |
412d302d | 35381 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35382 | } |
35383 | return resultobj; | |
35384 | fail: | |
35385 | return NULL; | |
35386 | } | |
35387 | ||
35388 | ||
c32bde28 | 35389 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35390 | PyObject *resultobj; |
35391 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35392 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35393 | PyObject * obj0 = 0 ; | |
35394 | PyObject * obj1 = 0 ; | |
35395 | char *kwnames[] = { | |
35396 | (char *) "self",(char *) "window", NULL | |
35397 | }; | |
35398 | ||
35399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35404 | { |
35405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35406 | (arg1)->SetWindow(arg2); | |
35407 | ||
35408 | wxPyEndAllowThreads(__tstate); | |
35409 | if (PyErr_Occurred()) SWIG_fail; | |
35410 | } | |
35411 | Py_INCREF(Py_None); resultobj = Py_None; | |
35412 | return resultobj; | |
35413 | fail: | |
35414 | return NULL; | |
35415 | } | |
35416 | ||
35417 | ||
c32bde28 | 35418 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35419 | PyObject *resultobj; |
35420 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35421 | wxSizer *result; | |
35422 | PyObject * obj0 = 0 ; | |
35423 | char *kwnames[] = { | |
35424 | (char *) "self", NULL | |
35425 | }; | |
35426 | ||
35427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35430 | { |
35431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35432 | result = (wxSizer *)(arg1)->GetSizer(); | |
35433 | ||
35434 | wxPyEndAllowThreads(__tstate); | |
35435 | if (PyErr_Occurred()) SWIG_fail; | |
35436 | } | |
35437 | { | |
412d302d | 35438 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
35439 | } |
35440 | return resultobj; | |
35441 | fail: | |
35442 | return NULL; | |
35443 | } | |
35444 | ||
35445 | ||
c32bde28 | 35446 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35447 | PyObject *resultobj; |
35448 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35449 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35450 | PyObject * obj0 = 0 ; | |
35451 | PyObject * obj1 = 0 ; | |
35452 | char *kwnames[] = { | |
35453 | (char *) "self",(char *) "sizer", NULL | |
35454 | }; | |
35455 | ||
35456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35461 | { |
35462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35463 | (arg1)->SetSizer(arg2); | |
35464 | ||
35465 | wxPyEndAllowThreads(__tstate); | |
35466 | if (PyErr_Occurred()) SWIG_fail; | |
35467 | } | |
35468 | Py_INCREF(Py_None); resultobj = Py_None; | |
35469 | return resultobj; | |
35470 | fail: | |
35471 | return NULL; | |
35472 | } | |
35473 | ||
35474 | ||
c32bde28 | 35475 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35476 | PyObject *resultobj; |
35477 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35478 | wxSize *result; | |
35479 | PyObject * obj0 = 0 ; | |
35480 | char *kwnames[] = { | |
35481 | (char *) "self", NULL | |
35482 | }; | |
35483 | ||
35484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35487 | { |
35488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35489 | { | |
35490 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35491 | result = (wxSize *) &_result_ref; | |
35492 | } | |
35493 | ||
35494 | wxPyEndAllowThreads(__tstate); | |
35495 | if (PyErr_Occurred()) SWIG_fail; | |
35496 | } | |
15afbcd0 | 35497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
35498 | return resultobj; |
35499 | fail: | |
35500 | return NULL; | |
35501 | } | |
35502 | ||
35503 | ||
c32bde28 | 35504 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35505 | PyObject *resultobj; |
35506 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35507 | wxSize *arg2 = 0 ; | |
35508 | wxSize temp2 ; | |
35509 | PyObject * obj0 = 0 ; | |
35510 | PyObject * obj1 = 0 ; | |
35511 | char *kwnames[] = { | |
35512 | (char *) "self",(char *) "size", NULL | |
35513 | }; | |
35514 | ||
35515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35518 | { |
35519 | arg2 = &temp2; | |
35520 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35521 | } | |
35522 | { | |
35523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35524 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35525 | ||
35526 | wxPyEndAllowThreads(__tstate); | |
35527 | if (PyErr_Occurred()) SWIG_fail; | |
35528 | } | |
35529 | Py_INCREF(Py_None); resultobj = Py_None; | |
35530 | return resultobj; | |
35531 | fail: | |
35532 | return NULL; | |
35533 | } | |
35534 | ||
35535 | ||
c32bde28 | 35536 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35537 | PyObject *resultobj; |
35538 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35539 | bool arg2 ; | |
35540 | PyObject * obj0 = 0 ; | |
35541 | PyObject * obj1 = 0 ; | |
35542 | char *kwnames[] = { | |
35543 | (char *) "self",(char *) "show", NULL | |
35544 | }; | |
35545 | ||
35546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35549 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 35550 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
35551 | { |
35552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35553 | (arg1)->Show(arg2); | |
35554 | ||
35555 | wxPyEndAllowThreads(__tstate); | |
35556 | if (PyErr_Occurred()) SWIG_fail; | |
35557 | } | |
35558 | Py_INCREF(Py_None); resultobj = Py_None; | |
35559 | return resultobj; | |
35560 | fail: | |
35561 | return NULL; | |
35562 | } | |
35563 | ||
35564 | ||
c32bde28 | 35565 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35566 | PyObject *resultobj; |
35567 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35568 | bool result; | |
35569 | PyObject * obj0 = 0 ; | |
35570 | char *kwnames[] = { | |
35571 | (char *) "self", NULL | |
35572 | }; | |
35573 | ||
35574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35577 | { |
35578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35579 | result = (bool)(arg1)->IsShown(); | |
35580 | ||
35581 | wxPyEndAllowThreads(__tstate); | |
35582 | if (PyErr_Occurred()) SWIG_fail; | |
35583 | } | |
4f89f6a3 RD |
35584 | { |
35585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35586 | } | |
d14a1e28 RD |
35587 | return resultobj; |
35588 | fail: | |
35589 | return NULL; | |
35590 | } | |
35591 | ||
35592 | ||
c32bde28 | 35593 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35594 | PyObject *resultobj; |
35595 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35596 | wxPoint result; | |
35597 | PyObject * obj0 = 0 ; | |
35598 | char *kwnames[] = { | |
35599 | (char *) "self", NULL | |
35600 | }; | |
35601 | ||
35602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35605 | { |
35606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35607 | result = (arg1)->GetPosition(); | |
35608 | ||
35609 | wxPyEndAllowThreads(__tstate); | |
35610 | if (PyErr_Occurred()) SWIG_fail; | |
35611 | } | |
35612 | { | |
35613 | wxPoint * resultptr; | |
35614 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 35615 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
35616 | } |
35617 | return resultobj; | |
35618 | fail: | |
35619 | return NULL; | |
35620 | } | |
35621 | ||
35622 | ||
c32bde28 | 35623 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35624 | PyObject *resultobj; |
35625 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35626 | PyObject *result; | |
35627 | PyObject * obj0 = 0 ; | |
35628 | char *kwnames[] = { | |
35629 | (char *) "self", NULL | |
35630 | }; | |
35631 | ||
35632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
35634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35635 | { |
35636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35637 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35638 | ||
35639 | wxPyEndAllowThreads(__tstate); | |
35640 | if (PyErr_Occurred()) SWIG_fail; | |
35641 | } | |
35642 | resultobj = result; | |
35643 | return resultobj; | |
35644 | fail: | |
35645 | return NULL; | |
35646 | } | |
35647 | ||
35648 | ||
c32bde28 | 35649 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35650 | PyObject *obj; |
35651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35652 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35653 | Py_INCREF(obj); | |
35654 | return Py_BuildValue((char *)""); | |
35655 | } | |
c32bde28 | 35656 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35657 | PyObject *resultobj; |
35658 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35659 | PyObject *arg2 = (PyObject *) 0 ; | |
35660 | PyObject * obj0 = 0 ; | |
35661 | PyObject * obj1 = 0 ; | |
35662 | char *kwnames[] = { | |
35663 | (char *) "self",(char *) "_self", NULL | |
35664 | }; | |
35665 | ||
35666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35669 | arg2 = obj1; |
35670 | { | |
35671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35672 | wxSizer__setOORInfo(arg1,arg2); | |
35673 | ||
35674 | wxPyEndAllowThreads(__tstate); | |
35675 | if (PyErr_Occurred()) SWIG_fail; | |
35676 | } | |
35677 | Py_INCREF(Py_None); resultobj = Py_None; | |
35678 | return resultobj; | |
35679 | fail: | |
35680 | return NULL; | |
35681 | } | |
35682 | ||
35683 | ||
c32bde28 | 35684 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35685 | PyObject *resultobj; |
35686 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35687 | PyObject *arg2 = (PyObject *) 0 ; | |
35688 | int arg3 = (int) 0 ; | |
35689 | int arg4 = (int) 0 ; | |
35690 | int arg5 = (int) 0 ; | |
35691 | PyObject *arg6 = (PyObject *) NULL ; | |
d3b6e4ff | 35692 | wxSizerItem *result; |
d14a1e28 RD |
35693 | PyObject * obj0 = 0 ; |
35694 | PyObject * obj1 = 0 ; | |
994141e6 RD |
35695 | PyObject * obj2 = 0 ; |
35696 | PyObject * obj3 = 0 ; | |
35697 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35698 | PyObject * obj5 = 0 ; |
35699 | char *kwnames[] = { | |
35700 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35701 | }; | |
35702 | ||
994141e6 | 35703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
35704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35706 | arg2 = obj1; |
994141e6 | 35707 | if (obj2) { |
c32bde28 | 35708 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 35709 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35710 | } |
35711 | if (obj3) { | |
c32bde28 | 35712 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 35713 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35714 | } |
35715 | if (obj4) { | |
c32bde28 | 35716 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 35717 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 35718 | } |
d14a1e28 RD |
35719 | if (obj5) { |
35720 | arg6 = obj5; | |
35721 | } | |
35722 | { | |
35723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 35724 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
35725 | |
35726 | wxPyEndAllowThreads(__tstate); | |
35727 | if (PyErr_Occurred()) SWIG_fail; | |
35728 | } | |
d3b6e4ff | 35729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
35730 | return resultobj; |
35731 | fail: | |
35732 | return NULL; | |
35733 | } | |
35734 | ||
35735 | ||
c32bde28 | 35736 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35737 | PyObject *resultobj; |
35738 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35739 | int arg2 ; | |
35740 | PyObject *arg3 = (PyObject *) 0 ; | |
35741 | int arg4 = (int) 0 ; | |
35742 | int arg5 = (int) 0 ; | |
35743 | int arg6 = (int) 0 ; | |
35744 | PyObject *arg7 = (PyObject *) NULL ; | |
d3b6e4ff | 35745 | wxSizerItem *result; |
d14a1e28 | 35746 | PyObject * obj0 = 0 ; |
994141e6 | 35747 | PyObject * obj1 = 0 ; |
d14a1e28 | 35748 | PyObject * obj2 = 0 ; |
994141e6 RD |
35749 | PyObject * obj3 = 0 ; |
35750 | PyObject * obj4 = 0 ; | |
35751 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
35752 | PyObject * obj6 = 0 ; |
35753 | char *kwnames[] = { | |
35754 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35755 | }; | |
35756 | ||
994141e6 | 35757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
35758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35760 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 35761 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 35762 | arg3 = obj2; |
994141e6 | 35763 | if (obj3) { |
c32bde28 | 35764 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 35765 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35766 | } |
35767 | if (obj4) { | |
c32bde28 | 35768 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 35769 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35770 | } |
35771 | if (obj5) { | |
c32bde28 | 35772 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 35773 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 35774 | } |
d14a1e28 RD |
35775 | if (obj6) { |
35776 | arg7 = obj6; | |
35777 | } | |
35778 | { | |
35779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 35780 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
35781 | |
35782 | wxPyEndAllowThreads(__tstate); | |
35783 | if (PyErr_Occurred()) SWIG_fail; | |
35784 | } | |
d3b6e4ff | 35785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
35786 | return resultobj; |
35787 | fail: | |
35788 | return NULL; | |
35789 | } | |
35790 | ||
35791 | ||
c32bde28 | 35792 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35793 | PyObject *resultobj; |
35794 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35795 | PyObject *arg2 = (PyObject *) 0 ; | |
35796 | int arg3 = (int) 0 ; | |
35797 | int arg4 = (int) 0 ; | |
35798 | int arg5 = (int) 0 ; | |
35799 | PyObject *arg6 = (PyObject *) NULL ; | |
d3b6e4ff | 35800 | wxSizerItem *result; |
d14a1e28 RD |
35801 | PyObject * obj0 = 0 ; |
35802 | PyObject * obj1 = 0 ; | |
994141e6 RD |
35803 | PyObject * obj2 = 0 ; |
35804 | PyObject * obj3 = 0 ; | |
35805 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35806 | PyObject * obj5 = 0 ; |
35807 | char *kwnames[] = { | |
35808 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35809 | }; | |
35810 | ||
994141e6 | 35811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
35812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35814 | arg2 = obj1; |
994141e6 | 35815 | if (obj2) { |
c32bde28 | 35816 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 35817 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35818 | } |
35819 | if (obj3) { | |
c32bde28 | 35820 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 35821 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
35822 | } |
35823 | if (obj4) { | |
c32bde28 | 35824 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 35825 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 35826 | } |
d14a1e28 RD |
35827 | if (obj5) { |
35828 | arg6 = obj5; | |
35829 | } | |
35830 | { | |
35831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 35832 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
35833 | |
35834 | wxPyEndAllowThreads(__tstate); | |
35835 | if (PyErr_Occurred()) SWIG_fail; | |
35836 | } | |
d3b6e4ff | 35837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
35838 | return resultobj; |
35839 | fail: | |
35840 | return NULL; | |
35841 | } | |
35842 | ||
35843 | ||
c32bde28 | 35844 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35845 | PyObject *resultobj; |
35846 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35847 | PyObject *arg2 = (PyObject *) 0 ; | |
35848 | bool result; | |
35849 | PyObject * obj0 = 0 ; | |
35850 | PyObject * obj1 = 0 ; | |
35851 | char *kwnames[] = { | |
35852 | (char *) "self",(char *) "item", NULL | |
35853 | }; | |
35854 | ||
35855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35858 | arg2 = obj1; |
35859 | { | |
35860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35861 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35862 | ||
35863 | wxPyEndAllowThreads(__tstate); | |
35864 | if (PyErr_Occurred()) SWIG_fail; | |
35865 | } | |
4f89f6a3 RD |
35866 | { |
35867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35868 | } | |
d14a1e28 RD |
35869 | return resultobj; |
35870 | fail: | |
35871 | return NULL; | |
35872 | } | |
35873 | ||
35874 | ||
c32bde28 | 35875 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1c0f361b RD |
35876 | PyObject *resultobj; |
35877 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35878 | PyObject *arg2 = (PyObject *) 0 ; | |
35879 | bool result; | |
35880 | PyObject * obj0 = 0 ; | |
35881 | PyObject * obj1 = 0 ; | |
35882 | char *kwnames[] = { | |
35883 | (char *) "self",(char *) "item", NULL | |
35884 | }; | |
35885 | ||
35886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35889 | arg2 = obj1; | |
35890 | { | |
35891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35892 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35893 | ||
35894 | wxPyEndAllowThreads(__tstate); | |
35895 | if (PyErr_Occurred()) SWIG_fail; | |
35896 | } | |
35897 | { | |
35898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35899 | } | |
35900 | return resultobj; | |
35901 | fail: | |
35902 | return NULL; | |
35903 | } | |
35904 | ||
35905 | ||
d3b6e4ff RD |
35906 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
35907 | PyObject *resultobj; | |
35908 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35909 | PyObject *arg2 = (PyObject *) 0 ; | |
35910 | wxSizerItem *result; | |
35911 | PyObject * obj0 = 0 ; | |
35912 | PyObject * obj1 = 0 ; | |
35913 | char *kwnames[] = { | |
35914 | (char *) "self",(char *) "item", NULL | |
35915 | }; | |
35916 | ||
35917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
35918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35920 | arg2 = obj1; | |
35921 | { | |
35922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35923 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
35924 | ||
35925 | wxPyEndAllowThreads(__tstate); | |
35926 | if (PyErr_Occurred()) SWIG_fail; | |
35927 | } | |
35928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
35929 | return resultobj; | |
35930 | fail: | |
35931 | return NULL; | |
35932 | } | |
35933 | ||
35934 | ||
c32bde28 | 35935 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35936 | PyObject *resultobj; |
35937 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35938 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
35939 | wxSize *arg3 = 0 ; |
35940 | wxSize temp3 ; | |
d14a1e28 RD |
35941 | PyObject * obj0 = 0 ; |
35942 | PyObject * obj1 = 0 ; | |
35943 | PyObject * obj2 = 0 ; | |
35944 | char *kwnames[] = { | |
35945 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35946 | }; | |
35947 | ||
35948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35951 | arg2 = obj1; |
e811c8ce RD |
35952 | { |
35953 | arg3 = &temp3; | |
35954 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35955 | } | |
d14a1e28 RD |
35956 | { |
35957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 35958 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
35959 | |
35960 | wxPyEndAllowThreads(__tstate); | |
35961 | if (PyErr_Occurred()) SWIG_fail; | |
35962 | } | |
35963 | Py_INCREF(Py_None); resultobj = Py_None; | |
35964 | return resultobj; | |
35965 | fail: | |
35966 | return NULL; | |
35967 | } | |
35968 | ||
35969 | ||
c32bde28 | 35970 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35971 | PyObject *resultobj; |
35972 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35973 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 35974 | wxSizerItem *result; |
d14a1e28 RD |
35975 | PyObject * obj0 = 0 ; |
35976 | PyObject * obj1 = 0 ; | |
35977 | char *kwnames[] = { | |
35978 | (char *) "self",(char *) "item", NULL | |
35979 | }; | |
35980 | ||
35981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35986 | { |
35987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 35988 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d14a1e28 RD |
35989 | |
35990 | wxPyEndAllowThreads(__tstate); | |
35991 | if (PyErr_Occurred()) SWIG_fail; | |
35992 | } | |
d3b6e4ff | 35993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
35994 | return resultobj; |
35995 | fail: | |
35996 | return NULL; | |
35997 | } | |
35998 | ||
35999 | ||
c32bde28 | 36000 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36001 | PyObject *resultobj; |
36002 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36003 | size_t arg2 ; | |
36004 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 36005 | wxSizerItem *result; |
d14a1e28 RD |
36006 | PyObject * obj0 = 0 ; |
36007 | PyObject * obj1 = 0 ; | |
36008 | PyObject * obj2 = 0 ; | |
36009 | char *kwnames[] = { | |
36010 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36011 | }; | |
36012 | ||
36013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
36014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36016 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
36017 | if (PyErr_Occurred()) SWIG_fail; |
36018 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36020 | { |
36021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 36022 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
36023 | |
36024 | wxPyEndAllowThreads(__tstate); | |
36025 | if (PyErr_Occurred()) SWIG_fail; | |
36026 | } | |
d3b6e4ff | 36027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
36028 | return resultobj; |
36029 | fail: | |
36030 | return NULL; | |
36031 | } | |
36032 | ||
36033 | ||
c32bde28 | 36034 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36035 | PyObject *resultobj; |
36036 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36037 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 36038 | wxSizerItem *result; |
d14a1e28 RD |
36039 | PyObject * obj0 = 0 ; |
36040 | PyObject * obj1 = 0 ; | |
36041 | char *kwnames[] = { | |
36042 | (char *) "self",(char *) "item", NULL | |
36043 | }; | |
36044 | ||
36045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36050 | { |
36051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 36052 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
36053 | |
36054 | wxPyEndAllowThreads(__tstate); | |
36055 | if (PyErr_Occurred()) SWIG_fail; | |
36056 | } | |
d3b6e4ff | 36057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
36058 | return resultobj; |
36059 | fail: | |
36060 | return NULL; | |
36061 | } | |
36062 | ||
36063 | ||
c32bde28 | 36064 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36065 | PyObject *resultobj; |
36066 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36067 | int arg2 ; | |
36068 | int arg3 ; | |
36069 | int arg4 ; | |
36070 | int arg5 ; | |
36071 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36072 | PyObject * obj1 = 0 ; |
36073 | PyObject * obj2 = 0 ; | |
36074 | PyObject * obj3 = 0 ; | |
36075 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36076 | char *kwnames[] = { |
36077 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36078 | }; | |
36079 | ||
994141e6 | 36080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
36081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36083 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36084 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36085 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 36086 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36087 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 36088 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36089 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 36090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36091 | { |
36092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36093 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
36094 | ||
36095 | wxPyEndAllowThreads(__tstate); | |
36096 | if (PyErr_Occurred()) SWIG_fail; | |
36097 | } | |
36098 | Py_INCREF(Py_None); resultobj = Py_None; | |
36099 | return resultobj; | |
36100 | fail: | |
36101 | return NULL; | |
36102 | } | |
36103 | ||
36104 | ||
c32bde28 | 36105 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36106 | PyObject *resultobj; |
36107 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
36108 | wxSize *arg2 = 0 ; |
36109 | wxSize temp2 ; | |
d14a1e28 RD |
36110 | PyObject * obj0 = 0 ; |
36111 | PyObject * obj1 = 0 ; | |
36112 | char *kwnames[] = { | |
36113 | (char *) "self",(char *) "size", NULL | |
36114 | }; | |
36115 | ||
36116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fc9204a RD |
36119 | { |
36120 | arg2 = &temp2; | |
36121 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36122 | } | |
d14a1e28 RD |
36123 | { |
36124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 36125 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
36126 | |
36127 | wxPyEndAllowThreads(__tstate); | |
36128 | if (PyErr_Occurred()) SWIG_fail; | |
36129 | } | |
36130 | Py_INCREF(Py_None); resultobj = Py_None; | |
36131 | return resultobj; | |
36132 | fail: | |
36133 | return NULL; | |
36134 | } | |
36135 | ||
36136 | ||
c32bde28 | 36137 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36138 | PyObject *resultobj; |
36139 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36140 | wxSize result; | |
36141 | PyObject * obj0 = 0 ; | |
36142 | char *kwnames[] = { | |
36143 | (char *) "self", NULL | |
36144 | }; | |
36145 | ||
36146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36149 | { |
36150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36151 | result = (arg1)->GetSize(); | |
36152 | ||
36153 | wxPyEndAllowThreads(__tstate); | |
36154 | if (PyErr_Occurred()) SWIG_fail; | |
36155 | } | |
36156 | { | |
36157 | wxSize * resultptr; | |
36158 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36160 | } |
36161 | return resultobj; | |
36162 | fail: | |
36163 | return NULL; | |
36164 | } | |
36165 | ||
36166 | ||
c32bde28 | 36167 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36168 | PyObject *resultobj; |
36169 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36170 | wxPoint result; | |
36171 | PyObject * obj0 = 0 ; | |
36172 | char *kwnames[] = { | |
36173 | (char *) "self", NULL | |
36174 | }; | |
36175 | ||
36176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36179 | { |
36180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36181 | result = (arg1)->GetPosition(); | |
36182 | ||
36183 | wxPyEndAllowThreads(__tstate); | |
36184 | if (PyErr_Occurred()) SWIG_fail; | |
36185 | } | |
36186 | { | |
36187 | wxPoint * resultptr; | |
36188 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 36189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
36190 | } |
36191 | return resultobj; | |
36192 | fail: | |
36193 | return NULL; | |
36194 | } | |
36195 | ||
36196 | ||
c32bde28 | 36197 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36198 | PyObject *resultobj; |
36199 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36200 | wxSize result; | |
36201 | PyObject * obj0 = 0 ; | |
36202 | char *kwnames[] = { | |
36203 | (char *) "self", NULL | |
36204 | }; | |
36205 | ||
36206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36209 | { |
36210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36211 | result = (arg1)->GetMinSize(); | |
36212 | ||
36213 | wxPyEndAllowThreads(__tstate); | |
36214 | if (PyErr_Occurred()) SWIG_fail; | |
36215 | } | |
36216 | { | |
36217 | wxSize * resultptr; | |
36218 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36220 | } |
36221 | return resultobj; | |
36222 | fail: | |
36223 | return NULL; | |
36224 | } | |
36225 | ||
36226 | ||
c32bde28 | 36227 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36228 | PyObject *resultobj; |
36229 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36230 | PyObject * obj0 = 0 ; | |
36231 | char *kwnames[] = { | |
36232 | (char *) "self", NULL | |
36233 | }; | |
36234 | ||
36235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36238 | { |
36239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36240 | (arg1)->RecalcSizes(); | |
36241 | ||
36242 | wxPyEndAllowThreads(__tstate); | |
36243 | if (PyErr_Occurred()) SWIG_fail; | |
36244 | } | |
36245 | Py_INCREF(Py_None); resultobj = Py_None; | |
36246 | return resultobj; | |
36247 | fail: | |
36248 | return NULL; | |
36249 | } | |
36250 | ||
36251 | ||
c32bde28 | 36252 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36253 | PyObject *resultobj; |
36254 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36255 | wxSize result; | |
36256 | PyObject * obj0 = 0 ; | |
36257 | char *kwnames[] = { | |
36258 | (char *) "self", NULL | |
36259 | }; | |
36260 | ||
36261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36264 | { |
36265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36266 | result = (arg1)->CalcMin(); | |
36267 | ||
36268 | wxPyEndAllowThreads(__tstate); | |
36269 | if (PyErr_Occurred()) SWIG_fail; | |
36270 | } | |
36271 | { | |
36272 | wxSize * resultptr; | |
36273 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36274 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36275 | } |
36276 | return resultobj; | |
36277 | fail: | |
36278 | return NULL; | |
36279 | } | |
36280 | ||
36281 | ||
c32bde28 | 36282 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36283 | PyObject *resultobj; |
36284 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36285 | PyObject * obj0 = 0 ; | |
36286 | char *kwnames[] = { | |
36287 | (char *) "self", NULL | |
36288 | }; | |
36289 | ||
36290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36293 | { |
36294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36295 | (arg1)->Layout(); | |
36296 | ||
36297 | wxPyEndAllowThreads(__tstate); | |
36298 | if (PyErr_Occurred()) SWIG_fail; | |
36299 | } | |
36300 | Py_INCREF(Py_None); resultobj = Py_None; | |
36301 | return resultobj; | |
36302 | fail: | |
36303 | return NULL; | |
36304 | } | |
36305 | ||
36306 | ||
c32bde28 | 36307 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36308 | PyObject *resultobj; |
36309 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36311 | wxSize result; | |
36312 | PyObject * obj0 = 0 ; | |
36313 | PyObject * obj1 = 0 ; | |
36314 | char *kwnames[] = { | |
36315 | (char *) "self",(char *) "window", NULL | |
36316 | }; | |
36317 | ||
36318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36323 | { |
36324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36325 | result = (arg1)->Fit(arg2); | |
36326 | ||
36327 | wxPyEndAllowThreads(__tstate); | |
36328 | if (PyErr_Occurred()) SWIG_fail; | |
36329 | } | |
36330 | { | |
36331 | wxSize * resultptr; | |
36332 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36333 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36334 | } |
36335 | return resultobj; | |
36336 | fail: | |
36337 | return NULL; | |
36338 | } | |
36339 | ||
36340 | ||
c32bde28 | 36341 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36342 | PyObject *resultobj; |
36343 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36344 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36345 | PyObject * obj0 = 0 ; | |
36346 | PyObject * obj1 = 0 ; | |
36347 | char *kwnames[] = { | |
36348 | (char *) "self",(char *) "window", NULL | |
36349 | }; | |
36350 | ||
36351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36356 | { |
36357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36358 | (arg1)->FitInside(arg2); | |
36359 | ||
36360 | wxPyEndAllowThreads(__tstate); | |
36361 | if (PyErr_Occurred()) SWIG_fail; | |
36362 | } | |
36363 | Py_INCREF(Py_None); resultobj = Py_None; | |
36364 | return resultobj; | |
36365 | fail: | |
36366 | return NULL; | |
36367 | } | |
36368 | ||
36369 | ||
c32bde28 | 36370 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36371 | PyObject *resultobj; |
36372 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36373 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36374 | PyObject * obj0 = 0 ; | |
36375 | PyObject * obj1 = 0 ; | |
36376 | char *kwnames[] = { | |
36377 | (char *) "self",(char *) "window", NULL | |
36378 | }; | |
36379 | ||
36380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36385 | { |
36386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36387 | (arg1)->SetSizeHints(arg2); | |
36388 | ||
36389 | wxPyEndAllowThreads(__tstate); | |
36390 | if (PyErr_Occurred()) SWIG_fail; | |
36391 | } | |
36392 | Py_INCREF(Py_None); resultobj = Py_None; | |
36393 | return resultobj; | |
36394 | fail: | |
36395 | return NULL; | |
36396 | } | |
36397 | ||
36398 | ||
c32bde28 | 36399 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36400 | PyObject *resultobj; |
36401 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36402 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36403 | PyObject * obj0 = 0 ; | |
36404 | PyObject * obj1 = 0 ; | |
36405 | char *kwnames[] = { | |
36406 | (char *) "self",(char *) "window", NULL | |
36407 | }; | |
36408 | ||
36409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36414 | { |
36415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36416 | (arg1)->SetVirtualSizeHints(arg2); | |
36417 | ||
36418 | wxPyEndAllowThreads(__tstate); | |
36419 | if (PyErr_Occurred()) SWIG_fail; | |
36420 | } | |
36421 | Py_INCREF(Py_None); resultobj = Py_None; | |
36422 | return resultobj; | |
36423 | fail: | |
36424 | return NULL; | |
36425 | } | |
36426 | ||
36427 | ||
c32bde28 | 36428 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36429 | PyObject *resultobj; |
36430 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 36431 | bool arg2 = (bool) false ; |
d14a1e28 RD |
36432 | PyObject * obj0 = 0 ; |
36433 | PyObject * obj1 = 0 ; | |
36434 | char *kwnames[] = { | |
248ed943 | 36435 | (char *) "self",(char *) "deleteWindows", NULL |
d14a1e28 RD |
36436 | }; |
36437 | ||
36438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 36441 | if (obj1) { |
c32bde28 | 36442 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 36443 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36444 | } |
36445 | { | |
36446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36447 | (arg1)->Clear(arg2); | |
36448 | ||
36449 | wxPyEndAllowThreads(__tstate); | |
36450 | if (PyErr_Occurred()) SWIG_fail; | |
36451 | } | |
36452 | Py_INCREF(Py_None); resultobj = Py_None; | |
36453 | return resultobj; | |
36454 | fail: | |
36455 | return NULL; | |
36456 | } | |
36457 | ||
36458 | ||
c32bde28 | 36459 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36460 | PyObject *resultobj; |
36461 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36462 | PyObject * obj0 = 0 ; | |
36463 | char *kwnames[] = { | |
36464 | (char *) "self", NULL | |
36465 | }; | |
36466 | ||
36467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36470 | { |
36471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36472 | (arg1)->DeleteWindows(); | |
36473 | ||
36474 | wxPyEndAllowThreads(__tstate); | |
36475 | if (PyErr_Occurred()) SWIG_fail; | |
36476 | } | |
36477 | Py_INCREF(Py_None); resultobj = Py_None; | |
36478 | return resultobj; | |
36479 | fail: | |
36480 | return NULL; | |
36481 | } | |
36482 | ||
36483 | ||
c32bde28 | 36484 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36485 | PyObject *resultobj; |
36486 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36487 | PyObject *result; | |
36488 | PyObject * obj0 = 0 ; | |
36489 | char *kwnames[] = { | |
36490 | (char *) "self", NULL | |
36491 | }; | |
36492 | ||
36493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36496 | { |
36497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36498 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36499 | ||
36500 | wxPyEndAllowThreads(__tstate); | |
36501 | if (PyErr_Occurred()) SWIG_fail; | |
36502 | } | |
36503 | resultobj = result; | |
36504 | return resultobj; | |
36505 | fail: | |
36506 | return NULL; | |
36507 | } | |
36508 | ||
36509 | ||
c32bde28 | 36510 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36511 | PyObject *resultobj; |
36512 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36513 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
36514 | bool arg3 = (bool) true ; |
36515 | bool arg4 = (bool) false ; | |
7e63a440 | 36516 | bool result; |
d14a1e28 RD |
36517 | PyObject * obj0 = 0 ; |
36518 | PyObject * obj1 = 0 ; | |
36519 | PyObject * obj2 = 0 ; | |
7e63a440 | 36520 | PyObject * obj3 = 0 ; |
d14a1e28 | 36521 | char *kwnames[] = { |
7e63a440 | 36522 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d14a1e28 RD |
36523 | }; |
36524 | ||
7e63a440 | 36525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
36526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36528 | arg2 = obj1; |
36529 | if (obj2) { | |
c32bde28 | 36530 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 36531 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 36532 | } |
7e63a440 RD |
36533 | if (obj3) { |
36534 | arg4 = (bool)SWIG_As_bool(obj3); | |
36535 | if (PyErr_Occurred()) SWIG_fail; | |
36536 | } | |
d14a1e28 RD |
36537 | { |
36538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 36539 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
36540 | |
36541 | wxPyEndAllowThreads(__tstate); | |
36542 | if (PyErr_Occurred()) SWIG_fail; | |
36543 | } | |
7e63a440 RD |
36544 | { |
36545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36546 | } | |
d14a1e28 RD |
36547 | return resultobj; |
36548 | fail: | |
36549 | return NULL; | |
36550 | } | |
36551 | ||
36552 | ||
c32bde28 | 36553 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36554 | PyObject *resultobj; |
36555 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36556 | PyObject *arg2 = (PyObject *) 0 ; | |
36557 | bool result; | |
36558 | PyObject * obj0 = 0 ; | |
36559 | PyObject * obj1 = 0 ; | |
36560 | char *kwnames[] = { | |
36561 | (char *) "self",(char *) "item", NULL | |
36562 | }; | |
36563 | ||
36564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36567 | arg2 = obj1; |
36568 | { | |
36569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36570 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36571 | ||
36572 | wxPyEndAllowThreads(__tstate); | |
36573 | if (PyErr_Occurred()) SWIG_fail; | |
36574 | } | |
4f89f6a3 RD |
36575 | { |
36576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36577 | } | |
d14a1e28 RD |
36578 | return resultobj; |
36579 | fail: | |
36580 | return NULL; | |
36581 | } | |
36582 | ||
36583 | ||
c32bde28 | 36584 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36585 | PyObject *resultobj; |
36586 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36587 | bool arg2 ; | |
36588 | PyObject * obj0 = 0 ; | |
36589 | PyObject * obj1 = 0 ; | |
36590 | char *kwnames[] = { | |
36591 | (char *) "self",(char *) "show", NULL | |
36592 | }; | |
36593 | ||
36594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36597 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 36598 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36599 | { |
36600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36601 | (arg1)->ShowItems(arg2); | |
36602 | ||
36603 | wxPyEndAllowThreads(__tstate); | |
36604 | if (PyErr_Occurred()) SWIG_fail; | |
36605 | } | |
36606 | Py_INCREF(Py_None); resultobj = Py_None; | |
36607 | return resultobj; | |
36608 | fail: | |
36609 | return NULL; | |
36610 | } | |
36611 | ||
36612 | ||
c32bde28 | 36613 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
36614 | PyObject *obj; |
36615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36616 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36617 | Py_INCREF(obj); | |
36618 | return Py_BuildValue((char *)""); | |
36619 | } | |
c32bde28 | 36620 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36621 | PyObject *resultobj; |
36622 | wxPySizer *result; | |
36623 | char *kwnames[] = { | |
36624 | NULL | |
36625 | }; | |
36626 | ||
36627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36628 | { | |
36629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36630 | result = (wxPySizer *)new wxPySizer(); | |
36631 | ||
36632 | wxPyEndAllowThreads(__tstate); | |
36633 | if (PyErr_Occurred()) SWIG_fail; | |
36634 | } | |
15afbcd0 | 36635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
36636 | return resultobj; |
36637 | fail: | |
36638 | return NULL; | |
36639 | } | |
36640 | ||
36641 | ||
c32bde28 | 36642 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36643 | PyObject *resultobj; |
36644 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36645 | PyObject *arg2 = (PyObject *) 0 ; | |
36646 | PyObject *arg3 = (PyObject *) 0 ; | |
36647 | PyObject * obj0 = 0 ; | |
36648 | PyObject * obj1 = 0 ; | |
36649 | PyObject * obj2 = 0 ; | |
36650 | char *kwnames[] = { | |
36651 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36652 | }; | |
36653 | ||
36654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
36655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
36656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36657 | arg2 = obj1; |
36658 | arg3 = obj2; | |
36659 | { | |
36660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36661 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36662 | ||
36663 | wxPyEndAllowThreads(__tstate); | |
36664 | if (PyErr_Occurred()) SWIG_fail; | |
36665 | } | |
36666 | Py_INCREF(Py_None); resultobj = Py_None; | |
36667 | return resultobj; | |
36668 | fail: | |
36669 | return NULL; | |
36670 | } | |
36671 | ||
36672 | ||
c32bde28 | 36673 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
36674 | PyObject *obj; |
36675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36676 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36677 | Py_INCREF(obj); | |
36678 | return Py_BuildValue((char *)""); | |
36679 | } | |
c32bde28 | 36680 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36681 | PyObject *resultobj; |
36682 | int arg1 = (int) wxHORIZONTAL ; | |
36683 | wxBoxSizer *result; | |
994141e6 | 36684 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
36685 | char *kwnames[] = { |
36686 | (char *) "orient", NULL | |
36687 | }; | |
36688 | ||
994141e6 RD |
36689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
36690 | if (obj0) { | |
c32bde28 | 36691 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 36692 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 36693 | } |
d14a1e28 RD |
36694 | { |
36695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36696 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36697 | ||
36698 | wxPyEndAllowThreads(__tstate); | |
36699 | if (PyErr_Occurred()) SWIG_fail; | |
36700 | } | |
15afbcd0 | 36701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
36702 | return resultobj; |
36703 | fail: | |
36704 | return NULL; | |
36705 | } | |
36706 | ||
36707 | ||
c32bde28 | 36708 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36709 | PyObject *resultobj; |
36710 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36711 | int result; | |
36712 | PyObject * obj0 = 0 ; | |
36713 | char *kwnames[] = { | |
36714 | (char *) "self", NULL | |
36715 | }; | |
36716 | ||
36717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
36719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36720 | { |
36721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36722 | result = (int)(arg1)->GetOrientation(); | |
36723 | ||
36724 | wxPyEndAllowThreads(__tstate); | |
36725 | if (PyErr_Occurred()) SWIG_fail; | |
36726 | } | |
c32bde28 | 36727 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
36728 | return resultobj; |
36729 | fail: | |
36730 | return NULL; | |
36731 | } | |
36732 | ||
36733 | ||
c32bde28 | 36734 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36735 | PyObject *resultobj; |
36736 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36737 | int arg2 ; | |
36738 | PyObject * obj0 = 0 ; | |
994141e6 | 36739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36740 | char *kwnames[] = { |
36741 | (char *) "self",(char *) "orient", NULL | |
36742 | }; | |
36743 | ||
994141e6 | 36744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
36746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36747 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36748 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36749 | { |
36750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36751 | (arg1)->SetOrientation(arg2); | |
36752 | ||
36753 | wxPyEndAllowThreads(__tstate); | |
36754 | if (PyErr_Occurred()) SWIG_fail; | |
36755 | } | |
36756 | Py_INCREF(Py_None); resultobj = Py_None; | |
36757 | return resultobj; | |
36758 | fail: | |
36759 | return NULL; | |
36760 | } | |
36761 | ||
36762 | ||
c32bde28 | 36763 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
36764 | PyObject *obj; |
36765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36766 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36767 | Py_INCREF(obj); | |
36768 | return Py_BuildValue((char *)""); | |
36769 | } | |
c32bde28 | 36770 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36771 | PyObject *resultobj; |
36772 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36773 | int arg2 = (int) wxHORIZONTAL ; | |
36774 | wxStaticBoxSizer *result; | |
36775 | PyObject * obj0 = 0 ; | |
994141e6 | 36776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36777 | char *kwnames[] = { |
36778 | (char *) "box",(char *) "orient", NULL | |
36779 | }; | |
36780 | ||
994141e6 | 36781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
36783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36784 | if (obj1) { |
c32bde28 | 36785 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36786 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 36787 | } |
d14a1e28 RD |
36788 | { |
36789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36790 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36791 | ||
36792 | wxPyEndAllowThreads(__tstate); | |
36793 | if (PyErr_Occurred()) SWIG_fail; | |
36794 | } | |
15afbcd0 | 36795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
36796 | return resultobj; |
36797 | fail: | |
36798 | return NULL; | |
36799 | } | |
36800 | ||
36801 | ||
c32bde28 | 36802 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36803 | PyObject *resultobj; |
36804 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36805 | wxStaticBox *result; | |
36806 | PyObject * obj0 = 0 ; | |
36807 | char *kwnames[] = { | |
36808 | (char *) "self", NULL | |
36809 | }; | |
36810 | ||
36811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
36813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36814 | { |
36815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36816 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36817 | ||
36818 | wxPyEndAllowThreads(__tstate); | |
36819 | if (PyErr_Occurred()) SWIG_fail; | |
36820 | } | |
36821 | { | |
412d302d | 36822 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
36823 | } |
36824 | return resultobj; | |
36825 | fail: | |
36826 | return NULL; | |
36827 | } | |
36828 | ||
36829 | ||
c32bde28 | 36830 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
36831 | PyObject *obj; |
36832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36833 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36834 | Py_INCREF(obj); | |
36835 | return Py_BuildValue((char *)""); | |
36836 | } | |
c32bde28 | 36837 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36838 | PyObject *resultobj; |
36839 | int arg1 = (int) 1 ; | |
36840 | int arg2 = (int) 0 ; | |
36841 | int arg3 = (int) 0 ; | |
36842 | int arg4 = (int) 0 ; | |
36843 | wxGridSizer *result; | |
994141e6 RD |
36844 | PyObject * obj0 = 0 ; |
36845 | PyObject * obj1 = 0 ; | |
36846 | PyObject * obj2 = 0 ; | |
36847 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
36848 | char *kwnames[] = { |
36849 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36850 | }; | |
36851 | ||
994141e6 RD |
36852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
36853 | if (obj0) { | |
c32bde28 | 36854 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 36855 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
36856 | } |
36857 | if (obj1) { | |
c32bde28 | 36858 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36859 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
36860 | } |
36861 | if (obj2) { | |
c32bde28 | 36862 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 36863 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
36864 | } |
36865 | if (obj3) { | |
c32bde28 | 36866 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 36867 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 36868 | } |
d14a1e28 RD |
36869 | { |
36870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36871 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36872 | ||
36873 | wxPyEndAllowThreads(__tstate); | |
36874 | if (PyErr_Occurred()) SWIG_fail; | |
36875 | } | |
15afbcd0 | 36876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
36877 | return resultobj; |
36878 | fail: | |
36879 | return NULL; | |
36880 | } | |
36881 | ||
36882 | ||
c32bde28 | 36883 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36884 | PyObject *resultobj; |
36885 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36886 | int arg2 ; | |
36887 | PyObject * obj0 = 0 ; | |
994141e6 | 36888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36889 | char *kwnames[] = { |
36890 | (char *) "self",(char *) "cols", NULL | |
36891 | }; | |
36892 | ||
994141e6 | 36893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36896 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36897 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36898 | { |
36899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36900 | (arg1)->SetCols(arg2); | |
36901 | ||
36902 | wxPyEndAllowThreads(__tstate); | |
36903 | if (PyErr_Occurred()) SWIG_fail; | |
36904 | } | |
36905 | Py_INCREF(Py_None); resultobj = Py_None; | |
36906 | return resultobj; | |
36907 | fail: | |
36908 | return NULL; | |
36909 | } | |
36910 | ||
36911 | ||
c32bde28 | 36912 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36913 | PyObject *resultobj; |
36914 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36915 | int arg2 ; | |
36916 | PyObject * obj0 = 0 ; | |
994141e6 | 36917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36918 | char *kwnames[] = { |
36919 | (char *) "self",(char *) "rows", NULL | |
36920 | }; | |
36921 | ||
994141e6 | 36922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36925 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36926 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36927 | { |
36928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36929 | (arg1)->SetRows(arg2); | |
36930 | ||
36931 | wxPyEndAllowThreads(__tstate); | |
36932 | if (PyErr_Occurred()) SWIG_fail; | |
36933 | } | |
36934 | Py_INCREF(Py_None); resultobj = Py_None; | |
36935 | return resultobj; | |
36936 | fail: | |
36937 | return NULL; | |
36938 | } | |
36939 | ||
36940 | ||
c32bde28 | 36941 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36942 | PyObject *resultobj; |
36943 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36944 | int arg2 ; | |
36945 | PyObject * obj0 = 0 ; | |
994141e6 | 36946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36947 | char *kwnames[] = { |
36948 | (char *) "self",(char *) "gap", NULL | |
36949 | }; | |
36950 | ||
994141e6 | 36951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36954 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36955 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36956 | { |
36957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36958 | (arg1)->SetVGap(arg2); | |
36959 | ||
36960 | wxPyEndAllowThreads(__tstate); | |
36961 | if (PyErr_Occurred()) SWIG_fail; | |
36962 | } | |
36963 | Py_INCREF(Py_None); resultobj = Py_None; | |
36964 | return resultobj; | |
36965 | fail: | |
36966 | return NULL; | |
36967 | } | |
36968 | ||
36969 | ||
c32bde28 | 36970 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36971 | PyObject *resultobj; |
36972 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36973 | int arg2 ; | |
36974 | PyObject * obj0 = 0 ; | |
994141e6 | 36975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36976 | char *kwnames[] = { |
36977 | (char *) "self",(char *) "gap", NULL | |
36978 | }; | |
36979 | ||
994141e6 | 36980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36983 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 36984 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
36985 | { |
36986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36987 | (arg1)->SetHGap(arg2); | |
36988 | ||
36989 | wxPyEndAllowThreads(__tstate); | |
36990 | if (PyErr_Occurred()) SWIG_fail; | |
36991 | } | |
36992 | Py_INCREF(Py_None); resultobj = Py_None; | |
36993 | return resultobj; | |
36994 | fail: | |
36995 | return NULL; | |
36996 | } | |
36997 | ||
36998 | ||
c32bde28 | 36999 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37000 | PyObject *resultobj; |
37001 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37002 | int result; | |
37003 | PyObject * obj0 = 0 ; | |
37004 | char *kwnames[] = { | |
37005 | (char *) "self", NULL | |
37006 | }; | |
37007 | ||
37008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
37010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37011 | { |
37012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37013 | result = (int)(arg1)->GetCols(); | |
37014 | ||
37015 | wxPyEndAllowThreads(__tstate); | |
37016 | if (PyErr_Occurred()) SWIG_fail; | |
37017 | } | |
c32bde28 | 37018 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37019 | return resultobj; |
37020 | fail: | |
37021 | return NULL; | |
37022 | } | |
37023 | ||
37024 | ||
c32bde28 | 37025 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37026 | PyObject *resultobj; |
37027 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37028 | int result; | |
37029 | PyObject * obj0 = 0 ; | |
37030 | char *kwnames[] = { | |
37031 | (char *) "self", NULL | |
37032 | }; | |
37033 | ||
37034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
37036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37037 | { |
37038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37039 | result = (int)(arg1)->GetRows(); | |
37040 | ||
37041 | wxPyEndAllowThreads(__tstate); | |
37042 | if (PyErr_Occurred()) SWIG_fail; | |
37043 | } | |
c32bde28 | 37044 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37045 | return resultobj; |
37046 | fail: | |
37047 | return NULL; | |
37048 | } | |
37049 | ||
37050 | ||
c32bde28 | 37051 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37052 | PyObject *resultobj; |
37053 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37054 | int result; | |
37055 | PyObject * obj0 = 0 ; | |
37056 | char *kwnames[] = { | |
37057 | (char *) "self", NULL | |
37058 | }; | |
37059 | ||
37060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
37062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37063 | { |
37064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37065 | result = (int)(arg1)->GetVGap(); | |
37066 | ||
37067 | wxPyEndAllowThreads(__tstate); | |
37068 | if (PyErr_Occurred()) SWIG_fail; | |
37069 | } | |
c32bde28 | 37070 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37071 | return resultobj; |
37072 | fail: | |
37073 | return NULL; | |
37074 | } | |
37075 | ||
37076 | ||
c32bde28 | 37077 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37078 | PyObject *resultobj; |
37079 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37080 | int result; | |
37081 | PyObject * obj0 = 0 ; | |
37082 | char *kwnames[] = { | |
37083 | (char *) "self", NULL | |
37084 | }; | |
37085 | ||
37086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
37088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37089 | { |
37090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37091 | result = (int)(arg1)->GetHGap(); | |
37092 | ||
37093 | wxPyEndAllowThreads(__tstate); | |
37094 | if (PyErr_Occurred()) SWIG_fail; | |
37095 | } | |
c32bde28 | 37096 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37097 | return resultobj; |
37098 | fail: | |
37099 | return NULL; | |
37100 | } | |
37101 | ||
37102 | ||
c32bde28 | 37103 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37104 | PyObject *obj; |
37105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37106 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37107 | Py_INCREF(obj); | |
37108 | return Py_BuildValue((char *)""); | |
37109 | } | |
c32bde28 | 37110 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37111 | PyObject *resultobj; |
37112 | int arg1 = (int) 1 ; | |
37113 | int arg2 = (int) 0 ; | |
37114 | int arg3 = (int) 0 ; | |
37115 | int arg4 = (int) 0 ; | |
37116 | wxFlexGridSizer *result; | |
994141e6 RD |
37117 | PyObject * obj0 = 0 ; |
37118 | PyObject * obj1 = 0 ; | |
37119 | PyObject * obj2 = 0 ; | |
37120 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
37121 | char *kwnames[] = { |
37122 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37123 | }; | |
37124 | ||
994141e6 RD |
37125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
37126 | if (obj0) { | |
c32bde28 | 37127 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 37128 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37129 | } |
37130 | if (obj1) { | |
c32bde28 | 37131 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37132 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37133 | } |
37134 | if (obj2) { | |
c32bde28 | 37135 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 37136 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37137 | } |
37138 | if (obj3) { | |
c32bde28 | 37139 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 37140 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37141 | } |
d14a1e28 RD |
37142 | { |
37143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37144 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37145 | ||
37146 | wxPyEndAllowThreads(__tstate); | |
37147 | if (PyErr_Occurred()) SWIG_fail; | |
37148 | } | |
15afbcd0 | 37149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
37150 | return resultobj; |
37151 | fail: | |
37152 | return NULL; | |
37153 | } | |
37154 | ||
37155 | ||
c32bde28 | 37156 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37157 | PyObject *resultobj; |
37158 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37159 | size_t arg2 ; | |
37160 | int arg3 = (int) 0 ; | |
37161 | PyObject * obj0 = 0 ; | |
37162 | PyObject * obj1 = 0 ; | |
994141e6 | 37163 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37164 | char *kwnames[] = { |
37165 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37166 | }; | |
37167 | ||
994141e6 | 37168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37171 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 37172 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37173 | if (obj2) { |
c32bde28 | 37174 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 37175 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37176 | } |
d14a1e28 RD |
37177 | { |
37178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37179 | (arg1)->AddGrowableRow(arg2,arg3); | |
37180 | ||
37181 | wxPyEndAllowThreads(__tstate); | |
37182 | if (PyErr_Occurred()) SWIG_fail; | |
37183 | } | |
37184 | Py_INCREF(Py_None); resultobj = Py_None; | |
37185 | return resultobj; | |
37186 | fail: | |
37187 | return NULL; | |
37188 | } | |
37189 | ||
37190 | ||
c32bde28 | 37191 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37192 | PyObject *resultobj; |
37193 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37194 | size_t arg2 ; | |
37195 | PyObject * obj0 = 0 ; | |
37196 | PyObject * obj1 = 0 ; | |
37197 | char *kwnames[] = { | |
37198 | (char *) "self",(char *) "idx", NULL | |
37199 | }; | |
37200 | ||
37201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37204 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 37205 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37206 | { |
37207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37208 | (arg1)->RemoveGrowableRow(arg2); | |
37209 | ||
37210 | wxPyEndAllowThreads(__tstate); | |
37211 | if (PyErr_Occurred()) SWIG_fail; | |
37212 | } | |
37213 | Py_INCREF(Py_None); resultobj = Py_None; | |
37214 | return resultobj; | |
37215 | fail: | |
37216 | return NULL; | |
37217 | } | |
37218 | ||
37219 | ||
c32bde28 | 37220 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37221 | PyObject *resultobj; |
37222 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37223 | size_t arg2 ; | |
37224 | int arg3 = (int) 0 ; | |
37225 | PyObject * obj0 = 0 ; | |
37226 | PyObject * obj1 = 0 ; | |
994141e6 | 37227 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37228 | char *kwnames[] = { |
37229 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37230 | }; | |
37231 | ||
994141e6 | 37232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37235 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 37236 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37237 | if (obj2) { |
c32bde28 | 37238 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 37239 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37240 | } |
d14a1e28 RD |
37241 | { |
37242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37243 | (arg1)->AddGrowableCol(arg2,arg3); | |
37244 | ||
37245 | wxPyEndAllowThreads(__tstate); | |
37246 | if (PyErr_Occurred()) SWIG_fail; | |
37247 | } | |
37248 | Py_INCREF(Py_None); resultobj = Py_None; | |
37249 | return resultobj; | |
37250 | fail: | |
37251 | return NULL; | |
37252 | } | |
37253 | ||
37254 | ||
c32bde28 | 37255 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37256 | PyObject *resultobj; |
37257 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37258 | size_t arg2 ; | |
37259 | PyObject * obj0 = 0 ; | |
37260 | PyObject * obj1 = 0 ; | |
37261 | char *kwnames[] = { | |
37262 | (char *) "self",(char *) "idx", NULL | |
37263 | }; | |
37264 | ||
37265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37268 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 37269 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37270 | { |
37271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37272 | (arg1)->RemoveGrowableCol(arg2); | |
37273 | ||
37274 | wxPyEndAllowThreads(__tstate); | |
37275 | if (PyErr_Occurred()) SWIG_fail; | |
37276 | } | |
37277 | Py_INCREF(Py_None); resultobj = Py_None; | |
37278 | return resultobj; | |
37279 | fail: | |
37280 | return NULL; | |
37281 | } | |
37282 | ||
37283 | ||
c32bde28 | 37284 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37285 | PyObject *resultobj; |
37286 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37287 | int arg2 ; | |
37288 | PyObject * obj0 = 0 ; | |
994141e6 | 37289 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37290 | char *kwnames[] = { |
37291 | (char *) "self",(char *) "direction", NULL | |
37292 | }; | |
37293 | ||
994141e6 | 37294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37297 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37298 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37299 | { |
37300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37301 | (arg1)->SetFlexibleDirection(arg2); | |
37302 | ||
37303 | wxPyEndAllowThreads(__tstate); | |
37304 | if (PyErr_Occurred()) SWIG_fail; | |
37305 | } | |
37306 | Py_INCREF(Py_None); resultobj = Py_None; | |
37307 | return resultobj; | |
37308 | fail: | |
37309 | return NULL; | |
37310 | } | |
37311 | ||
37312 | ||
c32bde28 | 37313 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37314 | PyObject *resultobj; |
37315 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37316 | int result; | |
37317 | PyObject * obj0 = 0 ; | |
37318 | char *kwnames[] = { | |
37319 | (char *) "self", NULL | |
37320 | }; | |
37321 | ||
37322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37325 | { |
37326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37327 | result = (int)(arg1)->GetFlexibleDirection(); | |
37328 | ||
37329 | wxPyEndAllowThreads(__tstate); | |
37330 | if (PyErr_Occurred()) SWIG_fail; | |
37331 | } | |
c32bde28 | 37332 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37333 | return resultobj; |
37334 | fail: | |
37335 | return NULL; | |
37336 | } | |
37337 | ||
37338 | ||
c32bde28 | 37339 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37340 | PyObject *resultobj; |
37341 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37342 | int arg2 ; | |
37343 | PyObject * obj0 = 0 ; | |
994141e6 | 37344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37345 | char *kwnames[] = { |
37346 | (char *) "self",(char *) "mode", NULL | |
37347 | }; | |
37348 | ||
994141e6 | 37349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37352 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37353 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37354 | { |
37355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37356 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37357 | ||
37358 | wxPyEndAllowThreads(__tstate); | |
37359 | if (PyErr_Occurred()) SWIG_fail; | |
37360 | } | |
37361 | Py_INCREF(Py_None); resultobj = Py_None; | |
37362 | return resultobj; | |
37363 | fail: | |
37364 | return NULL; | |
37365 | } | |
37366 | ||
37367 | ||
c32bde28 | 37368 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37369 | PyObject *resultobj; |
37370 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37371 | int result; | |
37372 | PyObject * obj0 = 0 ; | |
37373 | char *kwnames[] = { | |
37374 | (char *) "self", NULL | |
37375 | }; | |
37376 | ||
37377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37380 | { |
37381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37382 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37383 | ||
37384 | wxPyEndAllowThreads(__tstate); | |
37385 | if (PyErr_Occurred()) SWIG_fail; | |
37386 | } | |
c32bde28 | 37387 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37388 | return resultobj; |
37389 | fail: | |
37390 | return NULL; | |
37391 | } | |
37392 | ||
37393 | ||
c32bde28 | 37394 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
37395 | PyObject *resultobj; |
37396 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37397 | wxArrayInt *result; | |
37398 | PyObject * obj0 = 0 ; | |
37399 | char *kwnames[] = { | |
37400 | (char *) "self", NULL | |
37401 | }; | |
37402 | ||
37403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
37406 | { |
37407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37408 | { | |
37409 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37410 | result = (wxArrayInt *) &_result_ref; | |
37411 | } | |
37412 | ||
37413 | wxPyEndAllowThreads(__tstate); | |
37414 | if (PyErr_Occurred()) SWIG_fail; | |
37415 | } | |
37416 | { | |
37417 | resultobj = PyList_New(0); | |
37418 | size_t idx; | |
37419 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37420 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37421 | PyList_Append(resultobj, val); | |
37422 | Py_DECREF(val); | |
37423 | } | |
37424 | } | |
37425 | return resultobj; | |
37426 | fail: | |
37427 | return NULL; | |
37428 | } | |
37429 | ||
37430 | ||
c32bde28 | 37431 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
37432 | PyObject *resultobj; |
37433 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37434 | wxArrayInt *result; | |
37435 | PyObject * obj0 = 0 ; | |
37436 | char *kwnames[] = { | |
37437 | (char *) "self", NULL | |
37438 | }; | |
37439 | ||
37440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
37442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
37443 | { |
37444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37445 | { | |
37446 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37447 | result = (wxArrayInt *) &_result_ref; | |
37448 | } | |
37449 | ||
37450 | wxPyEndAllowThreads(__tstate); | |
37451 | if (PyErr_Occurred()) SWIG_fail; | |
37452 | } | |
37453 | { | |
37454 | resultobj = PyList_New(0); | |
37455 | size_t idx; | |
37456 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37457 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37458 | PyList_Append(resultobj, val); | |
37459 | Py_DECREF(val); | |
37460 | } | |
37461 | } | |
37462 | return resultobj; | |
37463 | fail: | |
37464 | return NULL; | |
37465 | } | |
37466 | ||
37467 | ||
c32bde28 | 37468 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37469 | PyObject *obj; |
37470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37471 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37472 | Py_INCREF(obj); | |
37473 | return Py_BuildValue((char *)""); | |
37474 | } | |
c32bde28 | 37475 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37476 | PyObject *resultobj; |
37477 | int arg1 = (int) 0 ; | |
37478 | int arg2 = (int) 0 ; | |
37479 | wxGBPosition *result; | |
994141e6 RD |
37480 | PyObject * obj0 = 0 ; |
37481 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37482 | char *kwnames[] = { |
37483 | (char *) "row",(char *) "col", NULL | |
37484 | }; | |
37485 | ||
994141e6 RD |
37486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
37487 | if (obj0) { | |
c32bde28 | 37488 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 37489 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37490 | } |
37491 | if (obj1) { | |
c32bde28 | 37492 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37493 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37494 | } |
d14a1e28 RD |
37495 | { |
37496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37497 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37498 | ||
37499 | wxPyEndAllowThreads(__tstate); | |
37500 | if (PyErr_Occurred()) SWIG_fail; | |
37501 | } | |
15afbcd0 | 37502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37503 | return resultobj; |
37504 | fail: | |
37505 | return NULL; | |
37506 | } | |
37507 | ||
37508 | ||
c32bde28 | 37509 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37510 | PyObject *resultobj; |
37511 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37512 | int result; | |
37513 | PyObject * obj0 = 0 ; | |
37514 | char *kwnames[] = { | |
37515 | (char *) "self", NULL | |
37516 | }; | |
37517 | ||
37518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37521 | { |
37522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37523 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37524 | ||
37525 | wxPyEndAllowThreads(__tstate); | |
37526 | if (PyErr_Occurred()) SWIG_fail; | |
37527 | } | |
c32bde28 | 37528 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37529 | return resultobj; |
37530 | fail: | |
37531 | return NULL; | |
37532 | } | |
37533 | ||
37534 | ||
c32bde28 | 37535 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37536 | PyObject *resultobj; |
37537 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37538 | int result; | |
37539 | PyObject * obj0 = 0 ; | |
37540 | char *kwnames[] = { | |
37541 | (char *) "self", NULL | |
37542 | }; | |
37543 | ||
37544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37547 | { |
37548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37549 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37550 | ||
37551 | wxPyEndAllowThreads(__tstate); | |
37552 | if (PyErr_Occurred()) SWIG_fail; | |
37553 | } | |
c32bde28 | 37554 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37555 | return resultobj; |
37556 | fail: | |
37557 | return NULL; | |
37558 | } | |
37559 | ||
37560 | ||
c32bde28 | 37561 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37562 | PyObject *resultobj; |
37563 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37564 | int arg2 ; | |
37565 | PyObject * obj0 = 0 ; | |
994141e6 | 37566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37567 | char *kwnames[] = { |
37568 | (char *) "self",(char *) "row", NULL | |
37569 | }; | |
37570 | ||
994141e6 | 37571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37574 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37575 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37576 | { |
37577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37578 | (arg1)->SetRow(arg2); | |
37579 | ||
37580 | wxPyEndAllowThreads(__tstate); | |
37581 | if (PyErr_Occurred()) SWIG_fail; | |
37582 | } | |
37583 | Py_INCREF(Py_None); resultobj = Py_None; | |
37584 | return resultobj; | |
37585 | fail: | |
37586 | return NULL; | |
37587 | } | |
37588 | ||
37589 | ||
c32bde28 | 37590 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37591 | PyObject *resultobj; |
37592 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37593 | int arg2 ; | |
37594 | PyObject * obj0 = 0 ; | |
994141e6 | 37595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37596 | char *kwnames[] = { |
37597 | (char *) "self",(char *) "col", NULL | |
37598 | }; | |
37599 | ||
994141e6 | 37600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37603 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37604 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37605 | { |
37606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37607 | (arg1)->SetCol(arg2); | |
37608 | ||
37609 | wxPyEndAllowThreads(__tstate); | |
37610 | if (PyErr_Occurred()) SWIG_fail; | |
37611 | } | |
37612 | Py_INCREF(Py_None); resultobj = Py_None; | |
37613 | return resultobj; | |
37614 | fail: | |
37615 | return NULL; | |
37616 | } | |
37617 | ||
37618 | ||
c32bde28 | 37619 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37620 | PyObject *resultobj; |
37621 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 37622 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 37623 | bool result; |
4f89f6a3 | 37624 | wxGBPosition temp2 ; |
d14a1e28 RD |
37625 | PyObject * obj0 = 0 ; |
37626 | PyObject * obj1 = 0 ; | |
37627 | char *kwnames[] = { | |
22faec7d | 37628 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37629 | }; |
37630 | ||
37631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37634 | { |
37635 | arg2 = &temp2; | |
37636 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37637 | } | |
d14a1e28 RD |
37638 | { |
37639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37640 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
37641 | |
37642 | wxPyEndAllowThreads(__tstate); | |
37643 | if (PyErr_Occurred()) SWIG_fail; | |
37644 | } | |
4f89f6a3 RD |
37645 | { |
37646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37647 | } | |
d14a1e28 RD |
37648 | return resultobj; |
37649 | fail: | |
37650 | return NULL; | |
37651 | } | |
37652 | ||
37653 | ||
c32bde28 | 37654 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37655 | PyObject *resultobj; |
37656 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 37657 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 37658 | bool result; |
4f89f6a3 | 37659 | wxGBPosition temp2 ; |
d14a1e28 RD |
37660 | PyObject * obj0 = 0 ; |
37661 | PyObject * obj1 = 0 ; | |
37662 | char *kwnames[] = { | |
22faec7d | 37663 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37664 | }; |
37665 | ||
37666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37669 | { |
37670 | arg2 = &temp2; | |
37671 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37672 | } | |
d14a1e28 RD |
37673 | { |
37674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37675 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
37676 | |
37677 | wxPyEndAllowThreads(__tstate); | |
37678 | if (PyErr_Occurred()) SWIG_fail; | |
37679 | } | |
4f89f6a3 RD |
37680 | { |
37681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37682 | } | |
d14a1e28 RD |
37683 | return resultobj; |
37684 | fail: | |
37685 | return NULL; | |
37686 | } | |
37687 | ||
37688 | ||
c32bde28 | 37689 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
37690 | PyObject *resultobj; |
37691 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37692 | int arg2 = (int) 0 ; | |
37693 | int arg3 = (int) 0 ; | |
37694 | PyObject * obj0 = 0 ; | |
994141e6 RD |
37695 | PyObject * obj1 = 0 ; |
37696 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
37697 | char *kwnames[] = { |
37698 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37699 | }; | |
37700 | ||
994141e6 | 37701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 37704 | if (obj1) { |
c32bde28 | 37705 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37706 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37707 | } |
37708 | if (obj2) { | |
c32bde28 | 37709 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 37710 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37711 | } |
e811c8ce RD |
37712 | { |
37713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37714 | wxGBPosition_Set(arg1,arg2,arg3); | |
37715 | ||
37716 | wxPyEndAllowThreads(__tstate); | |
37717 | if (PyErr_Occurred()) SWIG_fail; | |
37718 | } | |
37719 | Py_INCREF(Py_None); resultobj = Py_None; | |
37720 | return resultobj; | |
37721 | fail: | |
37722 | return NULL; | |
37723 | } | |
37724 | ||
37725 | ||
c32bde28 | 37726 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37727 | PyObject *resultobj; |
37728 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37729 | PyObject *result; | |
37730 | PyObject * obj0 = 0 ; | |
37731 | char *kwnames[] = { | |
37732 | (char *) "self", NULL | |
37733 | }; | |
37734 | ||
e811c8ce | 37735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
37736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
37737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37738 | { |
37739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 37740 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
37741 | |
37742 | wxPyEndAllowThreads(__tstate); | |
37743 | if (PyErr_Occurred()) SWIG_fail; | |
37744 | } | |
37745 | resultobj = result; | |
37746 | return resultobj; | |
37747 | fail: | |
37748 | return NULL; | |
37749 | } | |
37750 | ||
37751 | ||
c32bde28 | 37752 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37753 | PyObject *obj; |
37754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37755 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37756 | Py_INCREF(obj); | |
37757 | return Py_BuildValue((char *)""); | |
37758 | } | |
c32bde28 | 37759 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37760 | PyObject *resultobj; |
37761 | int arg1 = (int) 1 ; | |
37762 | int arg2 = (int) 1 ; | |
37763 | wxGBSpan *result; | |
994141e6 RD |
37764 | PyObject * obj0 = 0 ; |
37765 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37766 | char *kwnames[] = { |
37767 | (char *) "rowspan",(char *) "colspan", NULL | |
37768 | }; | |
37769 | ||
994141e6 RD |
37770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
37771 | if (obj0) { | |
c32bde28 | 37772 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 37773 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37774 | } |
37775 | if (obj1) { | |
c32bde28 | 37776 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37777 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37778 | } |
d14a1e28 RD |
37779 | { |
37780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37781 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37782 | ||
37783 | wxPyEndAllowThreads(__tstate); | |
37784 | if (PyErr_Occurred()) SWIG_fail; | |
37785 | } | |
15afbcd0 | 37786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37787 | return resultobj; |
37788 | fail: | |
37789 | return NULL; | |
37790 | } | |
37791 | ||
37792 | ||
c32bde28 | 37793 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37794 | PyObject *resultobj; |
37795 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37796 | int result; | |
37797 | PyObject * obj0 = 0 ; | |
37798 | char *kwnames[] = { | |
37799 | (char *) "self", NULL | |
37800 | }; | |
37801 | ||
37802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37805 | { |
37806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37807 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37808 | ||
37809 | wxPyEndAllowThreads(__tstate); | |
37810 | if (PyErr_Occurred()) SWIG_fail; | |
37811 | } | |
c32bde28 | 37812 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37813 | return resultobj; |
37814 | fail: | |
37815 | return NULL; | |
37816 | } | |
37817 | ||
37818 | ||
c32bde28 | 37819 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37820 | PyObject *resultobj; |
37821 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37822 | int result; | |
37823 | PyObject * obj0 = 0 ; | |
37824 | char *kwnames[] = { | |
37825 | (char *) "self", NULL | |
37826 | }; | |
37827 | ||
37828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37831 | { |
37832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37833 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37834 | ||
37835 | wxPyEndAllowThreads(__tstate); | |
37836 | if (PyErr_Occurred()) SWIG_fail; | |
37837 | } | |
c32bde28 | 37838 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
37839 | return resultobj; |
37840 | fail: | |
37841 | return NULL; | |
37842 | } | |
37843 | ||
37844 | ||
c32bde28 | 37845 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37846 | PyObject *resultobj; |
37847 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37848 | int arg2 ; | |
37849 | PyObject * obj0 = 0 ; | |
994141e6 | 37850 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37851 | char *kwnames[] = { |
37852 | (char *) "self",(char *) "rowspan", NULL | |
37853 | }; | |
37854 | ||
994141e6 | 37855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37858 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37859 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37860 | { |
37861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37862 | (arg1)->SetRowspan(arg2); | |
37863 | ||
37864 | wxPyEndAllowThreads(__tstate); | |
37865 | if (PyErr_Occurred()) SWIG_fail; | |
37866 | } | |
37867 | Py_INCREF(Py_None); resultobj = Py_None; | |
37868 | return resultobj; | |
37869 | fail: | |
37870 | return NULL; | |
37871 | } | |
37872 | ||
37873 | ||
c32bde28 | 37874 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37875 | PyObject *resultobj; |
37876 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37877 | int arg2 ; | |
37878 | PyObject * obj0 = 0 ; | |
994141e6 | 37879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37880 | char *kwnames[] = { |
37881 | (char *) "self",(char *) "colspan", NULL | |
37882 | }; | |
37883 | ||
994141e6 | 37884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37887 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37888 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37889 | { |
37890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37891 | (arg1)->SetColspan(arg2); | |
37892 | ||
37893 | wxPyEndAllowThreads(__tstate); | |
37894 | if (PyErr_Occurred()) SWIG_fail; | |
37895 | } | |
37896 | Py_INCREF(Py_None); resultobj = Py_None; | |
37897 | return resultobj; | |
37898 | fail: | |
37899 | return NULL; | |
37900 | } | |
37901 | ||
37902 | ||
c32bde28 | 37903 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37904 | PyObject *resultobj; |
37905 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37906 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37907 | bool result; |
4f89f6a3 | 37908 | wxGBSpan temp2 ; |
d14a1e28 RD |
37909 | PyObject * obj0 = 0 ; |
37910 | PyObject * obj1 = 0 ; | |
37911 | char *kwnames[] = { | |
22faec7d | 37912 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37913 | }; |
37914 | ||
37915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37918 | { |
37919 | arg2 = &temp2; | |
37920 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37921 | } | |
d14a1e28 RD |
37922 | { |
37923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37924 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37925 | |
37926 | wxPyEndAllowThreads(__tstate); | |
37927 | if (PyErr_Occurred()) SWIG_fail; | |
37928 | } | |
4f89f6a3 RD |
37929 | { |
37930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37931 | } | |
d14a1e28 RD |
37932 | return resultobj; |
37933 | fail: | |
37934 | return NULL; | |
37935 | } | |
37936 | ||
37937 | ||
c32bde28 | 37938 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37939 | PyObject *resultobj; |
37940 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37941 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37942 | bool result; |
4f89f6a3 | 37943 | wxGBSpan temp2 ; |
d14a1e28 RD |
37944 | PyObject * obj0 = 0 ; |
37945 | PyObject * obj1 = 0 ; | |
37946 | char *kwnames[] = { | |
22faec7d | 37947 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37948 | }; |
37949 | ||
37950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37953 | { |
37954 | arg2 = &temp2; | |
37955 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37956 | } | |
d14a1e28 RD |
37957 | { |
37958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37959 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37960 | |
37961 | wxPyEndAllowThreads(__tstate); | |
37962 | if (PyErr_Occurred()) SWIG_fail; | |
37963 | } | |
4f89f6a3 RD |
37964 | { |
37965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37966 | } | |
d14a1e28 RD |
37967 | return resultobj; |
37968 | fail: | |
37969 | return NULL; | |
37970 | } | |
37971 | ||
37972 | ||
c32bde28 | 37973 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
37974 | PyObject *resultobj; |
37975 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37976 | int arg2 = (int) 1 ; | |
37977 | int arg3 = (int) 1 ; | |
37978 | PyObject * obj0 = 0 ; | |
994141e6 RD |
37979 | PyObject * obj1 = 0 ; |
37980 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
37981 | char *kwnames[] = { |
37982 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37983 | }; | |
37984 | ||
994141e6 | 37985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 37988 | if (obj1) { |
c32bde28 | 37989 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 37990 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
37991 | } |
37992 | if (obj2) { | |
c32bde28 | 37993 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 37994 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 37995 | } |
e811c8ce RD |
37996 | { |
37997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37998 | wxGBSpan_Set(arg1,arg2,arg3); | |
37999 | ||
38000 | wxPyEndAllowThreads(__tstate); | |
38001 | if (PyErr_Occurred()) SWIG_fail; | |
38002 | } | |
38003 | Py_INCREF(Py_None); resultobj = Py_None; | |
38004 | return resultobj; | |
38005 | fail: | |
38006 | return NULL; | |
38007 | } | |
38008 | ||
38009 | ||
c32bde28 | 38010 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38011 | PyObject *resultobj; |
38012 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38013 | PyObject *result; | |
38014 | PyObject * obj0 = 0 ; | |
38015 | char *kwnames[] = { | |
38016 | (char *) "self", NULL | |
38017 | }; | |
38018 | ||
e811c8ce | 38019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
38020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
38021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38022 | { |
38023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 38024 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
38025 | |
38026 | wxPyEndAllowThreads(__tstate); | |
38027 | if (PyErr_Occurred()) SWIG_fail; | |
38028 | } | |
38029 | resultobj = result; | |
38030 | return resultobj; | |
38031 | fail: | |
38032 | return NULL; | |
38033 | } | |
38034 | ||
38035 | ||
c32bde28 | 38036 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38037 | PyObject *obj; |
38038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38039 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38040 | Py_INCREF(obj); | |
38041 | return Py_BuildValue((char *)""); | |
38042 | } | |
c32bde28 | 38043 | static int _wrap_DefaultSpan_set(PyObject *) { |
d14a1e28 RD |
38044 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38045 | return 1; | |
38046 | } | |
38047 | ||
38048 | ||
38049 | static PyObject *_wrap_DefaultSpan_get() { | |
38050 | PyObject *pyobj; | |
38051 | ||
15afbcd0 | 38052 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
38053 | return pyobj; |
38054 | } | |
38055 | ||
38056 | ||
c32bde28 | 38057 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38058 | PyObject *resultobj; |
38059 | wxGBSizerItem *result; | |
38060 | char *kwnames[] = { | |
38061 | NULL | |
38062 | }; | |
38063 | ||
38064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38065 | { | |
38066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38067 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38068 | ||
38069 | wxPyEndAllowThreads(__tstate); | |
38070 | if (PyErr_Occurred()) SWIG_fail; | |
38071 | } | |
15afbcd0 | 38072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
38073 | return resultobj; |
38074 | fail: | |
38075 | return NULL; | |
38076 | } | |
38077 | ||
38078 | ||
c32bde28 | 38079 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38080 | PyObject *resultobj; |
38081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38082 | wxGBPosition *arg2 = 0 ; | |
38083 | wxGBSpan *arg3 = 0 ; | |
38084 | int arg4 ; | |
38085 | int arg5 ; | |
248ed943 | 38086 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
38087 | wxGBSizerItem *result; |
38088 | wxGBPosition temp2 ; | |
38089 | wxGBSpan temp3 ; | |
38090 | PyObject * obj0 = 0 ; | |
38091 | PyObject * obj1 = 0 ; | |
38092 | PyObject * obj2 = 0 ; | |
994141e6 RD |
38093 | PyObject * obj3 = 0 ; |
38094 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
38095 | PyObject * obj5 = 0 ; |
38096 | char *kwnames[] = { | |
38097 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38098 | }; | |
38099 | ||
248ed943 | 38100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
38101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38103 | { |
38104 | arg2 = &temp2; | |
38105 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38106 | } | |
38107 | { | |
38108 | arg3 = &temp3; | |
38109 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38110 | } | |
c32bde28 | 38111 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 38112 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38113 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 38114 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38115 | if (obj5) { |
38116 | arg6 = obj5; | |
38117 | } | |
d14a1e28 RD |
38118 | { |
38119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38120 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
38121 | |
38122 | wxPyEndAllowThreads(__tstate); | |
38123 | if (PyErr_Occurred()) SWIG_fail; | |
38124 | } | |
15afbcd0 | 38125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
38126 | return resultobj; |
38127 | fail: | |
38128 | return NULL; | |
38129 | } | |
38130 | ||
38131 | ||
c32bde28 | 38132 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38133 | PyObject *resultobj; |
38134 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38135 | wxGBPosition *arg2 = 0 ; | |
38136 | wxGBSpan *arg3 = 0 ; | |
38137 | int arg4 ; | |
38138 | int arg5 ; | |
248ed943 | 38139 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
38140 | wxGBSizerItem *result; |
38141 | wxGBPosition temp2 ; | |
38142 | wxGBSpan temp3 ; | |
38143 | PyObject * obj0 = 0 ; | |
38144 | PyObject * obj1 = 0 ; | |
38145 | PyObject * obj2 = 0 ; | |
994141e6 RD |
38146 | PyObject * obj3 = 0 ; |
38147 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
38148 | PyObject * obj5 = 0 ; |
38149 | char *kwnames[] = { | |
38150 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38151 | }; | |
38152 | ||
248ed943 | 38153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
38154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38156 | { |
38157 | arg2 = &temp2; | |
38158 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38159 | } | |
38160 | { | |
38161 | arg3 = &temp3; | |
38162 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38163 | } | |
c32bde28 | 38164 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 38165 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38166 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 38167 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38168 | if (obj5) { |
38169 | arg6 = obj5; | |
38170 | } | |
d14a1e28 RD |
38171 | { |
38172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38173 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
38174 | |
38175 | wxPyEndAllowThreads(__tstate); | |
38176 | if (PyErr_Occurred()) SWIG_fail; | |
38177 | } | |
15afbcd0 | 38178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
38179 | return resultobj; |
38180 | fail: | |
38181 | return NULL; | |
38182 | } | |
38183 | ||
38184 | ||
c32bde28 | 38185 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38186 | PyObject *resultobj; |
38187 | int arg1 ; | |
38188 | int arg2 ; | |
38189 | wxGBPosition *arg3 = 0 ; | |
38190 | wxGBSpan *arg4 = 0 ; | |
38191 | int arg5 ; | |
38192 | int arg6 ; | |
248ed943 | 38193 | PyObject *arg7 = (PyObject *) NULL ; |
d14a1e28 RD |
38194 | wxGBSizerItem *result; |
38195 | wxGBPosition temp3 ; | |
38196 | wxGBSpan temp4 ; | |
994141e6 RD |
38197 | PyObject * obj0 = 0 ; |
38198 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
38199 | PyObject * obj2 = 0 ; |
38200 | PyObject * obj3 = 0 ; | |
994141e6 RD |
38201 | PyObject * obj4 = 0 ; |
38202 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38203 | PyObject * obj6 = 0 ; |
38204 | char *kwnames[] = { | |
38205 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38206 | }; | |
38207 | ||
248ed943 | 38208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 38209 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 38210 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38211 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 38212 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
38213 | { |
38214 | arg3 = &temp3; | |
38215 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38216 | } | |
38217 | { | |
38218 | arg4 = &temp4; | |
38219 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38220 | } | |
c32bde28 | 38221 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 38222 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38223 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 38224 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38225 | if (obj6) { |
38226 | arg7 = obj6; | |
38227 | } | |
d14a1e28 RD |
38228 | { |
38229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38230 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
38231 | |
38232 | wxPyEndAllowThreads(__tstate); | |
38233 | if (PyErr_Occurred()) SWIG_fail; | |
38234 | } | |
15afbcd0 | 38235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
38236 | return resultobj; |
38237 | fail: | |
38238 | return NULL; | |
38239 | } | |
38240 | ||
38241 | ||
c32bde28 | 38242 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38243 | PyObject *resultobj; |
38244 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38245 | wxGBPosition result; | |
38246 | PyObject * obj0 = 0 ; | |
38247 | char *kwnames[] = { | |
38248 | (char *) "self", NULL | |
38249 | }; | |
38250 | ||
38251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38254 | { |
38255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38256 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38257 | ||
38258 | wxPyEndAllowThreads(__tstate); | |
38259 | if (PyErr_Occurred()) SWIG_fail; | |
38260 | } | |
38261 | { | |
38262 | wxGBPosition * resultptr; | |
38263 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38264 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38265 | } |
38266 | return resultobj; | |
38267 | fail: | |
38268 | return NULL; | |
38269 | } | |
38270 | ||
38271 | ||
c32bde28 | 38272 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38273 | PyObject *resultobj; |
38274 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38275 | wxGBSpan result; | |
38276 | PyObject * obj0 = 0 ; | |
38277 | char *kwnames[] = { | |
38278 | (char *) "self", NULL | |
38279 | }; | |
38280 | ||
38281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38284 | { |
38285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38286 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38287 | ||
38288 | wxPyEndAllowThreads(__tstate); | |
38289 | if (PyErr_Occurred()) SWIG_fail; | |
38290 | } | |
38291 | { | |
38292 | wxGBSpan * resultptr; | |
38293 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38294 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38295 | } |
38296 | return resultobj; | |
38297 | fail: | |
38298 | return NULL; | |
38299 | } | |
38300 | ||
38301 | ||
c32bde28 | 38302 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38303 | PyObject *resultobj; |
38304 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38305 | wxGBPosition *arg2 = 0 ; | |
38306 | bool result; | |
38307 | wxGBPosition temp2 ; | |
38308 | PyObject * obj0 = 0 ; | |
38309 | PyObject * obj1 = 0 ; | |
38310 | char *kwnames[] = { | |
38311 | (char *) "self",(char *) "pos", NULL | |
38312 | }; | |
38313 | ||
38314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38317 | { |
38318 | arg2 = &temp2; | |
38319 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38320 | } | |
38321 | { | |
38322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38323 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38324 | ||
38325 | wxPyEndAllowThreads(__tstate); | |
38326 | if (PyErr_Occurred()) SWIG_fail; | |
38327 | } | |
4f89f6a3 RD |
38328 | { |
38329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38330 | } | |
d14a1e28 RD |
38331 | return resultobj; |
38332 | fail: | |
38333 | return NULL; | |
38334 | } | |
38335 | ||
38336 | ||
c32bde28 | 38337 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38338 | PyObject *resultobj; |
38339 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38340 | wxGBSpan *arg2 = 0 ; | |
38341 | bool result; | |
38342 | wxGBSpan temp2 ; | |
38343 | PyObject * obj0 = 0 ; | |
38344 | PyObject * obj1 = 0 ; | |
38345 | char *kwnames[] = { | |
38346 | (char *) "self",(char *) "span", NULL | |
38347 | }; | |
38348 | ||
38349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38352 | { |
38353 | arg2 = &temp2; | |
38354 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38355 | } | |
38356 | { | |
38357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38358 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38359 | ||
38360 | wxPyEndAllowThreads(__tstate); | |
38361 | if (PyErr_Occurred()) SWIG_fail; | |
38362 | } | |
4f89f6a3 RD |
38363 | { |
38364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38365 | } | |
d14a1e28 RD |
38366 | return resultobj; |
38367 | fail: | |
38368 | return NULL; | |
38369 | } | |
38370 | ||
38371 | ||
c32bde28 | 38372 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38373 | PyObject *resultobj; |
38374 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38375 | wxGBSizerItem *arg2 = 0 ; | |
38376 | bool result; | |
38377 | PyObject * obj0 = 0 ; | |
38378 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38379 | char *kwnames[] = { |
38380 | (char *) "self",(char *) "other", NULL | |
38381 | }; | |
d14a1e28 | 38382 | |
248ed943 | 38383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
38384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38388 | SWIG_fail; | |
d14a1e28 | 38389 | if (arg2 == NULL) { |
15afbcd0 RD |
38390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
38391 | SWIG_fail; | |
d14a1e28 RD |
38392 | } |
38393 | { | |
38394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38395 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38396 | ||
38397 | wxPyEndAllowThreads(__tstate); | |
38398 | if (PyErr_Occurred()) SWIG_fail; | |
38399 | } | |
4f89f6a3 RD |
38400 | { |
38401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38402 | } | |
d14a1e28 RD |
38403 | return resultobj; |
38404 | fail: | |
38405 | return NULL; | |
38406 | } | |
38407 | ||
38408 | ||
c32bde28 | 38409 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38410 | PyObject *resultobj; |
38411 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38412 | wxGBPosition *arg2 = 0 ; | |
38413 | wxGBSpan *arg3 = 0 ; | |
38414 | bool result; | |
38415 | wxGBPosition temp2 ; | |
38416 | wxGBSpan temp3 ; | |
38417 | PyObject * obj0 = 0 ; | |
38418 | PyObject * obj1 = 0 ; | |
38419 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38420 | char *kwnames[] = { |
38421 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38422 | }; | |
d14a1e28 | 38423 | |
248ed943 | 38424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38427 | { |
38428 | arg2 = &temp2; | |
38429 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38430 | } | |
38431 | { | |
38432 | arg3 = &temp3; | |
38433 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38434 | } | |
38435 | { | |
38436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38437 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38438 | ||
38439 | wxPyEndAllowThreads(__tstate); | |
38440 | if (PyErr_Occurred()) SWIG_fail; | |
38441 | } | |
4f89f6a3 RD |
38442 | { |
38443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38444 | } | |
d14a1e28 RD |
38445 | return resultobj; |
38446 | fail: | |
38447 | return NULL; | |
38448 | } | |
38449 | ||
38450 | ||
c32bde28 | 38451 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38452 | PyObject *resultobj; |
38453 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 38454 | wxGBPosition result; |
d14a1e28 | 38455 | PyObject * obj0 = 0 ; |
d14a1e28 | 38456 | char *kwnames[] = { |
248ed943 | 38457 | (char *) "self", NULL |
d14a1e28 RD |
38458 | }; |
38459 | ||
248ed943 | 38460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
38461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38463 | { |
38464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38465 | result = wxGBSizerItem_GetEndPos(arg1); |
d14a1e28 RD |
38466 | |
38467 | wxPyEndAllowThreads(__tstate); | |
38468 | if (PyErr_Occurred()) SWIG_fail; | |
38469 | } | |
248ed943 RD |
38470 | { |
38471 | wxGBPosition * resultptr; | |
38472 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38474 | } | |
d14a1e28 RD |
38475 | return resultobj; |
38476 | fail: | |
38477 | return NULL; | |
38478 | } | |
38479 | ||
38480 | ||
c32bde28 | 38481 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38482 | PyObject *resultobj; |
38483 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38484 | wxGridBagSizer *result; | |
38485 | PyObject * obj0 = 0 ; | |
38486 | char *kwnames[] = { | |
38487 | (char *) "self", NULL | |
38488 | }; | |
38489 | ||
38490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38493 | { |
38494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38495 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38496 | ||
38497 | wxPyEndAllowThreads(__tstate); | |
38498 | if (PyErr_Occurred()) SWIG_fail; | |
38499 | } | |
15afbcd0 | 38500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
38501 | return resultobj; |
38502 | fail: | |
38503 | return NULL; | |
38504 | } | |
38505 | ||
38506 | ||
c32bde28 | 38507 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38508 | PyObject *resultobj; |
38509 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38510 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38511 | PyObject * obj0 = 0 ; | |
38512 | PyObject * obj1 = 0 ; | |
38513 | char *kwnames[] = { | |
38514 | (char *) "self",(char *) "sizer", NULL | |
38515 | }; | |
38516 | ||
38517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38522 | { |
38523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38524 | (arg1)->SetGBSizer(arg2); | |
38525 | ||
38526 | wxPyEndAllowThreads(__tstate); | |
38527 | if (PyErr_Occurred()) SWIG_fail; | |
38528 | } | |
38529 | Py_INCREF(Py_None); resultobj = Py_None; | |
38530 | return resultobj; | |
38531 | fail: | |
38532 | return NULL; | |
38533 | } | |
38534 | ||
38535 | ||
c32bde28 | 38536 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38537 | PyObject *obj; |
38538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38539 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38540 | Py_INCREF(obj); | |
38541 | return Py_BuildValue((char *)""); | |
38542 | } | |
c32bde28 | 38543 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38544 | PyObject *resultobj; |
38545 | int arg1 = (int) 0 ; | |
38546 | int arg2 = (int) 0 ; | |
38547 | wxGridBagSizer *result; | |
994141e6 RD |
38548 | PyObject * obj0 = 0 ; |
38549 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
38550 | char *kwnames[] = { |
38551 | (char *) "vgap",(char *) "hgap", NULL | |
38552 | }; | |
38553 | ||
994141e6 RD |
38554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
38555 | if (obj0) { | |
c32bde28 | 38556 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 | 38557 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
38558 | } |
38559 | if (obj1) { | |
c32bde28 | 38560 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 38561 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 38562 | } |
d14a1e28 RD |
38563 | { |
38564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38565 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38566 | ||
38567 | wxPyEndAllowThreads(__tstate); | |
38568 | if (PyErr_Occurred()) SWIG_fail; | |
38569 | } | |
15afbcd0 | 38570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
38571 | return resultobj; |
38572 | fail: | |
38573 | return NULL; | |
38574 | } | |
38575 | ||
38576 | ||
c32bde28 | 38577 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38578 | PyObject *resultobj; |
38579 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38580 | PyObject *arg2 = (PyObject *) 0 ; | |
38581 | wxGBPosition *arg3 = 0 ; | |
38582 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38583 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38584 | int arg5 = (int) 0 ; | |
38585 | int arg6 = (int) 0 ; | |
38586 | PyObject *arg7 = (PyObject *) NULL ; | |
d3b6e4ff | 38587 | wxGBSizerItem *result; |
d14a1e28 RD |
38588 | wxGBPosition temp3 ; |
38589 | wxGBSpan temp4 ; | |
38590 | PyObject * obj0 = 0 ; | |
38591 | PyObject * obj1 = 0 ; | |
38592 | PyObject * obj2 = 0 ; | |
38593 | PyObject * obj3 = 0 ; | |
994141e6 RD |
38594 | PyObject * obj4 = 0 ; |
38595 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38596 | PyObject * obj6 = 0 ; |
38597 | char *kwnames[] = { | |
38598 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38599 | }; | |
38600 | ||
994141e6 | 38601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
38602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38604 | arg2 = obj1; |
38605 | { | |
38606 | arg3 = &temp3; | |
38607 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38608 | } | |
38609 | if (obj3) { | |
38610 | { | |
38611 | arg4 = &temp4; | |
38612 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38613 | } | |
38614 | } | |
994141e6 | 38615 | if (obj4) { |
c32bde28 | 38616 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 38617 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
38618 | } |
38619 | if (obj5) { | |
c32bde28 | 38620 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 38621 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 38622 | } |
d14a1e28 RD |
38623 | if (obj6) { |
38624 | arg7 = obj6; | |
38625 | } | |
38626 | { | |
38627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 38628 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
38629 | |
38630 | wxPyEndAllowThreads(__tstate); | |
38631 | if (PyErr_Occurred()) SWIG_fail; | |
38632 | } | |
d3b6e4ff | 38633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38634 | return resultobj; |
38635 | fail: | |
38636 | return NULL; | |
38637 | } | |
38638 | ||
38639 | ||
c32bde28 | 38640 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38641 | PyObject *resultobj; |
38642 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38643 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
d3b6e4ff | 38644 | wxGBSizerItem *result; |
d14a1e28 RD |
38645 | PyObject * obj0 = 0 ; |
38646 | PyObject * obj1 = 0 ; | |
38647 | char *kwnames[] = { | |
38648 | (char *) "self",(char *) "item", NULL | |
38649 | }; | |
38650 | ||
38651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38656 | { |
38657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 38658 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d14a1e28 RD |
38659 | |
38660 | wxPyEndAllowThreads(__tstate); | |
38661 | if (PyErr_Occurred()) SWIG_fail; | |
38662 | } | |
d3b6e4ff | 38663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38664 | return resultobj; |
38665 | fail: | |
38666 | return NULL; | |
38667 | } | |
38668 | ||
38669 | ||
84f85550 RD |
38670 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
38671 | PyObject *resultobj; | |
38672 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38673 | int arg2 ; | |
38674 | int arg3 ; | |
38675 | wxSize result; | |
38676 | PyObject * obj0 = 0 ; | |
38677 | PyObject * obj1 = 0 ; | |
38678 | PyObject * obj2 = 0 ; | |
38679 | char *kwnames[] = { | |
38680 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38681 | }; | |
38682 | ||
38683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38686 | arg2 = (int)SWIG_As_int(obj1); | |
38687 | if (PyErr_Occurred()) SWIG_fail; | |
38688 | arg3 = (int)SWIG_As_int(obj2); | |
38689 | if (PyErr_Occurred()) SWIG_fail; | |
38690 | { | |
38691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38692 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
38693 | ||
38694 | wxPyEndAllowThreads(__tstate); | |
38695 | if (PyErr_Occurred()) SWIG_fail; | |
38696 | } | |
38697 | { | |
38698 | wxSize * resultptr; | |
38699 | resultptr = new wxSize((wxSize &) result); | |
38700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38701 | } | |
38702 | return resultobj; | |
38703 | fail: | |
38704 | return NULL; | |
38705 | } | |
38706 | ||
38707 | ||
c32bde28 | 38708 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38709 | PyObject *resultobj; |
38710 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38711 | wxSize result; | |
38712 | PyObject * obj0 = 0 ; | |
38713 | char *kwnames[] = { | |
38714 | (char *) "self", NULL | |
38715 | }; | |
38716 | ||
38717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38720 | { |
38721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38722 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38723 | ||
38724 | wxPyEndAllowThreads(__tstate); | |
38725 | if (PyErr_Occurred()) SWIG_fail; | |
38726 | } | |
38727 | { | |
38728 | wxSize * resultptr; | |
38729 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 38730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38731 | } |
38732 | return resultobj; | |
38733 | fail: | |
38734 | return NULL; | |
38735 | } | |
38736 | ||
38737 | ||
c32bde28 | 38738 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38739 | PyObject *resultobj; |
38740 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38741 | wxSize *arg2 = 0 ; | |
38742 | wxSize temp2 ; | |
38743 | PyObject * obj0 = 0 ; | |
38744 | PyObject * obj1 = 0 ; | |
38745 | char *kwnames[] = { | |
38746 | (char *) "self",(char *) "sz", NULL | |
38747 | }; | |
38748 | ||
38749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38752 | { |
38753 | arg2 = &temp2; | |
38754 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38755 | } | |
38756 | { | |
38757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38758 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38759 | ||
38760 | wxPyEndAllowThreads(__tstate); | |
38761 | if (PyErr_Occurred()) SWIG_fail; | |
38762 | } | |
38763 | Py_INCREF(Py_None); resultobj = Py_None; | |
38764 | return resultobj; | |
38765 | fail: | |
38766 | return NULL; | |
38767 | } | |
38768 | ||
38769 | ||
c32bde28 | 38770 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
38771 | PyObject *resultobj; |
38772 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38773 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38774 | wxGBPosition result; | |
38775 | PyObject * obj0 = 0 ; | |
38776 | PyObject * obj1 = 0 ; | |
38777 | ||
38778 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38783 | { |
38784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38785 | result = (arg1)->GetItemPosition(arg2); | |
38786 | ||
38787 | wxPyEndAllowThreads(__tstate); | |
38788 | if (PyErr_Occurred()) SWIG_fail; | |
38789 | } | |
38790 | { | |
38791 | wxGBPosition * resultptr; | |
38792 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38793 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38794 | } |
38795 | return resultobj; | |
38796 | fail: | |
38797 | return NULL; | |
38798 | } | |
38799 | ||
38800 | ||
c32bde28 | 38801 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
38802 | PyObject *resultobj; |
38803 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38804 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38805 | wxGBPosition result; | |
38806 | PyObject * obj0 = 0 ; | |
38807 | PyObject * obj1 = 0 ; | |
38808 | ||
38809 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38814 | { |
38815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38816 | result = (arg1)->GetItemPosition(arg2); | |
38817 | ||
38818 | wxPyEndAllowThreads(__tstate); | |
38819 | if (PyErr_Occurred()) SWIG_fail; | |
38820 | } | |
38821 | { | |
38822 | wxGBPosition * resultptr; | |
38823 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38825 | } |
38826 | return resultobj; | |
38827 | fail: | |
38828 | return NULL; | |
38829 | } | |
38830 | ||
38831 | ||
c32bde28 | 38832 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
38833 | PyObject *resultobj; |
38834 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38835 | size_t arg2 ; | |
38836 | wxGBPosition result; | |
38837 | PyObject * obj0 = 0 ; | |
38838 | PyObject * obj1 = 0 ; | |
38839 | ||
38840 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38843 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 38844 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
38845 | { |
38846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38847 | result = (arg1)->GetItemPosition(arg2); | |
38848 | ||
38849 | wxPyEndAllowThreads(__tstate); | |
38850 | if (PyErr_Occurred()) SWIG_fail; | |
38851 | } | |
38852 | { | |
38853 | wxGBPosition * resultptr; | |
38854 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38856 | } |
38857 | return resultobj; | |
38858 | fail: | |
38859 | return NULL; | |
38860 | } | |
38861 | ||
38862 | ||
38863 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38864 | int argc; | |
38865 | PyObject *argv[3]; | |
38866 | int ii; | |
38867 | ||
38868 | argc = PyObject_Length(args); | |
38869 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38870 | argv[ii] = PyTuple_GetItem(args,ii); | |
38871 | } | |
38872 | if (argc == 2) { | |
38873 | int _v; | |
38874 | { | |
38875 | void *ptr; | |
15afbcd0 | 38876 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38877 | _v = 0; |
38878 | PyErr_Clear(); | |
38879 | } else { | |
38880 | _v = 1; | |
38881 | } | |
38882 | } | |
38883 | if (_v) { | |
38884 | { | |
38885 | void *ptr; | |
15afbcd0 | 38886 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38887 | _v = 0; |
38888 | PyErr_Clear(); | |
38889 | } else { | |
38890 | _v = 1; | |
38891 | } | |
38892 | } | |
38893 | if (_v) { | |
38894 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38895 | } | |
38896 | } | |
38897 | } | |
38898 | if (argc == 2) { | |
38899 | int _v; | |
38900 | { | |
38901 | void *ptr; | |
15afbcd0 | 38902 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38903 | _v = 0; |
38904 | PyErr_Clear(); | |
38905 | } else { | |
38906 | _v = 1; | |
38907 | } | |
38908 | } | |
38909 | if (_v) { | |
38910 | { | |
38911 | void *ptr; | |
15afbcd0 | 38912 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38913 | _v = 0; |
38914 | PyErr_Clear(); | |
38915 | } else { | |
38916 | _v = 1; | |
38917 | } | |
38918 | } | |
38919 | if (_v) { | |
38920 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38921 | } | |
38922 | } | |
38923 | } | |
38924 | if (argc == 2) { | |
38925 | int _v; | |
38926 | { | |
38927 | void *ptr; | |
15afbcd0 | 38928 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38929 | _v = 0; |
38930 | PyErr_Clear(); | |
38931 | } else { | |
38932 | _v = 1; | |
38933 | } | |
38934 | } | |
38935 | if (_v) { | |
c32bde28 | 38936 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
38937 | if (_v) { |
38938 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38939 | } | |
38940 | } | |
38941 | } | |
38942 | ||
38943 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38944 | return NULL; | |
38945 | } | |
38946 | ||
38947 | ||
c32bde28 | 38948 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
38949 | PyObject *resultobj; |
38950 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38951 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38952 | wxGBPosition *arg3 = 0 ; | |
38953 | bool result; | |
38954 | wxGBPosition temp3 ; | |
38955 | PyObject * obj0 = 0 ; | |
38956 | PyObject * obj1 = 0 ; | |
38957 | PyObject * obj2 = 0 ; | |
38958 | ||
38959 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38964 | { |
38965 | arg3 = &temp3; | |
38966 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38967 | } | |
38968 | { | |
38969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38970 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38971 | ||
38972 | wxPyEndAllowThreads(__tstate); | |
38973 | if (PyErr_Occurred()) SWIG_fail; | |
38974 | } | |
4f89f6a3 RD |
38975 | { |
38976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38977 | } | |
d14a1e28 RD |
38978 | return resultobj; |
38979 | fail: | |
38980 | return NULL; | |
38981 | } | |
38982 | ||
38983 | ||
c32bde28 | 38984 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
38985 | PyObject *resultobj; |
38986 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38987 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38988 | wxGBPosition *arg3 = 0 ; | |
38989 | bool result; | |
38990 | wxGBPosition temp3 ; | |
38991 | PyObject * obj0 = 0 ; | |
38992 | PyObject * obj1 = 0 ; | |
38993 | PyObject * obj2 = 0 ; | |
38994 | ||
38995 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39000 | { |
39001 | arg3 = &temp3; | |
39002 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39003 | } | |
39004 | { | |
39005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39006 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39007 | ||
39008 | wxPyEndAllowThreads(__tstate); | |
39009 | if (PyErr_Occurred()) SWIG_fail; | |
39010 | } | |
4f89f6a3 RD |
39011 | { |
39012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39013 | } | |
d14a1e28 RD |
39014 | return resultobj; |
39015 | fail: | |
39016 | return NULL; | |
39017 | } | |
39018 | ||
39019 | ||
c32bde28 | 39020 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
39021 | PyObject *resultobj; |
39022 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39023 | size_t arg2 ; | |
39024 | wxGBPosition *arg3 = 0 ; | |
39025 | bool result; | |
39026 | wxGBPosition temp3 ; | |
39027 | PyObject * obj0 = 0 ; | |
39028 | PyObject * obj1 = 0 ; | |
39029 | PyObject * obj2 = 0 ; | |
39030 | ||
39031 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39034 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 39035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
39036 | { |
39037 | arg3 = &temp3; | |
39038 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39039 | } | |
39040 | { | |
39041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39042 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39043 | ||
39044 | wxPyEndAllowThreads(__tstate); | |
39045 | if (PyErr_Occurred()) SWIG_fail; | |
39046 | } | |
4f89f6a3 RD |
39047 | { |
39048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39049 | } | |
d14a1e28 RD |
39050 | return resultobj; |
39051 | fail: | |
39052 | return NULL; | |
39053 | } | |
39054 | ||
39055 | ||
39056 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39057 | int argc; | |
39058 | PyObject *argv[4]; | |
39059 | int ii; | |
39060 | ||
39061 | argc = PyObject_Length(args); | |
39062 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39063 | argv[ii] = PyTuple_GetItem(args,ii); | |
39064 | } | |
39065 | if (argc == 3) { | |
39066 | int _v; | |
39067 | { | |
39068 | void *ptr; | |
15afbcd0 | 39069 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39070 | _v = 0; |
39071 | PyErr_Clear(); | |
39072 | } else { | |
39073 | _v = 1; | |
39074 | } | |
39075 | } | |
39076 | if (_v) { | |
39077 | { | |
39078 | void *ptr; | |
15afbcd0 | 39079 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
39080 | _v = 0; |
39081 | PyErr_Clear(); | |
39082 | } else { | |
39083 | _v = 1; | |
39084 | } | |
39085 | } | |
39086 | if (_v) { | |
39087 | { | |
39088 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39089 | } | |
39090 | if (_v) { | |
39091 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39092 | } | |
39093 | } | |
39094 | } | |
39095 | } | |
39096 | if (argc == 3) { | |
39097 | int _v; | |
39098 | { | |
39099 | void *ptr; | |
15afbcd0 | 39100 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39101 | _v = 0; |
39102 | PyErr_Clear(); | |
39103 | } else { | |
39104 | _v = 1; | |
39105 | } | |
39106 | } | |
39107 | if (_v) { | |
39108 | { | |
39109 | void *ptr; | |
15afbcd0 | 39110 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
39111 | _v = 0; |
39112 | PyErr_Clear(); | |
39113 | } else { | |
39114 | _v = 1; | |
39115 | } | |
39116 | } | |
39117 | if (_v) { | |
39118 | { | |
39119 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39120 | } | |
39121 | if (_v) { | |
39122 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39123 | } | |
39124 | } | |
39125 | } | |
39126 | } | |
39127 | if (argc == 3) { | |
39128 | int _v; | |
39129 | { | |
39130 | void *ptr; | |
15afbcd0 | 39131 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39132 | _v = 0; |
39133 | PyErr_Clear(); | |
39134 | } else { | |
39135 | _v = 1; | |
39136 | } | |
39137 | } | |
39138 | if (_v) { | |
c32bde28 | 39139 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
39140 | if (_v) { |
39141 | { | |
39142 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39143 | } | |
39144 | if (_v) { | |
39145 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39146 | } | |
39147 | } | |
39148 | } | |
39149 | } | |
39150 | ||
39151 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39152 | return NULL; | |
39153 | } | |
39154 | ||
39155 | ||
c32bde28 | 39156 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
39157 | PyObject *resultobj; |
39158 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39159 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39160 | wxGBSpan result; | |
39161 | PyObject * obj0 = 0 ; | |
39162 | PyObject * obj1 = 0 ; | |
39163 | ||
39164 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39169 | { |
39170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39171 | result = (arg1)->GetItemSpan(arg2); | |
39172 | ||
39173 | wxPyEndAllowThreads(__tstate); | |
39174 | if (PyErr_Occurred()) SWIG_fail; | |
39175 | } | |
39176 | { | |
39177 | wxGBSpan * resultptr; | |
39178 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 39179 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
39180 | } |
39181 | return resultobj; | |
39182 | fail: | |
39183 | return NULL; | |
39184 | } | |
39185 | ||
39186 | ||
c32bde28 | 39187 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
39188 | PyObject *resultobj; |
39189 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39190 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39191 | wxGBSpan result; | |
39192 | PyObject * obj0 = 0 ; | |
39193 | PyObject * obj1 = 0 ; | |
39194 | ||
39195 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39200 | { |
39201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39202 | result = (arg1)->GetItemSpan(arg2); | |
39203 | ||
39204 | wxPyEndAllowThreads(__tstate); | |
39205 | if (PyErr_Occurred()) SWIG_fail; | |
39206 | } | |
39207 | { | |
39208 | wxGBSpan * resultptr; | |
39209 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 39210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
39211 | } |
39212 | return resultobj; | |
39213 | fail: | |
39214 | return NULL; | |
39215 | } | |
39216 | ||
39217 | ||
c32bde28 | 39218 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
39219 | PyObject *resultobj; |
39220 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39221 | size_t arg2 ; | |
39222 | wxGBSpan result; | |
39223 | PyObject * obj0 = 0 ; | |
39224 | PyObject * obj1 = 0 ; | |
39225 | ||
39226 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39229 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 39230 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
39231 | { |
39232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39233 | result = (arg1)->GetItemSpan(arg2); | |
39234 | ||
39235 | wxPyEndAllowThreads(__tstate); | |
39236 | if (PyErr_Occurred()) SWIG_fail; | |
39237 | } | |
39238 | { | |
39239 | wxGBSpan * resultptr; | |
39240 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 39241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
39242 | } |
39243 | return resultobj; | |
39244 | fail: | |
39245 | return NULL; | |
39246 | } | |
39247 | ||
39248 | ||
39249 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39250 | int argc; | |
39251 | PyObject *argv[3]; | |
39252 | int ii; | |
39253 | ||
39254 | argc = PyObject_Length(args); | |
39255 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39256 | argv[ii] = PyTuple_GetItem(args,ii); | |
39257 | } | |
39258 | if (argc == 2) { | |
39259 | int _v; | |
39260 | { | |
39261 | void *ptr; | |
15afbcd0 | 39262 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39263 | _v = 0; |
39264 | PyErr_Clear(); | |
39265 | } else { | |
39266 | _v = 1; | |
39267 | } | |
39268 | } | |
39269 | if (_v) { | |
39270 | { | |
39271 | void *ptr; | |
15afbcd0 | 39272 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
39273 | _v = 0; |
39274 | PyErr_Clear(); | |
39275 | } else { | |
39276 | _v = 1; | |
39277 | } | |
39278 | } | |
39279 | if (_v) { | |
39280 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39281 | } | |
39282 | } | |
39283 | } | |
39284 | if (argc == 2) { | |
39285 | int _v; | |
39286 | { | |
39287 | void *ptr; | |
15afbcd0 | 39288 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39289 | _v = 0; |
39290 | PyErr_Clear(); | |
39291 | } else { | |
39292 | _v = 1; | |
39293 | } | |
39294 | } | |
39295 | if (_v) { | |
39296 | { | |
39297 | void *ptr; | |
15afbcd0 | 39298 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
39299 | _v = 0; |
39300 | PyErr_Clear(); | |
39301 | } else { | |
39302 | _v = 1; | |
39303 | } | |
39304 | } | |
39305 | if (_v) { | |
39306 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39307 | } | |
39308 | } | |
39309 | } | |
39310 | if (argc == 2) { | |
39311 | int _v; | |
39312 | { | |
39313 | void *ptr; | |
15afbcd0 | 39314 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39315 | _v = 0; |
39316 | PyErr_Clear(); | |
39317 | } else { | |
39318 | _v = 1; | |
39319 | } | |
39320 | } | |
39321 | if (_v) { | |
c32bde28 | 39322 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
39323 | if (_v) { |
39324 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39325 | } | |
39326 | } | |
39327 | } | |
39328 | ||
39329 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39330 | return NULL; | |
39331 | } | |
39332 | ||
39333 | ||
c32bde28 | 39334 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
39335 | PyObject *resultobj; |
39336 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39337 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39338 | wxGBSpan *arg3 = 0 ; | |
39339 | bool result; | |
39340 | wxGBSpan temp3 ; | |
39341 | PyObject * obj0 = 0 ; | |
39342 | PyObject * obj1 = 0 ; | |
39343 | PyObject * obj2 = 0 ; | |
39344 | ||
39345 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39350 | { |
39351 | arg3 = &temp3; | |
39352 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39353 | } | |
39354 | { | |
39355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39356 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39357 | ||
39358 | wxPyEndAllowThreads(__tstate); | |
39359 | if (PyErr_Occurred()) SWIG_fail; | |
39360 | } | |
4f89f6a3 RD |
39361 | { |
39362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39363 | } | |
d14a1e28 RD |
39364 | return resultobj; |
39365 | fail: | |
39366 | return NULL; | |
39367 | } | |
39368 | ||
39369 | ||
c32bde28 | 39370 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
39371 | PyObject *resultobj; |
39372 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39373 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39374 | wxGBSpan *arg3 = 0 ; | |
39375 | bool result; | |
39376 | wxGBSpan temp3 ; | |
39377 | PyObject * obj0 = 0 ; | |
39378 | PyObject * obj1 = 0 ; | |
39379 | PyObject * obj2 = 0 ; | |
39380 | ||
39381 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39386 | { |
39387 | arg3 = &temp3; | |
39388 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39389 | } | |
39390 | { | |
39391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39392 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39393 | ||
39394 | wxPyEndAllowThreads(__tstate); | |
39395 | if (PyErr_Occurred()) SWIG_fail; | |
39396 | } | |
4f89f6a3 RD |
39397 | { |
39398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39399 | } | |
d14a1e28 RD |
39400 | return resultobj; |
39401 | fail: | |
39402 | return NULL; | |
39403 | } | |
39404 | ||
39405 | ||
c32bde28 | 39406 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
39407 | PyObject *resultobj; |
39408 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39409 | size_t arg2 ; | |
39410 | wxGBSpan *arg3 = 0 ; | |
39411 | bool result; | |
39412 | wxGBSpan temp3 ; | |
39413 | PyObject * obj0 = 0 ; | |
39414 | PyObject * obj1 = 0 ; | |
39415 | PyObject * obj2 = 0 ; | |
39416 | ||
39417 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39420 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 39421 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
39422 | { |
39423 | arg3 = &temp3; | |
39424 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39425 | } | |
39426 | { | |
39427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39428 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39429 | ||
39430 | wxPyEndAllowThreads(__tstate); | |
39431 | if (PyErr_Occurred()) SWIG_fail; | |
39432 | } | |
4f89f6a3 RD |
39433 | { |
39434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39435 | } | |
d14a1e28 RD |
39436 | return resultobj; |
39437 | fail: | |
39438 | return NULL; | |
39439 | } | |
39440 | ||
39441 | ||
39442 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39443 | int argc; | |
39444 | PyObject *argv[4]; | |
39445 | int ii; | |
39446 | ||
39447 | argc = PyObject_Length(args); | |
39448 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39449 | argv[ii] = PyTuple_GetItem(args,ii); | |
39450 | } | |
39451 | if (argc == 3) { | |
39452 | int _v; | |
39453 | { | |
39454 | void *ptr; | |
15afbcd0 | 39455 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39456 | _v = 0; |
39457 | PyErr_Clear(); | |
39458 | } else { | |
39459 | _v = 1; | |
39460 | } | |
39461 | } | |
39462 | if (_v) { | |
39463 | { | |
39464 | void *ptr; | |
15afbcd0 | 39465 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
39466 | _v = 0; |
39467 | PyErr_Clear(); | |
39468 | } else { | |
39469 | _v = 1; | |
39470 | } | |
39471 | } | |
39472 | if (_v) { | |
39473 | { | |
39474 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39475 | } | |
39476 | if (_v) { | |
39477 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39478 | } | |
39479 | } | |
39480 | } | |
39481 | } | |
39482 | if (argc == 3) { | |
39483 | int _v; | |
39484 | { | |
39485 | void *ptr; | |
15afbcd0 | 39486 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39487 | _v = 0; |
39488 | PyErr_Clear(); | |
39489 | } else { | |
39490 | _v = 1; | |
39491 | } | |
39492 | } | |
39493 | if (_v) { | |
39494 | { | |
39495 | void *ptr; | |
15afbcd0 | 39496 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
39497 | _v = 0; |
39498 | PyErr_Clear(); | |
39499 | } else { | |
39500 | _v = 1; | |
39501 | } | |
39502 | } | |
39503 | if (_v) { | |
39504 | { | |
39505 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39506 | } | |
39507 | if (_v) { | |
39508 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39509 | } | |
39510 | } | |
39511 | } | |
39512 | } | |
39513 | if (argc == 3) { | |
39514 | int _v; | |
39515 | { | |
39516 | void *ptr; | |
15afbcd0 | 39517 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39518 | _v = 0; |
39519 | PyErr_Clear(); | |
39520 | } else { | |
39521 | _v = 1; | |
39522 | } | |
39523 | } | |
39524 | if (_v) { | |
c32bde28 | 39525 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
39526 | if (_v) { |
39527 | { | |
39528 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39529 | } | |
39530 | if (_v) { | |
39531 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39532 | } | |
39533 | } | |
39534 | } | |
39535 | } | |
39536 | ||
39537 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39538 | return NULL; | |
39539 | } | |
39540 | ||
39541 | ||
c32bde28 | 39542 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
39543 | PyObject *resultobj; |
39544 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39546 | wxGBSizerItem *result; | |
39547 | PyObject * obj0 = 0 ; | |
39548 | PyObject * obj1 = 0 ; | |
39549 | ||
39550 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39555 | { |
39556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39557 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39558 | ||
39559 | wxPyEndAllowThreads(__tstate); | |
39560 | if (PyErr_Occurred()) SWIG_fail; | |
39561 | } | |
15afbcd0 | 39562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
39563 | return resultobj; |
39564 | fail: | |
39565 | return NULL; | |
39566 | } | |
39567 | ||
39568 | ||
c32bde28 | 39569 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
39570 | PyObject *resultobj; |
39571 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39572 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39573 | wxGBSizerItem *result; | |
39574 | PyObject * obj0 = 0 ; | |
39575 | PyObject * obj1 = 0 ; | |
39576 | ||
39577 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39582 | { |
39583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39584 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39585 | ||
39586 | wxPyEndAllowThreads(__tstate); | |
39587 | if (PyErr_Occurred()) SWIG_fail; | |
39588 | } | |
15afbcd0 | 39589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
39590 | return resultobj; |
39591 | fail: | |
39592 | return NULL; | |
39593 | } | |
39594 | ||
39595 | ||
39596 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39597 | int argc; | |
39598 | PyObject *argv[3]; | |
39599 | int ii; | |
39600 | ||
39601 | argc = PyObject_Length(args); | |
39602 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39603 | argv[ii] = PyTuple_GetItem(args,ii); | |
39604 | } | |
39605 | if (argc == 2) { | |
39606 | int _v; | |
39607 | { | |
39608 | void *ptr; | |
15afbcd0 | 39609 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39610 | _v = 0; |
39611 | PyErr_Clear(); | |
39612 | } else { | |
39613 | _v = 1; | |
39614 | } | |
39615 | } | |
39616 | if (_v) { | |
39617 | { | |
39618 | void *ptr; | |
15afbcd0 | 39619 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
39620 | _v = 0; |
39621 | PyErr_Clear(); | |
39622 | } else { | |
39623 | _v = 1; | |
39624 | } | |
39625 | } | |
39626 | if (_v) { | |
39627 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39628 | } | |
39629 | } | |
39630 | } | |
39631 | if (argc == 2) { | |
39632 | int _v; | |
39633 | { | |
39634 | void *ptr; | |
15afbcd0 | 39635 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39636 | _v = 0; |
39637 | PyErr_Clear(); | |
39638 | } else { | |
39639 | _v = 1; | |
39640 | } | |
39641 | } | |
39642 | if (_v) { | |
39643 | { | |
39644 | void *ptr; | |
15afbcd0 | 39645 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
39646 | _v = 0; |
39647 | PyErr_Clear(); | |
39648 | } else { | |
39649 | _v = 1; | |
39650 | } | |
39651 | } | |
39652 | if (_v) { | |
39653 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39654 | } | |
39655 | } | |
39656 | } | |
39657 | ||
39658 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39659 | return NULL; | |
39660 | } | |
39661 | ||
39662 | ||
c32bde28 | 39663 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39664 | PyObject *resultobj; |
39665 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39666 | wxGBPosition *arg2 = 0 ; | |
39667 | wxGBSizerItem *result; | |
39668 | wxGBPosition temp2 ; | |
39669 | PyObject * obj0 = 0 ; | |
39670 | PyObject * obj1 = 0 ; | |
39671 | char *kwnames[] = { | |
39672 | (char *) "self",(char *) "pos", NULL | |
39673 | }; | |
39674 | ||
39675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39678 | { |
39679 | arg2 = &temp2; | |
39680 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39681 | } | |
39682 | { | |
39683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39684 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39685 | ||
39686 | wxPyEndAllowThreads(__tstate); | |
39687 | if (PyErr_Occurred()) SWIG_fail; | |
39688 | } | |
15afbcd0 | 39689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
39690 | return resultobj; |
39691 | fail: | |
39692 | return NULL; | |
39693 | } | |
39694 | ||
39695 | ||
c32bde28 | 39696 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
39697 | PyObject *resultobj; |
39698 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39699 | wxPoint *arg2 = 0 ; | |
39700 | wxGBSizerItem *result; | |
39701 | wxPoint temp2 ; | |
39702 | PyObject * obj0 = 0 ; | |
39703 | PyObject * obj1 = 0 ; | |
39704 | char *kwnames[] = { | |
39705 | (char *) "self",(char *) "pt", NULL | |
39706 | }; | |
39707 | ||
39708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
39711 | { |
39712 | arg2 = &temp2; | |
39713 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39714 | } | |
39715 | { | |
39716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39717 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39718 | ||
39719 | wxPyEndAllowThreads(__tstate); | |
39720 | if (PyErr_Occurred()) SWIG_fail; | |
39721 | } | |
15afbcd0 | 39722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
39723 | return resultobj; |
39724 | fail: | |
39725 | return NULL; | |
39726 | } | |
39727 | ||
39728 | ||
c32bde28 | 39729 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39730 | PyObject *resultobj; |
39731 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39732 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39733 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39734 | bool result; | |
39735 | PyObject * obj0 = 0 ; | |
39736 | PyObject * obj1 = 0 ; | |
39737 | PyObject * obj2 = 0 ; | |
248ed943 RD |
39738 | char *kwnames[] = { |
39739 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39740 | }; | |
d14a1e28 | 39741 | |
248ed943 | 39742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 39747 | if (obj2) { |
15afbcd0 RD |
39748 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
39749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39750 | } |
39751 | { | |
39752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39753 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39754 | ||
39755 | wxPyEndAllowThreads(__tstate); | |
39756 | if (PyErr_Occurred()) SWIG_fail; | |
39757 | } | |
4f89f6a3 RD |
39758 | { |
39759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39760 | } | |
d14a1e28 RD |
39761 | return resultobj; |
39762 | fail: | |
39763 | return NULL; | |
39764 | } | |
39765 | ||
39766 | ||
c32bde28 | 39767 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39768 | PyObject *resultobj; |
39769 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39770 | wxGBPosition *arg2 = 0 ; | |
39771 | wxGBSpan *arg3 = 0 ; | |
39772 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39773 | bool result; | |
39774 | wxGBPosition temp2 ; | |
39775 | wxGBSpan temp3 ; | |
39776 | PyObject * obj0 = 0 ; | |
39777 | PyObject * obj1 = 0 ; | |
39778 | PyObject * obj2 = 0 ; | |
39779 | PyObject * obj3 = 0 ; | |
248ed943 RD |
39780 | char *kwnames[] = { |
39781 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39782 | }; | |
d14a1e28 | 39783 | |
248ed943 | 39784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39787 | { |
39788 | arg2 = &temp2; | |
39789 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39790 | } | |
39791 | { | |
39792 | arg3 = &temp3; | |
39793 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39794 | } | |
39795 | if (obj3) { | |
15afbcd0 RD |
39796 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
39797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39798 | } |
39799 | { | |
39800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39801 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39802 | ||
39803 | wxPyEndAllowThreads(__tstate); | |
39804 | if (PyErr_Occurred()) SWIG_fail; | |
39805 | } | |
4f89f6a3 RD |
39806 | { |
39807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39808 | } | |
d14a1e28 RD |
39809 | return resultobj; |
39810 | fail: | |
39811 | return NULL; | |
39812 | } | |
39813 | ||
39814 | ||
c32bde28 | 39815 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
39816 | PyObject *obj; |
39817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39818 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39819 | Py_INCREF(obj); | |
39820 | return Py_BuildValue((char *)""); | |
39821 | } | |
c32bde28 | 39822 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39823 | PyObject *resultobj; |
39824 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39825 | int arg2 ; | |
39826 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39827 | int arg4 ; | |
39828 | int arg5 = (int) 0 ; | |
39829 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39830 | PyObject * obj0 = 0 ; | |
994141e6 | 39831 | PyObject * obj1 = 0 ; |
d14a1e28 | 39832 | PyObject * obj2 = 0 ; |
994141e6 RD |
39833 | PyObject * obj3 = 0 ; |
39834 | PyObject * obj4 = 0 ; | |
39835 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
39836 | char *kwnames[] = { |
39837 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39838 | }; | |
39839 | ||
994141e6 | 39840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
39841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39843 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
39844 | if (PyErr_Occurred()) SWIG_fail; |
39845 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39847 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 39848 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39849 | if (obj4) { |
c32bde28 | 39850 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 39851 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
39852 | } |
39853 | if (obj5) { | |
c32bde28 | 39854 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 39855 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39856 | } |
d14a1e28 RD |
39857 | { |
39858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39859 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39860 | ||
39861 | wxPyEndAllowThreads(__tstate); | |
39862 | if (PyErr_Occurred()) SWIG_fail; | |
39863 | } | |
39864 | Py_INCREF(Py_None); resultobj = Py_None; | |
39865 | return resultobj; | |
39866 | fail: | |
39867 | return NULL; | |
39868 | } | |
39869 | ||
39870 | ||
c32bde28 | 39871 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39872 | PyObject *resultobj; |
39873 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39874 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39875 | int arg3 = (int) 0 ; | |
39876 | PyObject * obj0 = 0 ; | |
39877 | PyObject * obj1 = 0 ; | |
994141e6 | 39878 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39879 | char *kwnames[] = { |
39880 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39881 | }; | |
39882 | ||
994141e6 | 39883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39888 | if (obj2) { |
c32bde28 | 39889 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 39890 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39891 | } |
d14a1e28 RD |
39892 | { |
39893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39894 | (arg1)->LeftOf(arg2,arg3); | |
39895 | ||
39896 | wxPyEndAllowThreads(__tstate); | |
39897 | if (PyErr_Occurred()) SWIG_fail; | |
39898 | } | |
39899 | Py_INCREF(Py_None); resultobj = Py_None; | |
39900 | return resultobj; | |
39901 | fail: | |
39902 | return NULL; | |
39903 | } | |
39904 | ||
39905 | ||
c32bde28 | 39906 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39907 | PyObject *resultobj; |
39908 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39909 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39910 | int arg3 = (int) 0 ; | |
39911 | PyObject * obj0 = 0 ; | |
39912 | PyObject * obj1 = 0 ; | |
994141e6 | 39913 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39914 | char *kwnames[] = { |
39915 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39916 | }; | |
39917 | ||
994141e6 | 39918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39923 | if (obj2) { |
c32bde28 | 39924 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 39925 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39926 | } |
d14a1e28 RD |
39927 | { |
39928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39929 | (arg1)->RightOf(arg2,arg3); | |
39930 | ||
39931 | wxPyEndAllowThreads(__tstate); | |
39932 | if (PyErr_Occurred()) SWIG_fail; | |
39933 | } | |
39934 | Py_INCREF(Py_None); resultobj = Py_None; | |
39935 | return resultobj; | |
39936 | fail: | |
39937 | return NULL; | |
39938 | } | |
39939 | ||
39940 | ||
c32bde28 | 39941 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39942 | PyObject *resultobj; |
39943 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39945 | int arg3 = (int) 0 ; | |
39946 | PyObject * obj0 = 0 ; | |
39947 | PyObject * obj1 = 0 ; | |
994141e6 | 39948 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39949 | char *kwnames[] = { |
39950 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39951 | }; | |
39952 | ||
994141e6 | 39953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39958 | if (obj2) { |
c32bde28 | 39959 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 39960 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39961 | } |
d14a1e28 RD |
39962 | { |
39963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39964 | (arg1)->Above(arg2,arg3); | |
39965 | ||
39966 | wxPyEndAllowThreads(__tstate); | |
39967 | if (PyErr_Occurred()) SWIG_fail; | |
39968 | } | |
39969 | Py_INCREF(Py_None); resultobj = Py_None; | |
39970 | return resultobj; | |
39971 | fail: | |
39972 | return NULL; | |
39973 | } | |
39974 | ||
39975 | ||
c32bde28 | 39976 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39977 | PyObject *resultobj; |
39978 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39980 | int arg3 = (int) 0 ; | |
39981 | PyObject * obj0 = 0 ; | |
39982 | PyObject * obj1 = 0 ; | |
994141e6 | 39983 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39984 | char *kwnames[] = { |
39985 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39986 | }; | |
39987 | ||
994141e6 | 39988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39993 | if (obj2) { |
c32bde28 | 39994 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 39995 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 39996 | } |
d14a1e28 RD |
39997 | { |
39998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39999 | (arg1)->Below(arg2,arg3); | |
40000 | ||
40001 | wxPyEndAllowThreads(__tstate); | |
40002 | if (PyErr_Occurred()) SWIG_fail; | |
40003 | } | |
40004 | Py_INCREF(Py_None); resultobj = Py_None; | |
40005 | return resultobj; | |
40006 | fail: | |
40007 | return NULL; | |
40008 | } | |
40009 | ||
40010 | ||
c32bde28 | 40011 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40012 | PyObject *resultobj; |
40013 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40015 | int arg3 ; | |
40016 | int arg4 = (int) 0 ; | |
40017 | PyObject * obj0 = 0 ; | |
40018 | PyObject * obj1 = 0 ; | |
994141e6 RD |
40019 | PyObject * obj2 = 0 ; |
40020 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
40021 | char *kwnames[] = { |
40022 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40023 | }; | |
40024 | ||
994141e6 | 40025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
40026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40030 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 40031 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 40032 | if (obj3) { |
c32bde28 | 40033 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 40034 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 40035 | } |
d14a1e28 RD |
40036 | { |
40037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40038 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40039 | ||
40040 | wxPyEndAllowThreads(__tstate); | |
40041 | if (PyErr_Occurred()) SWIG_fail; | |
40042 | } | |
40043 | Py_INCREF(Py_None); resultobj = Py_None; | |
40044 | return resultobj; | |
40045 | fail: | |
40046 | return NULL; | |
40047 | } | |
40048 | ||
40049 | ||
c32bde28 | 40050 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40051 | PyObject *resultobj; |
40052 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40054 | int arg3 ; | |
40055 | int arg4 ; | |
40056 | PyObject * obj0 = 0 ; | |
40057 | PyObject * obj1 = 0 ; | |
994141e6 RD |
40058 | PyObject * obj2 = 0 ; |
40059 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
40060 | char *kwnames[] = { |
40061 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40062 | }; | |
40063 | ||
994141e6 | 40064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
40065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40069 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 40070 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 40071 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 40072 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40073 | { |
40074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40075 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40076 | ||
40077 | wxPyEndAllowThreads(__tstate); | |
40078 | if (PyErr_Occurred()) SWIG_fail; | |
40079 | } | |
40080 | Py_INCREF(Py_None); resultobj = Py_None; | |
40081 | return resultobj; | |
40082 | fail: | |
40083 | return NULL; | |
40084 | } | |
40085 | ||
40086 | ||
c32bde28 | 40087 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40088 | PyObject *resultobj; |
40089 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40090 | int arg2 ; | |
40091 | PyObject * obj0 = 0 ; | |
994141e6 | 40092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40093 | char *kwnames[] = { |
40094 | (char *) "self",(char *) "val", NULL | |
40095 | }; | |
40096 | ||
994141e6 | 40097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40100 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 40101 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40102 | { |
40103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40104 | (arg1)->Absolute(arg2); | |
40105 | ||
40106 | wxPyEndAllowThreads(__tstate); | |
40107 | if (PyErr_Occurred()) SWIG_fail; | |
40108 | } | |
40109 | Py_INCREF(Py_None); resultobj = Py_None; | |
40110 | return resultobj; | |
40111 | fail: | |
40112 | return NULL; | |
40113 | } | |
40114 | ||
40115 | ||
c32bde28 | 40116 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40117 | PyObject *resultobj; |
40118 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40119 | PyObject * obj0 = 0 ; | |
40120 | char *kwnames[] = { | |
40121 | (char *) "self", NULL | |
40122 | }; | |
40123 | ||
40124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40127 | { |
40128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40129 | (arg1)->Unconstrained(); | |
40130 | ||
40131 | wxPyEndAllowThreads(__tstate); | |
40132 | if (PyErr_Occurred()) SWIG_fail; | |
40133 | } | |
40134 | Py_INCREF(Py_None); resultobj = Py_None; | |
40135 | return resultobj; | |
40136 | fail: | |
40137 | return NULL; | |
40138 | } | |
40139 | ||
40140 | ||
c32bde28 | 40141 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40142 | PyObject *resultobj; |
40143 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40144 | PyObject * obj0 = 0 ; | |
40145 | char *kwnames[] = { | |
40146 | (char *) "self", NULL | |
40147 | }; | |
40148 | ||
40149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40152 | { |
40153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40154 | (arg1)->AsIs(); | |
40155 | ||
40156 | wxPyEndAllowThreads(__tstate); | |
40157 | if (PyErr_Occurred()) SWIG_fail; | |
40158 | } | |
40159 | Py_INCREF(Py_None); resultobj = Py_None; | |
40160 | return resultobj; | |
40161 | fail: | |
40162 | return NULL; | |
40163 | } | |
40164 | ||
40165 | ||
c32bde28 | 40166 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40167 | PyObject *resultobj; |
40168 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40169 | wxWindow *result; | |
40170 | PyObject * obj0 = 0 ; | |
40171 | char *kwnames[] = { | |
40172 | (char *) "self", NULL | |
40173 | }; | |
40174 | ||
40175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40178 | { |
40179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40180 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40181 | ||
40182 | wxPyEndAllowThreads(__tstate); | |
40183 | if (PyErr_Occurred()) SWIG_fail; | |
40184 | } | |
40185 | { | |
412d302d | 40186 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
40187 | } |
40188 | return resultobj; | |
40189 | fail: | |
40190 | return NULL; | |
40191 | } | |
40192 | ||
40193 | ||
c32bde28 | 40194 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40195 | PyObject *resultobj; |
40196 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40197 | int result; | |
40198 | PyObject * obj0 = 0 ; | |
40199 | char *kwnames[] = { | |
40200 | (char *) "self", NULL | |
40201 | }; | |
40202 | ||
40203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40206 | { |
40207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40208 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40209 | ||
40210 | wxPyEndAllowThreads(__tstate); | |
40211 | if (PyErr_Occurred()) SWIG_fail; | |
40212 | } | |
c32bde28 | 40213 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40214 | return resultobj; |
40215 | fail: | |
40216 | return NULL; | |
40217 | } | |
40218 | ||
40219 | ||
c32bde28 | 40220 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40221 | PyObject *resultobj; |
40222 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40223 | int arg2 ; | |
40224 | PyObject * obj0 = 0 ; | |
994141e6 | 40225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40226 | char *kwnames[] = { |
40227 | (char *) "self",(char *) "which", NULL | |
40228 | }; | |
40229 | ||
994141e6 | 40230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40233 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 40234 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40235 | { |
40236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40237 | (arg1)->SetEdge((wxEdge )arg2); | |
40238 | ||
40239 | wxPyEndAllowThreads(__tstate); | |
40240 | if (PyErr_Occurred()) SWIG_fail; | |
40241 | } | |
40242 | Py_INCREF(Py_None); resultobj = Py_None; | |
40243 | return resultobj; | |
40244 | fail: | |
40245 | return NULL; | |
40246 | } | |
40247 | ||
40248 | ||
c32bde28 | 40249 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40250 | PyObject *resultobj; |
40251 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40252 | int arg2 ; | |
40253 | PyObject * obj0 = 0 ; | |
994141e6 | 40254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40255 | char *kwnames[] = { |
40256 | (char *) "self",(char *) "v", NULL | |
40257 | }; | |
40258 | ||
994141e6 | 40259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40262 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 40263 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40264 | { |
40265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40266 | (arg1)->SetValue(arg2); | |
40267 | ||
40268 | wxPyEndAllowThreads(__tstate); | |
40269 | if (PyErr_Occurred()) SWIG_fail; | |
40270 | } | |
40271 | Py_INCREF(Py_None); resultobj = Py_None; | |
40272 | return resultobj; | |
40273 | fail: | |
40274 | return NULL; | |
40275 | } | |
40276 | ||
40277 | ||
c32bde28 | 40278 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40279 | PyObject *resultobj; |
40280 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40281 | int result; | |
40282 | PyObject * obj0 = 0 ; | |
40283 | char *kwnames[] = { | |
40284 | (char *) "self", NULL | |
40285 | }; | |
40286 | ||
40287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40290 | { |
40291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40292 | result = (int)(arg1)->GetMargin(); | |
40293 | ||
40294 | wxPyEndAllowThreads(__tstate); | |
40295 | if (PyErr_Occurred()) SWIG_fail; | |
40296 | } | |
c32bde28 | 40297 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40298 | return resultobj; |
40299 | fail: | |
40300 | return NULL; | |
40301 | } | |
40302 | ||
40303 | ||
c32bde28 | 40304 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40305 | PyObject *resultobj; |
40306 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40307 | int arg2 ; | |
40308 | PyObject * obj0 = 0 ; | |
994141e6 | 40309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40310 | char *kwnames[] = { |
40311 | (char *) "self",(char *) "m", NULL | |
40312 | }; | |
40313 | ||
994141e6 | 40314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40317 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 40318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40319 | { |
40320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40321 | (arg1)->SetMargin(arg2); | |
40322 | ||
40323 | wxPyEndAllowThreads(__tstate); | |
40324 | if (PyErr_Occurred()) SWIG_fail; | |
40325 | } | |
40326 | Py_INCREF(Py_None); resultobj = Py_None; | |
40327 | return resultobj; | |
40328 | fail: | |
40329 | return NULL; | |
40330 | } | |
40331 | ||
40332 | ||
c32bde28 | 40333 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40334 | PyObject *resultobj; |
40335 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40336 | int result; | |
40337 | PyObject * obj0 = 0 ; | |
40338 | char *kwnames[] = { | |
40339 | (char *) "self", NULL | |
40340 | }; | |
40341 | ||
40342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40345 | { |
40346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40347 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40348 | ||
40349 | wxPyEndAllowThreads(__tstate); | |
40350 | if (PyErr_Occurred()) SWIG_fail; | |
40351 | } | |
c32bde28 | 40352 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40353 | return resultobj; |
40354 | fail: | |
40355 | return NULL; | |
40356 | } | |
40357 | ||
40358 | ||
c32bde28 | 40359 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40360 | PyObject *resultobj; |
40361 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40362 | int result; | |
40363 | PyObject * obj0 = 0 ; | |
40364 | char *kwnames[] = { | |
40365 | (char *) "self", NULL | |
40366 | }; | |
40367 | ||
40368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40371 | { |
40372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40373 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40374 | ||
40375 | wxPyEndAllowThreads(__tstate); | |
40376 | if (PyErr_Occurred()) SWIG_fail; | |
40377 | } | |
c32bde28 | 40378 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40379 | return resultobj; |
40380 | fail: | |
40381 | return NULL; | |
40382 | } | |
40383 | ||
40384 | ||
c32bde28 | 40385 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40386 | PyObject *resultobj; |
40387 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40388 | int result; | |
40389 | PyObject * obj0 = 0 ; | |
40390 | char *kwnames[] = { | |
40391 | (char *) "self", NULL | |
40392 | }; | |
40393 | ||
40394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40397 | { |
40398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40399 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40400 | ||
40401 | wxPyEndAllowThreads(__tstate); | |
40402 | if (PyErr_Occurred()) SWIG_fail; | |
40403 | } | |
c32bde28 | 40404 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40405 | return resultobj; |
40406 | fail: | |
40407 | return NULL; | |
40408 | } | |
40409 | ||
40410 | ||
c32bde28 | 40411 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40412 | PyObject *resultobj; |
40413 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40414 | bool result; | |
40415 | PyObject * obj0 = 0 ; | |
40416 | char *kwnames[] = { | |
40417 | (char *) "self", NULL | |
40418 | }; | |
40419 | ||
40420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40423 | { |
40424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40425 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40426 | ||
40427 | wxPyEndAllowThreads(__tstate); | |
40428 | if (PyErr_Occurred()) SWIG_fail; | |
40429 | } | |
4f89f6a3 RD |
40430 | { |
40431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40432 | } | |
d14a1e28 RD |
40433 | return resultobj; |
40434 | fail: | |
40435 | return NULL; | |
40436 | } | |
40437 | ||
40438 | ||
c32bde28 | 40439 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40440 | PyObject *resultobj; |
40441 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40442 | bool arg2 ; | |
40443 | PyObject * obj0 = 0 ; | |
40444 | PyObject * obj1 = 0 ; | |
40445 | char *kwnames[] = { | |
40446 | (char *) "self",(char *) "d", NULL | |
40447 | }; | |
40448 | ||
40449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
40450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40452 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 40453 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40454 | { |
40455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40456 | (arg1)->SetDone(arg2); | |
40457 | ||
40458 | wxPyEndAllowThreads(__tstate); | |
40459 | if (PyErr_Occurred()) SWIG_fail; | |
40460 | } | |
40461 | Py_INCREF(Py_None); resultobj = Py_None; | |
40462 | return resultobj; | |
40463 | fail: | |
40464 | return NULL; | |
40465 | } | |
40466 | ||
40467 | ||
c32bde28 | 40468 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40469 | PyObject *resultobj; |
40470 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40471 | int result; | |
40472 | PyObject * obj0 = 0 ; | |
40473 | char *kwnames[] = { | |
40474 | (char *) "self", NULL | |
40475 | }; | |
40476 | ||
40477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40480 | { |
40481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40482 | result = (int)(arg1)->GetRelationship(); | |
40483 | ||
40484 | wxPyEndAllowThreads(__tstate); | |
40485 | if (PyErr_Occurred()) SWIG_fail; | |
40486 | } | |
c32bde28 | 40487 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40488 | return resultobj; |
40489 | fail: | |
40490 | return NULL; | |
40491 | } | |
40492 | ||
40493 | ||
c32bde28 | 40494 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40495 | PyObject *resultobj; |
40496 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40497 | int arg2 ; | |
40498 | PyObject * obj0 = 0 ; | |
994141e6 | 40499 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40500 | char *kwnames[] = { |
40501 | (char *) "self",(char *) "r", NULL | |
40502 | }; | |
40503 | ||
994141e6 | 40504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40507 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 40508 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
40509 | { |
40510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40511 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40512 | ||
40513 | wxPyEndAllowThreads(__tstate); | |
40514 | if (PyErr_Occurred()) SWIG_fail; | |
40515 | } | |
40516 | Py_INCREF(Py_None); resultobj = Py_None; | |
40517 | return resultobj; | |
40518 | fail: | |
40519 | return NULL; | |
40520 | } | |
40521 | ||
40522 | ||
c32bde28 | 40523 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40524 | PyObject *resultobj; |
40525 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40526 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40527 | bool result; | |
40528 | PyObject * obj0 = 0 ; | |
40529 | PyObject * obj1 = 0 ; | |
40530 | char *kwnames[] = { | |
40531 | (char *) "self",(char *) "otherW", NULL | |
40532 | }; | |
40533 | ||
40534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
40535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40537 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40539 | { |
40540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40541 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40542 | ||
40543 | wxPyEndAllowThreads(__tstate); | |
40544 | if (PyErr_Occurred()) SWIG_fail; | |
40545 | } | |
4f89f6a3 RD |
40546 | { |
40547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40548 | } | |
d14a1e28 RD |
40549 | return resultobj; |
40550 | fail: | |
40551 | return NULL; | |
40552 | } | |
40553 | ||
40554 | ||
c32bde28 | 40555 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40556 | PyObject *resultobj; |
40557 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40558 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40559 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40560 | bool result; | |
40561 | PyObject * obj0 = 0 ; | |
40562 | PyObject * obj1 = 0 ; | |
40563 | PyObject * obj2 = 0 ; | |
40564 | char *kwnames[] = { | |
40565 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40566 | }; | |
40567 | ||
40568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
40569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40573 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40575 | { |
40576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40577 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40578 | ||
40579 | wxPyEndAllowThreads(__tstate); | |
40580 | if (PyErr_Occurred()) SWIG_fail; | |
40581 | } | |
4f89f6a3 RD |
40582 | { |
40583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40584 | } | |
d14a1e28 RD |
40585 | return resultobj; |
40586 | fail: | |
40587 | return NULL; | |
40588 | } | |
40589 | ||
40590 | ||
c32bde28 | 40591 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40592 | PyObject *resultobj; |
40593 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40594 | int arg2 ; | |
40595 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40596 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40597 | int result; | |
40598 | PyObject * obj0 = 0 ; | |
994141e6 | 40599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40600 | PyObject * obj2 = 0 ; |
40601 | PyObject * obj3 = 0 ; | |
40602 | char *kwnames[] = { | |
40603 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40604 | }; | |
40605 | ||
994141e6 | 40606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
40607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
40608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40609 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
40610 | if (PyErr_Occurred()) SWIG_fail; |
40611 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40613 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40615 | { |
40616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40617 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40618 | ||
40619 | wxPyEndAllowThreads(__tstate); | |
40620 | if (PyErr_Occurred()) SWIG_fail; | |
40621 | } | |
c32bde28 | 40622 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
40623 | return resultobj; |
40624 | fail: | |
40625 | return NULL; | |
40626 | } | |
40627 | ||
40628 | ||
c32bde28 | 40629 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40630 | PyObject *obj; |
40631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40632 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40633 | Py_INCREF(obj); | |
40634 | return Py_BuildValue((char *)""); | |
40635 | } | |
c32bde28 | 40636 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40637 | PyObject *resultobj; |
40638 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40639 | wxIndividualLayoutConstraint *result; | |
40640 | PyObject * obj0 = 0 ; | |
40641 | char *kwnames[] = { | |
40642 | (char *) "self", NULL | |
40643 | }; | |
40644 | ||
40645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40648 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
40649 | ||
15afbcd0 | 40650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40651 | return resultobj; |
40652 | fail: | |
40653 | return NULL; | |
40654 | } | |
40655 | ||
40656 | ||
c32bde28 | 40657 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40658 | PyObject *resultobj; |
40659 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40660 | wxIndividualLayoutConstraint *result; | |
40661 | PyObject * obj0 = 0 ; | |
40662 | char *kwnames[] = { | |
40663 | (char *) "self", NULL | |
40664 | }; | |
40665 | ||
40666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40669 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
40670 | ||
15afbcd0 | 40671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40672 | return resultobj; |
40673 | fail: | |
40674 | return NULL; | |
40675 | } | |
40676 | ||
40677 | ||
c32bde28 | 40678 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40679 | PyObject *resultobj; |
40680 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40681 | wxIndividualLayoutConstraint *result; | |
40682 | PyObject * obj0 = 0 ; | |
40683 | char *kwnames[] = { | |
40684 | (char *) "self", NULL | |
40685 | }; | |
40686 | ||
40687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40690 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
40691 | ||
15afbcd0 | 40692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40693 | return resultobj; |
40694 | fail: | |
40695 | return NULL; | |
40696 | } | |
40697 | ||
40698 | ||
c32bde28 | 40699 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40700 | PyObject *resultobj; |
40701 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40702 | wxIndividualLayoutConstraint *result; | |
40703 | PyObject * obj0 = 0 ; | |
40704 | char *kwnames[] = { | |
40705 | (char *) "self", NULL | |
40706 | }; | |
40707 | ||
40708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40711 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
40712 | ||
15afbcd0 | 40713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40714 | return resultobj; |
40715 | fail: | |
40716 | return NULL; | |
40717 | } | |
40718 | ||
40719 | ||
c32bde28 | 40720 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40721 | PyObject *resultobj; |
40722 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40723 | wxIndividualLayoutConstraint *result; | |
40724 | PyObject * obj0 = 0 ; | |
40725 | char *kwnames[] = { | |
40726 | (char *) "self", NULL | |
40727 | }; | |
40728 | ||
40729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40732 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
40733 | ||
15afbcd0 | 40734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40735 | return resultobj; |
40736 | fail: | |
40737 | return NULL; | |
40738 | } | |
40739 | ||
40740 | ||
c32bde28 | 40741 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40742 | PyObject *resultobj; |
40743 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40744 | wxIndividualLayoutConstraint *result; | |
40745 | PyObject * obj0 = 0 ; | |
40746 | char *kwnames[] = { | |
40747 | (char *) "self", NULL | |
40748 | }; | |
40749 | ||
40750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40753 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
40754 | ||
15afbcd0 | 40755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40756 | return resultobj; |
40757 | fail: | |
40758 | return NULL; | |
40759 | } | |
40760 | ||
40761 | ||
c32bde28 | 40762 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40763 | PyObject *resultobj; |
40764 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40765 | wxIndividualLayoutConstraint *result; | |
40766 | PyObject * obj0 = 0 ; | |
40767 | char *kwnames[] = { | |
40768 | (char *) "self", NULL | |
40769 | }; | |
40770 | ||
40771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40774 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
40775 | ||
15afbcd0 | 40776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40777 | return resultobj; |
40778 | fail: | |
40779 | return NULL; | |
40780 | } | |
40781 | ||
40782 | ||
c32bde28 | 40783 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40784 | PyObject *resultobj; |
40785 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40786 | wxIndividualLayoutConstraint *result; | |
40787 | PyObject * obj0 = 0 ; | |
40788 | char *kwnames[] = { | |
40789 | (char *) "self", NULL | |
40790 | }; | |
40791 | ||
40792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40795 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
40796 | ||
15afbcd0 | 40797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40798 | return resultobj; |
40799 | fail: | |
40800 | return NULL; | |
40801 | } | |
40802 | ||
40803 | ||
c32bde28 | 40804 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40805 | PyObject *resultobj; |
40806 | wxLayoutConstraints *result; | |
40807 | char *kwnames[] = { | |
40808 | NULL | |
40809 | }; | |
40810 | ||
40811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40812 | { | |
40813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40814 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40815 | ||
40816 | wxPyEndAllowThreads(__tstate); | |
40817 | if (PyErr_Occurred()) SWIG_fail; | |
40818 | } | |
15afbcd0 | 40819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
40820 | return resultobj; |
40821 | fail: | |
40822 | return NULL; | |
40823 | } | |
40824 | ||
40825 | ||
c32bde28 | 40826 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40827 | PyObject *resultobj; |
40828 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40829 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40830 | int *arg3 = (int *) 0 ; | |
40831 | bool result; | |
40832 | int temp3 ; | |
c32bde28 | 40833 | int res3 = 0 ; |
d14a1e28 RD |
40834 | PyObject * obj0 = 0 ; |
40835 | PyObject * obj1 = 0 ; | |
40836 | char *kwnames[] = { | |
40837 | (char *) "self",(char *) "win", NULL | |
40838 | }; | |
40839 | ||
c32bde28 | 40840 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 40841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
40842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40846 | { |
40847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40848 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40849 | ||
40850 | wxPyEndAllowThreads(__tstate); | |
40851 | if (PyErr_Occurred()) SWIG_fail; | |
40852 | } | |
4f89f6a3 RD |
40853 | { |
40854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40855 | } | |
c32bde28 RD |
40856 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
40857 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
40858 | return resultobj; |
40859 | fail: | |
40860 | return NULL; | |
40861 | } | |
40862 | ||
40863 | ||
c32bde28 | 40864 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40865 | PyObject *resultobj; |
40866 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40867 | bool result; | |
40868 | PyObject * obj0 = 0 ; | |
40869 | char *kwnames[] = { | |
40870 | (char *) "self", NULL | |
40871 | }; | |
40872 | ||
40873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40876 | { |
40877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40878 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40879 | ||
40880 | wxPyEndAllowThreads(__tstate); | |
40881 | if (PyErr_Occurred()) SWIG_fail; | |
40882 | } | |
4f89f6a3 RD |
40883 | { |
40884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40885 | } | |
d14a1e28 RD |
40886 | return resultobj; |
40887 | fail: | |
40888 | return NULL; | |
40889 | } | |
40890 | ||
40891 | ||
c32bde28 | 40892 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40893 | PyObject *obj; |
40894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40895 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40896 | Py_INCREF(obj); | |
40897 | return Py_BuildValue((char *)""); | |
40898 | } | |
40899 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
40900 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
40901 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
40902 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40903 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40904 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
40905 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40906 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40907 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40908 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40909 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40910 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40911 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40912 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40913 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40914 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40915 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40916 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40917 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40918 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40919 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40920 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40921 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40922 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40923 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40924 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40925 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
40926 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40927 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40928 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40929 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40930 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40931 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40932 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40933 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40934 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40935 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40936 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40937 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40938 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
40939 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40940 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40941 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40942 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40943 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40944 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40945 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40946 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40947 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40948 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40949 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40950 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40951 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40952 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40953 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
40954 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40955 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40956 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
d3b6e4ff | 40957 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
40958 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, |
40959 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40960 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40961 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40962 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40963 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40964 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40965 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40966 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40967 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40968 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40969 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40970 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40971 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40972 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40973 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40974 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40975 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40976 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40977 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40978 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40979 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40980 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40981 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40982 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40983 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40984 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40985 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40986 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40987 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40988 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40989 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40990 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40991 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40992 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40993 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40994 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40995 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40996 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40997 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40998 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40999 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41000 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41001 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41002 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41003 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41004 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41005 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41006 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41007 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41008 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41009 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41010 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41011 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41012 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41013 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41014 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41015 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41016 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41017 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41018 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41019 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41020 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41021 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41022 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41023 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41024 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41025 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41026 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41027 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41028 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41029 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41030 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41031 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41032 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41033 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41034 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41035 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41036 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, |
41037 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41038 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41039 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41040 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41041 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41042 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41043 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41044 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41045 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41046 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41047 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41048 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41049 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41050 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41051 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41052 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41053 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41054 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41055 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41056 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41057 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41058 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41059 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41060 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41061 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41062 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41063 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41064 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41065 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41066 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41067 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41068 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41069 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41070 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41071 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41072 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41073 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41074 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41075 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41076 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41077 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41078 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41079 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41080 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41081 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41082 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41083 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41084 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41085 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 41086 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
2ef75293 | 41087 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c32bde28 RD |
41088 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41089 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41090 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41091 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41092 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41093 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41094 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41095 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41096 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41097 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41098 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41099 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41100 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41101 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41102 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41103 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41104 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41105 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41106 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41107 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41108 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41109 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41110 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41111 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41112 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41113 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41114 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41115 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41116 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41117 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41118 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41119 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41120 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41121 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41122 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41123 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41124 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41125 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41126 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41127 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41128 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41129 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1823fbb4 | 41130 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41131 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, |
41132 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41133 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41134 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41135 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41136 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41137 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41138 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41139 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41140 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41141 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41142 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41143 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41144 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41145 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41146 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, |
41147 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41148 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41149 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41150 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41151 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41152 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41153 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41154 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41155 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41156 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41157 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41158 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41159 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41160 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41161 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41162 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41163 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41164 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41165 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41166 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41167 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41168 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41169 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41170 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41171 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41172 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41173 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41174 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41175 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41176 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41177 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41178 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41179 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41180 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41181 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41182 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41183 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41184 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41185 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41186 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41187 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41188 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41189 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41190 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41191 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41192 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41193 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41194 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41195 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41196 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41197 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41198 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41199 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41200 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41201 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41202 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41203 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41204 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41205 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41206 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41207 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41208 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41209 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41210 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41211 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41212 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41213 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41214 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41215 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41216 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41217 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41218 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41219 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41220 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41221 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41222 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41223 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41224 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41225 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41226 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41227 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41228 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41229 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41230 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41231 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41232 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41233 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41234 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41235 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41236 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41237 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41238 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41239 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41240 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41241 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41242 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41243 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41244 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41245 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41246 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41247 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41248 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41249 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41250 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41251 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41252 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41253 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41254 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41255 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41256 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41257 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41258 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41259 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41260 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41261 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41262 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41263 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41264 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41265 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41266 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41267 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41268 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41269 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41270 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41271 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41272 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41273 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41274 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41275 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41276 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41277 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41278 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41279 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41280 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41281 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41282 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41283 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41284 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41285 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41287 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41288 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41293 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41294 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41295 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41296 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41299 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41300 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41304 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41305 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41306 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41307 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41308 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41314 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41315 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41317 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41319 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41321 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41323 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41325 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41327 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41329 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41331 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41333 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41334 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41335 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41337 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41338 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41339 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41341 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41346 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41347 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41350 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41357 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41393 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41402 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41403 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41413 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41415 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41417 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41420 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41424 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41427 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41430 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41432 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41437 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41445 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41449 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41452 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41454 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41458 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41471 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41475 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41477 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41480 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41482 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41486 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41487 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41490 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41499 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41502 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41505 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41509 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41516 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41521 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41526 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1fc3b23a | 41539 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41540 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41541 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41553 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41571 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
2ef75293 RD |
41579 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41580 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
41589 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41590 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41596 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41600 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41610 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41642 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41652 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41658 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41660 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41685 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41714 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41719 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
41779 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 RD |
41783 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
41784 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
41785 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, |
41786 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41794 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41809 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
41819 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
41833 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
41836 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41876 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41879 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41881 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41882 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
41891 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41893 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41896 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41898 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41902 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41908 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
41918 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41930 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41934 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41942 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41943 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41946 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
41948 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41949 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41953 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
41956 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41957 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41959 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41960 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41965 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41966 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41967 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41970 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41971 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
41973 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
41974 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41977 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41978 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41983 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41984 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41985 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41987 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41988 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41989 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
d3b6e4ff | 41990 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41991 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
41992 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42011 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42014 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42015 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
d3b6e4ff | 42017 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42018 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42019 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42023 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42024 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42025 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42033 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42034 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42036 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42038 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42039 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42040 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42041 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42042 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42044 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42045 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42048 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42051 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42053 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42054 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42058 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42061 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42066 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42070 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42071 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42073 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42075 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42079 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42083 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42093 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42096 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42097 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42098 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42101 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42103 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42107 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42110 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42111 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42112 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42113 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42114 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42115 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42116 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42117 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42118 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42120 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42123 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42124 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42126 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42130 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42134 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42137 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42140 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42141 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42142 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42147 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42150 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42156 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42160 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42161 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42162 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
42163 | }; |
42164 | ||
42165 | ||
42166 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42167 | ||
42168 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42169 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42170 | } | |
42171 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42172 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42173 | } | |
42174 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42175 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42176 | } | |
42177 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42178 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42179 | } | |
42180 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42181 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42182 | } | |
42183 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42184 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42185 | } | |
42186 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42187 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42188 | } | |
42189 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42190 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42191 | } | |
42192 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42194 | } | |
42195 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42196 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42197 | } | |
42198 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42199 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42200 | } | |
42201 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42202 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42203 | } | |
42204 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42205 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42206 | } | |
42207 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42208 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42209 | } | |
42210 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42211 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42212 | } | |
42213 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42214 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42215 | } | |
42216 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42217 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42218 | } | |
42219 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42221 | } | |
42222 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42223 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42224 | } | |
42225 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42226 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42227 | } | |
42228 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42229 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42230 | } | |
42231 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42232 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42233 | } | |
42234 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42235 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42236 | } | |
42237 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42238 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42239 | } | |
42240 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42241 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42242 | } | |
42243 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42244 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42245 | } | |
42246 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42247 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42248 | } | |
42249 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42250 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42251 | } | |
42252 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42253 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42254 | } | |
42255 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42256 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42257 | } | |
42258 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42259 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42260 | } | |
42261 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42262 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42263 | } | |
42264 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42265 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42266 | } | |
42267 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42268 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42269 | } | |
42270 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42271 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42272 | } | |
42273 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42274 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42275 | } | |
42276 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42277 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42278 | } | |
42279 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42280 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42281 | } | |
42282 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42283 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42284 | } | |
42285 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42286 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42287 | } | |
42288 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42289 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42290 | } | |
42291 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42292 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42293 | } | |
42294 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42295 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42296 | } | |
42297 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42298 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42299 | } | |
42300 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42301 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42302 | } | |
42303 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42304 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42305 | } | |
42306 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42307 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42308 | } | |
42309 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42310 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42311 | } | |
42312 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42313 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42314 | } | |
42315 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42316 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42317 | } | |
42318 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42319 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42320 | } | |
42321 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42322 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42323 | } | |
42324 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42325 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42326 | } | |
42327 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42328 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42329 | } | |
42330 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42331 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42332 | } | |
42333 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42334 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42335 | } | |
42336 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42337 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42338 | } | |
42339 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42340 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42341 | } | |
42342 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42343 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42344 | } | |
42345 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42346 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42347 | } | |
42348 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42349 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42350 | } | |
42351 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42352 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42353 | } | |
42354 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42355 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42356 | } | |
42357 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42358 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42359 | } | |
42360 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42361 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42362 | } | |
42363 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42364 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42365 | } | |
42366 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42367 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42368 | } | |
42369 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42370 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42371 | } | |
42372 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42373 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42374 | } | |
42375 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42376 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42377 | } | |
42378 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42379 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42380 | } | |
42381 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42382 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42383 | } | |
42384 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42385 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42386 | } | |
42387 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42388 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42389 | } | |
42390 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42391 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42392 | } | |
42393 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42394 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42395 | } | |
42396 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42397 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42398 | } | |
42399 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42400 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42401 | } | |
42402 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42403 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42404 | } | |
42405 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42406 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42407 | } | |
42408 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42409 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42410 | } | |
42411 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42412 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42413 | } | |
42414 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42415 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42416 | } | |
42417 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42418 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42419 | } | |
42420 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42421 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42422 | } | |
42423 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42424 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42425 | } | |
42426 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42427 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42428 | } | |
42429 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42430 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42431 | } | |
42432 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42433 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42434 | } | |
42435 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42436 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42437 | } | |
42438 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42439 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42440 | } | |
42441 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42442 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42443 | } | |
42444 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42445 | return (void *)((wxObject *) ((wxImage *) x)); | |
42446 | } | |
42447 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42449 | } | |
42450 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42451 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42452 | } | |
42453 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42454 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42455 | } | |
42456 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42457 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42458 | } | |
42459 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42461 | } | |
1e0c8722 RD |
42462 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
42463 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42464 | } | |
d14a1e28 RD |
42465 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
42466 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42467 | } | |
42468 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42469 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42470 | } | |
42471 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42472 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42473 | } | |
42474 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42475 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42476 | } | |
42477 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42478 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42479 | } | |
42480 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42481 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42482 | } | |
42483 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42484 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42485 | } | |
42486 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42487 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42488 | } | |
42489 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42490 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42491 | } | |
42492 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42493 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42494 | } | |
42495 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42496 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42497 | } | |
42498 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42499 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42500 | } | |
42501 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42502 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42503 | } | |
42504 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42505 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42506 | } | |
42507 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42508 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42509 | } | |
42510 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42511 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42512 | } | |
42513 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42514 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42515 | } | |
42516 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42517 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42518 | } | |
42519 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42520 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42521 | } | |
42522 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42523 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42524 | } | |
42525 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42526 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42527 | } | |
42528 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42529 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42530 | } | |
42531 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42532 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42533 | } | |
42534 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42535 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42536 | } | |
42537 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42538 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42539 | } | |
42540 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42541 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42542 | } | |
42543 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42544 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42545 | } | |
42546 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42547 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42548 | } | |
42549 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42550 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42551 | } | |
42552 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42553 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42554 | } | |
42555 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42556 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42557 | } | |
42558 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42559 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42560 | } | |
42561 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42562 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42563 | } | |
42564 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42565 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42566 | } | |
42567 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42568 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42569 | } | |
42570 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42571 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42572 | } | |
42573 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42574 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42575 | } | |
42576 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42577 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42578 | } | |
42579 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42580 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42581 | } | |
42582 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42583 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42584 | } | |
42585 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42586 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42587 | } | |
42588 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42589 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42590 | } | |
42591 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42592 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42593 | } | |
42594 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42595 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42596 | } | |
42597 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42598 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42599 | } | |
42600 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42601 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42602 | } | |
42603 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42604 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42605 | } | |
42606 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42607 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42608 | } | |
42609 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42610 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42611 | } | |
42612 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42613 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42614 | } | |
42615 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42616 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42617 | } | |
42618 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42619 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42620 | } | |
42621 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42622 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42623 | } | |
42624 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42625 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42626 | } | |
42627 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42628 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42629 | } | |
42630 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42631 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42632 | } | |
42633 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42634 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42635 | } | |
42636 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42637 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42638 | } | |
42639 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42640 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42641 | } | |
42642 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42643 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42644 | } | |
42645 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42646 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42647 | } | |
42648 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42649 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42650 | } | |
42651 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42652 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42653 | } | |
15afbcd0 RD |
42654 | 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}}; |
42655 | 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}}; | |
42656 | 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}}; | |
42657 | 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}}; | |
42658 | 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}}; | |
2ef75293 | 42659 | 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}}; |
15afbcd0 RD |
42660 | 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}}; |
42661 | 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}}; | |
42662 | 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}}; | |
42663 | 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}}; | |
42664 | 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}}; | |
42665 | 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}}; | |
42666 | 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}}; | |
42667 | 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}}; | |
42668 | 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}}; | |
42669 | 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}}; | |
42670 | 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}}; | |
42671 | 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}}; | |
42672 | 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}}; | |
42673 | 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}}; | |
42674 | 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}}; | |
42675 | 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}}; | |
42676 | 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}}; | |
42677 | 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}}; | |
42678 | 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}}; | |
42679 | 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}}; | |
42680 | 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}}; | |
42681 | 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}}; | |
42682 | 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}}; | |
42683 | 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}}; | |
42684 | 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}}; | |
42685 | 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}}; | |
42686 | 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}}; | |
42687 | 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}}; | |
42688 | 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}}; | |
42689 | 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}}; | |
42690 | 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}}; | |
74a57fcd | 42691 | 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}}; |
15afbcd0 RD |
42692 | 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}}; |
42693 | 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}}; | |
42694 | 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}}; | |
42695 | 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}}; | |
42696 | 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}}; | |
42697 | 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}}; | |
42698 | 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}}; | |
15afbcd0 RD |
42699 | 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}}; |
42700 | 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}}; | |
42701 | 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}}; | |
42702 | 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 | 42703 | 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}}; |
15afbcd0 RD |
42704 | 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}}; |
42705 | 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}}; | |
42706 | 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}}; | |
42707 | 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}}; | |
42708 | 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}}; | |
42709 | 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}}; | |
42710 | 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}}; | |
42711 | 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}}; | |
42712 | 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}}; | |
42713 | 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}}; | |
42714 | 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}}; | |
42715 | 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}}; | |
42716 | 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}}; | |
42717 | 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}}; | |
42718 | 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}}; | |
42719 | 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}}; | |
42720 | 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}}; | |
42721 | 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}}; | |
42722 | 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}}; | |
42723 | 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}}; | |
42724 | 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}}; | |
42725 | 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}}; | |
42726 | 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}}; | |
42727 | 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}}; | |
42728 | 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}}; | |
42729 | 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}}; | |
42730 | 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}}; | |
42731 | 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}}; | |
42732 | 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}}; | |
42733 | 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}}; | |
42734 | 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}}; | |
42735 | 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}}; | |
42736 | 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}}; | |
42737 | 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}}; | |
42738 | 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}}; | |
42739 | 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}}; | |
42740 | 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}}; | |
42741 | 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}}; | |
42742 | 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}}; | |
42743 | 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}}; | |
42744 | 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}}; | |
42745 | 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}}; | |
42746 | 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}}; | |
42747 | 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}}; | |
42748 | 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}}; | |
42749 | 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}}; | |
42750 | 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}}; | |
42751 | 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}}; | |
42752 | 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}}; | |
42753 | 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}}; | |
42754 | 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}}; | |
42755 | 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}}; | |
42756 | 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}}; | |
42757 | 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}}; | |
42758 | 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}}; | |
42759 | 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}}; | |
42760 | 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}}; | |
42761 | 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}}; | |
42762 | 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 | 42763 | 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}}; |
15afbcd0 RD |
42764 | 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}}; |
42765 | 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}}; | |
42766 | 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}}; | |
42767 | 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}}; | |
42768 | 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}}; | |
42769 | 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}}; | |
42770 | 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}}; | |
d14a1e28 RD |
42771 | |
42772 | static swig_type_info *swig_types_initial[] = { | |
42773 | _swigt__p_wxLayoutConstraints, | |
42774 | _swigt__p_wxRealPoint, | |
42775 | _swigt__p_wxSizerItem, | |
42776 | _swigt__p_wxGBSizerItem, | |
42777 | _swigt__p_wxScrollEvent, | |
2ef75293 | 42778 | _swigt__p_wxEventLoop, |
d14a1e28 RD |
42779 | _swigt__p_wxIndividualLayoutConstraint, |
42780 | _swigt__p_wxSizer, | |
42781 | _swigt__p_wxBoxSizer, | |
42782 | _swigt__p_wxStaticBoxSizer, | |
42783 | _swigt__p_wxGridBagSizer, | |
42784 | _swigt__p_wxAcceleratorEntry, | |
42785 | _swigt__p_wxUpdateUIEvent, | |
42786 | _swigt__p_wxMenu, | |
42787 | _swigt__p_wxEvent, | |
42788 | _swigt__p_wxGridSizer, | |
42789 | _swigt__p_wxFlexGridSizer, | |
42790 | _swigt__p_wxInitDialogEvent, | |
42791 | _swigt__p_wxItemContainer, | |
42792 | _swigt__p_wxNcPaintEvent, | |
42793 | _swigt__p_wxPaintEvent, | |
42794 | _swigt__p_wxSysColourChangedEvent, | |
42795 | _swigt__p_wxMouseCaptureChangedEvent, | |
42796 | _swigt__p_wxDisplayChangedEvent, | |
42797 | _swigt__p_wxPaletteChangedEvent, | |
42798 | _swigt__p_wxControl, | |
42799 | _swigt__p_wxFont, | |
42800 | _swigt__p_wxMenuBarBase, | |
42801 | _swigt__p_wxSetCursorEvent, | |
42802 | _swigt__p_wxFSFile, | |
42803 | _swigt__p_wxCaret, | |
42804 | _swigt__p_wxRegion, | |
42805 | _swigt__p_wxPoint2D, | |
42806 | _swigt__p_int, | |
42807 | _swigt__p_wxSize, | |
42808 | _swigt__p_wxDC, | |
42809 | _swigt__p_wxPySizer, | |
74a57fcd | 42810 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
42811 | _swigt__p_wxNotifyEvent, |
42812 | _swigt__p_wxPyEvent, | |
42813 | _swigt__p_wxPropagationDisabler, | |
42814 | _swigt__p_wxAppTraits, | |
42815 | _swigt__p_wxArrayString, | |
42816 | _swigt__p_wxShowEvent, | |
42817 | _swigt__p_wxToolTip, | |
d14a1e28 RD |
42818 | _swigt__p_wxIconizeEvent, |
42819 | _swigt__p_wxActivateEvent, | |
42820 | _swigt__p_wxMoveEvent, | |
42821 | _swigt__p_wxSizeEvent, | |
c0de73ae | 42822 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
42823 | _swigt__p_wxQueryNewPaletteEvent, |
42824 | _swigt__p_wxWindowCreateEvent, | |
42825 | _swigt__p_wxIdleEvent, | |
42826 | _swigt__p_wxMenuItem, | |
42827 | _swigt__p_wxStaticBox, | |
42828 | _swigt__p_long, | |
42829 | _swigt__p_wxTIFFHandler, | |
42830 | _swigt__p_wxXPMHandler, | |
42831 | _swigt__p_wxPNMHandler, | |
42832 | _swigt__p_wxJPEGHandler, | |
42833 | _swigt__p_wxPCXHandler, | |
42834 | _swigt__p_wxGIFHandler, | |
42835 | _swigt__p_wxPNGHandler, | |
42836 | _swigt__p_wxANIHandler, | |
42837 | _swigt__p_wxMemoryFSHandler, | |
42838 | _swigt__p_wxEvtHandler, | |
42839 | _swigt__p_wxCURHandler, | |
42840 | _swigt__p_wxICOHandler, | |
42841 | _swigt__p_wxBMPHandler, | |
42842 | _swigt__p_wxImageHandler, | |
42843 | _swigt__p_wxFileSystemHandler, | |
42844 | _swigt__p_wxPyFileSystemHandler, | |
42845 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 42846 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
42847 | _swigt__p_wxRect, |
42848 | _swigt__p_wxGBSpan, | |
42849 | _swigt__p_wxPropagateOnce, | |
42850 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 42851 | _swigt__p_char, |
d14a1e28 RD |
42852 | _swigt__p_wxGBPosition, |
42853 | _swigt__p_wxImage, | |
42854 | _swigt__p_wxFrame, | |
42855 | _swigt__p_wxScrollWinEvent, | |
42856 | _swigt__p_wxImageHistogram, | |
42857 | _swigt__p_byte, | |
42858 | _swigt__p_wxPoint, | |
42859 | _swigt__p_wxCursor, | |
42860 | _swigt__p_wxObject, | |
42861 | _swigt__p_wxPyInputStream, | |
42862 | _swigt__p_wxOutputStream, | |
42863 | _swigt__p_wxInputStream, | |
42864 | _swigt__p_wxDateTime, | |
42865 | _swigt__p_wxKeyEvent, | |
42866 | _swigt__p_wxNavigationKeyEvent, | |
42867 | _swigt__p_wxWindowDestroyEvent, | |
42868 | _swigt__p_wxWindow, | |
42869 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
42870 | _swigt__p_wxFileSystem, |
42871 | _swigt__p_wxBitmap, | |
42872 | _swigt__p_wxMenuEvent, | |
42873 | _swigt__p_wxContextMenuEvent, | |
42874 | _swigt__p_unsigned_char, | |
42875 | _swigt__p_wxCloseEvent, | |
42876 | _swigt__p_wxEraseEvent, | |
42877 | _swigt__p_wxMouseEvent, | |
42878 | _swigt__p_wxPyApp, | |
42879 | _swigt__p_wxCommandEvent, | |
42880 | _swigt__p_wxPyCommandEvent, | |
7722248d | 42881 | _swigt__p_wxPyDropTarget, |
c0de73ae | 42882 | _swigt__p_wxQuantize, |
d14a1e28 RD |
42883 | _swigt__p_wxChildFocusEvent, |
42884 | _swigt__p_wxFocusEvent, | |
42885 | _swigt__p_wxDropFilesEvent, | |
42886 | _swigt__p_wxControlWithItems, | |
42887 | _swigt__p_wxColour, | |
42888 | _swigt__p_wxValidator, | |
42889 | _swigt__p_wxPyValidator, | |
42890 | 0 | |
42891 | }; | |
42892 | ||
42893 | ||
42894 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42895 | ||
42896 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 42897 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
42898 | |
42899 | #ifdef __cplusplus | |
42900 | } | |
42901 | #endif | |
42902 | ||
42903 | #ifdef __cplusplus | |
42904 | extern "C" | |
42905 | #endif | |
42906 | SWIGEXPORT(void) SWIG_init(void) { | |
42907 | static PyObject *SWIG_globals = 0; | |
42908 | static int typeinit = 0; | |
42909 | PyObject *m, *d; | |
42910 | int i; | |
42911 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42912 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42913 | d = PyModule_GetDict(m); | |
42914 | ||
42915 | if (!typeinit) { | |
42916 | for (i = 0; swig_types_initial[i]; i++) { | |
42917 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42918 | } | |
42919 | typeinit = 1; | |
42920 | } | |
42921 | SWIG_InstallConstants(d,swig_const_table); | |
42922 | ||
42923 | ||
42924 | #ifndef wxPyUSE_EXPORT | |
42925 | // Make our API structure a CObject so other modules can import it | |
42926 | // from this module. | |
42927 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42928 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42929 | Py_XDECREF(cobj); | |
42930 | #endif | |
42931 | ||
c32bde28 RD |
42932 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
42933 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
42934 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
42935 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
42936 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
42937 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
42938 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
42939 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
42940 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
42941 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
42942 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
42943 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
42944 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
42945 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
42946 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
42947 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
42948 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
42949 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
42950 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
42951 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
42952 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
42953 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
42954 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
42955 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
42956 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
42957 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
42958 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
42959 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
42960 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
42961 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
42962 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
42963 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
42964 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
42965 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
42966 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
42967 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
42968 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
42969 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
42970 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
42971 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
42972 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
42973 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
42974 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
42975 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
42976 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
42977 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
42978 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
42979 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
42980 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
42981 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
42982 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
42983 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
42984 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
42985 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
42986 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
42987 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
42988 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
42989 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
42990 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
42991 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
42992 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
42993 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
42994 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
42995 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
42996 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
42997 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
42998 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
42999 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43000 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43001 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43002 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43003 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43004 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43005 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43006 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43007 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43008 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43009 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43010 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43011 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43012 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43013 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43014 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43015 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43016 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43017 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43018 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43019 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43020 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43021 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43022 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43023 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43024 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43025 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43026 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43027 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43028 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43029 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43030 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43031 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43032 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43033 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43034 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43035 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43036 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43037 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43038 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43039 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43040 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43041 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43042 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43043 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43044 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43045 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43046 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43047 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43048 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43049 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43050 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43051 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43052 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43053 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43054 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43055 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43056 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43057 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43058 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43059 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43060 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43061 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43062 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43063 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43064 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43065 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43066 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43067 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43068 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43069 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43070 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43071 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43072 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43073 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43074 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43075 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43076 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43077 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43078 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43079 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43080 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43081 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43082 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43083 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43084 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43085 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43086 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43087 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43088 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43089 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43090 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43091 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43092 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43093 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43094 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43095 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43096 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43097 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43098 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43099 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43100 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43101 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43102 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43103 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43104 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43105 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43106 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43107 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43108 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43109 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43110 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43111 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43112 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43113 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43114 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43115 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43116 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43117 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43118 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43119 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43120 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43121 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43122 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43123 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43124 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43125 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43126 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43127 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43128 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43129 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43130 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43131 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43132 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43133 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43134 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43135 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43136 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43137 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43138 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43139 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43140 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43141 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43142 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43143 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43144 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43145 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43146 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43147 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43148 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43149 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43150 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43151 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43152 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43153 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43154 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43155 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43156 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43157 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43158 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43159 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43160 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43161 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43162 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43163 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43164 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43165 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43166 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43167 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43168 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43169 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43170 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43171 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43172 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43173 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43174 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43175 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43176 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43177 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43178 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43179 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43180 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43181 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43182 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43183 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43184 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43185 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43186 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43187 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43188 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43189 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43190 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43191 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43192 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43193 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43194 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43195 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43196 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43197 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43198 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43199 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43200 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43201 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43202 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43203 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43204 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43205 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43206 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43207 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43208 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43209 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43210 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43211 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43212 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43213 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43214 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43215 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43216 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43217 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43218 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43219 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43220 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43221 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43222 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43223 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43224 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43225 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43226 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43227 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43228 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43229 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43230 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43231 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43232 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43233 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43234 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43235 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43236 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43237 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43238 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43239 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43240 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43241 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43242 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43243 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43244 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43245 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43246 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43247 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43248 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43249 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43250 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43251 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43252 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43253 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43254 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43255 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43256 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43257 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43258 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43259 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43260 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43261 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43262 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43263 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43264 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43265 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43266 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43267 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43268 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43269 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43270 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43271 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43272 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43273 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43274 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43275 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43276 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43277 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43278 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43279 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43280 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43281 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43282 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43283 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43284 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43285 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43286 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43287 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43288 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43289 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43290 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43291 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43292 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43293 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43294 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43295 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43296 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43297 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43298 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43299 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43300 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43301 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43302 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43303 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43304 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43305 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43306 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43307 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43308 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43309 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43310 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43311 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43312 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43313 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43314 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43315 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43316 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43317 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43318 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43319 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43320 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43321 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43322 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43323 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43324 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43325 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43326 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43327 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43328 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43329 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43330 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43331 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43332 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43333 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43334 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43335 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43336 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43337 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43338 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43339 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43340 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43341 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43342 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43343 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43344 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43345 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43346 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43347 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43348 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43349 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43350 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43351 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43352 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43353 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43354 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43355 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43356 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43357 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43358 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43359 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43360 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43361 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43362 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43363 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43364 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43365 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43366 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43367 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43368 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43369 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43370 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43371 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43372 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43373 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43374 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43375 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43376 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43377 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43378 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43379 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43380 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43381 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43382 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43383 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43384 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43385 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43386 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43387 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43388 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43389 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43390 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43391 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43392 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43393 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43394 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43395 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43396 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43397 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43398 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43399 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43400 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43401 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43402 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43403 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43404 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43405 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43406 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43407 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43408 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43409 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43410 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43411 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43412 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43413 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43414 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43415 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43416 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43417 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43418 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43419 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43420 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43421 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43422 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43423 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43424 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43425 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43426 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43427 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43428 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43429 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43430 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43431 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43432 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43433 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43434 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43435 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43436 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43437 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43438 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43439 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43440 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43441 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43442 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43443 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43444 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43445 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43446 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43447 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43448 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43449 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43450 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43451 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43452 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43453 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43454 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43455 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43456 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43457 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43458 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43459 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43460 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43461 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43462 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43463 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43464 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43465 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43466 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43467 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43468 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43469 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43470 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43471 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43472 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 43473 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 43474 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
c32bde28 RD |
43475 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43476 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43477 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43478 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43479 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43480 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43481 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43482 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43483 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43484 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43485 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43486 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43487 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43488 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43489 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43490 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43491 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43492 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43493 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43494 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43495 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43496 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43497 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43498 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43499 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43500 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43501 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43502 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43503 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43504 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43505 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43506 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43507 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43508 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43509 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43510 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43511 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43512 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43513 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43514 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43515 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43516 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43517 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43518 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43519 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43520 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43521 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43522 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43523 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43524 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43525 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
43526 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43527 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c32bde28 RD |
43528 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43529 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43530 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d14a1e28 RD |
43531 | |
43532 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43533 | ||
43534 | ||
43535 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43536 | ||
43537 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43538 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43539 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43540 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43541 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43542 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c32bde28 RD |
43543 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43544 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43545 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43546 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43547 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43548 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43549 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43550 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43551 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43552 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43553 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43554 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43555 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43556 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43557 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
43558 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43559 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43560 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43561 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43562 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43563 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43564 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43565 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43566 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43567 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43568 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43569 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43570 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43571 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43572 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43573 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43574 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43575 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43576 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43577 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43578 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43579 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43580 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43581 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43582 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43583 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43584 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43585 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43586 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43587 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43588 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43589 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43590 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43591 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43592 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43593 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43594 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43595 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43596 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43597 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43598 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43599 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43600 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43601 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43602 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43603 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43604 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43605 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43606 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43607 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43608 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43609 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43610 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43611 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43612 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43613 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43614 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43615 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43616 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43617 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43618 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43619 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43620 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43621 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43622 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43623 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43624 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43625 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43626 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43627 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43628 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43629 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43630 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43631 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43632 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43633 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43634 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43635 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43636 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43637 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43638 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43639 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43640 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43641 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43642 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43643 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43644 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43645 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43646 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43647 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43648 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43649 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43650 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43651 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43652 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43653 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43654 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43655 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43656 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43657 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43658 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43659 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43660 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43661 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43662 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43663 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43664 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43665 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43666 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43667 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43668 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43669 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43670 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43671 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c32bde28 RD |
43672 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
43673 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
43674 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
43675 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
43676 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
43677 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
43678 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43679 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
43680 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
43681 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
43682 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
43683 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
43684 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43685 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43686 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
43687 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
43688 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
43689 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 43690 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 43691 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
c32bde28 RD |
43692 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
43693 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
43694 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
43695 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
43696 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d14a1e28 | 43697 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 43698 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
c32bde28 RD |
43699 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
43700 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43701 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 43702 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c32bde28 RD |
43703 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
43704 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
43705 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
43706 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
43707 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
43708 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
43709 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
43710 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
43711 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
43712 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
43713 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
43714 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
43715 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
43716 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
43717 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
43718 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
43719 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
43720 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
43721 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d14a1e28 RD |
43722 | |
43723 | // Initialize threading, some globals and such | |
43724 | __wxPyPreStart(d); | |
43725 | ||
43726 | ||
43727 | // Although these are defined in __version__ they need to be here too so | |
43728 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43729 | // versions match. | |
43730 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43731 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43732 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43733 | ||
43734 | } | |
43735 |