]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 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 | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2dbef272 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
8edf1c75 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
0f774bef RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
423f194a | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
210 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
212 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
213 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
214 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
215 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
216 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
217 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
219 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
220 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
222 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
224 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
225 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
226 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
227 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
228 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
229 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
230 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
231 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
232 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
233 | #define SWIGTYPE_p_wxControl swig_types[24] | |
234 | #define SWIGTYPE_p_wxFont swig_types[25] | |
235 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
236 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
237 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
238 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
239 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
240 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
241 | #define SWIGTYPE_p_int swig_types[32] | |
242 | #define SWIGTYPE_p_wxSize swig_types[33] | |
243 | #define SWIGTYPE_p_wxDC swig_types[34] | |
244 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
245 | #define SWIGTYPE_p_wxNotifyEvent swig_types[36] | |
246 | #define SWIGTYPE_p_wxPyEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[38] | |
248 | #define SWIGTYPE_p_wxAppTraits swig_types[39] | |
249 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
250 | #define SWIGTYPE_p_wxShowEvent swig_types[41] | |
251 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
02a34c4c RD |
252 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] |
253 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] | |
254 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
d14a1e28 RD |
257 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48] |
258 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49] | |
259 | #define SWIGTYPE_p_wxIdleEvent swig_types[50] | |
260 | #define SWIGTYPE_p_wxMenuItem swig_types[51] | |
261 | #define SWIGTYPE_p_wxStaticBox swig_types[52] | |
262 | #define SWIGTYPE_p_long swig_types[53] | |
263 | #define SWIGTYPE_p_wxTIFFHandler swig_types[54] | |
264 | #define SWIGTYPE_p_wxXPMHandler swig_types[55] | |
265 | #define SWIGTYPE_p_wxPNMHandler swig_types[56] | |
266 | #define SWIGTYPE_p_wxJPEGHandler swig_types[57] | |
267 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
268 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
269 | #define SWIGTYPE_p_wxPNGHandler swig_types[60] | |
270 | #define SWIGTYPE_p_wxANIHandler swig_types[61] | |
271 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62] | |
02a34c4c RD |
272 | #define SWIGTYPE_p_wxEvtHandler swig_types[63] |
273 | #define SWIGTYPE_p_wxCURHandler swig_types[64] | |
274 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
275 | #define SWIGTYPE_p_wxBMPHandler swig_types[66] | |
276 | #define SWIGTYPE_p_wxImageHandler swig_types[67] | |
277 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[68] | |
278 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69] | |
279 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
280 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
d14a1e28 RD |
281 | #define SWIGTYPE_p_wxRect swig_types[72] |
282 | #define SWIGTYPE_p_wxGBSpan swig_types[73] | |
283 | #define SWIGTYPE_p_wxPropagateOnce swig_types[74] | |
284 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[75] | |
8edf1c75 RD |
285 | #define SWIGTYPE_p_char swig_types[76] |
286 | #define SWIGTYPE_p_wxGBPosition swig_types[77] | |
287 | #define SWIGTYPE_p_wxImage swig_types[78] | |
288 | #define SWIGTYPE_p_wxFrame swig_types[79] | |
289 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[80] | |
290 | #define SWIGTYPE_p_wxImageHistogram swig_types[81] | |
291 | #define SWIGTYPE_p_byte swig_types[82] | |
292 | #define SWIGTYPE_p_wxPoint swig_types[83] | |
293 | #define SWIGTYPE_p_wxCursor swig_types[84] | |
294 | #define SWIGTYPE_p_wxObject swig_types[85] | |
295 | #define SWIGTYPE_p_wxPyInputStream swig_types[86] | |
296 | #define SWIGTYPE_p_wxOutputStream swig_types[87] | |
297 | #define SWIGTYPE_p_wxInputStream swig_types[88] | |
298 | #define SWIGTYPE_p_wxDateTime swig_types[89] | |
299 | #define SWIGTYPE_p_wxKeyEvent swig_types[90] | |
300 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91] | |
301 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[92] | |
302 | #define SWIGTYPE_p_wxWindow swig_types[93] | |
303 | #define SWIGTYPE_p_wxMenuBar swig_types[94] | |
02a34c4c RD |
304 | #define SWIGTYPE_p_wxFileSystem swig_types[95] |
305 | #define SWIGTYPE_p_wxBitmap swig_types[96] | |
306 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
307 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[98] | |
308 | #define SWIGTYPE_p_unsigned_char swig_types[99] | |
309 | #define SWIGTYPE_p_wxCloseEvent swig_types[100] | |
310 | #define SWIGTYPE_p_wxEraseEvent swig_types[101] | |
311 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
312 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
313 | #define SWIGTYPE_p_wxCommandEvent swig_types[104] | |
314 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[105] | |
315 | #define SWIGTYPE_p_wxPyDropTarget swig_types[106] | |
316 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[107] | |
317 | #define SWIGTYPE_p_wxFocusEvent swig_types[108] | |
318 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[109] | |
319 | #define SWIGTYPE_p_wxControlWithItems swig_types[110] | |
320 | #define SWIGTYPE_p_wxColour swig_types[111] | |
321 | #define SWIGTYPE_p_wxValidator swig_types[112] | |
322 | #define SWIGTYPE_p_wxPyValidator swig_types[113] | |
323 | static swig_type_info *swig_types[115]; | |
d14a1e28 RD |
324 | |
325 | /* -------- TYPES TABLE (END) -------- */ | |
326 | ||
327 | ||
328 | /*----------------------------------------------- | |
329 | @(target):= _core.so | |
330 | ------------------------------------------------*/ | |
331 | #define SWIG_init init_core | |
332 | ||
333 | #define SWIG_name "_core" | |
334 | ||
2f4c0a16 | 335 | /* Auxiliar swig macros */ |
8edf1c75 | 336 | |
8edf1c75 | 337 | #ifdef __cplusplus |
2f4c0a16 | 338 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 339 | #define SWIGSTATIC(a) static a |
2f4c0a16 RD |
340 | #define swig_new_array(type, size) (new type[(size)]) |
341 | #define swig_delete_array(cptr) delete[] cptr | |
342 | #define swig_const_cast(type,a) const_cast<type>(a) | |
343 | #define swig_static_cast(type,a) static_cast<type>(a) | |
344 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
8edf1c75 | 345 | |
8edf1c75 | 346 | #ifdef HAVE_NUMERIC_CAST |
2f4c0a16 | 347 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
8edf1c75 | 348 | #else |
2f4c0a16 | 349 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
8edf1c75 RD |
350 | #endif |
351 | ||
2f4c0a16 RD |
352 | #else /* C case */ |
353 | ||
354 | #define SWIGSTATICINLINE(a) static a | |
355 | #define SWIGSTATIC(a) static a | |
356 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
357 | #define swig_delete_array(cptr) free((char*)cptr) | |
358 | #define swig_const_cast(type,a) (type)(a) | |
359 | #define swig_static_cast(type,a) (type)(a) | |
360 | #define swig_reinterpret_cast(type,a) (type)(a) | |
361 | #define swig_numeric_cast(type,a) (type)(a) | |
362 | ||
363 | #endif /* __cplusplus */ | |
8edf1c75 RD |
364 | |
365 | ||
2f4c0a16 RD |
366 | #define SWIG_FromSignedChar PyInt_FromLong |
367 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
368 | #define SWIG_FromShort PyInt_FromLong | |
369 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
370 | #define SWIG_FromInt PyInt_FromLong | |
371 | #define SWIG_FromLong PyInt_FromLong | |
372 | #define SWIG_FromFloat PyFloat_FromDouble | |
373 | #define SWIG_FromDouble PyFloat_FromDouble | |
374 | #define SWIG_FromFloat PyFloat_FromDouble | |
375 | #define SWIG_FromDouble PyFloat_FromDouble | |
8edf1c75 RD |
376 | |
377 | ||
d14a1e28 RD |
378 | #include "wx/wxPython/wxPython_int.h" |
379 | #include "wx/wxPython/pyclasses.h" | |
380 | ||
381 | ||
382 | #ifndef wxPyUSE_EXPORT | |
383 | // Helper functions for dealing with SWIG objects and such. These are | |
384 | // located here so they know about the SWIG types and functions declared | |
385 | // in the wrapper code. | |
386 | ||
387 | #include <wx/hashmap.h> | |
388 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
389 | ||
390 | ||
391 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
392 | // name of a class either looks up the type info in the cache, or scans the | |
393 | // SWIG tables for it. | |
394 | extern PyObject* wxPyPtrTypeMap; | |
395 | static | |
396 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
397 | ||
398 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
399 | ||
400 | if (typeInfoCache == NULL) | |
401 | typeInfoCache = new wxPyTypeInfoHashMap; | |
402 | ||
403 | wxString name(className); | |
404 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
405 | ||
406 | if (! swigType) { | |
407 | // it wasn't in the cache, so look it up from SWIG | |
408 | name.Append(wxT(" *")); | |
409 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
410 | ||
411 | // if it still wasn't found, try looking for a mapped name | |
412 | if (!swigType) { | |
413 | PyObject* item; | |
414 | name = className; | |
415 | ||
416 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
417 | (char*)(const char*)name.mbc_str())) != NULL) { | |
418 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
419 | name.Append(wxT(" *")); | |
420 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
421 | } | |
422 | } | |
423 | if (swigType) { | |
424 | // and add it to the map if found | |
425 | (*typeInfoCache)[className] = swigType; | |
426 | } | |
427 | } | |
428 | return swigType; | |
429 | } | |
430 | ||
431 | ||
432 | // Check if a class name is a type known to SWIG | |
433 | bool wxPyCheckSwigType(const wxChar* className) { | |
434 | ||
435 | swig_type_info* swigType = wxPyFindSwigType(className); | |
436 | return swigType != NULL; | |
437 | } | |
438 | ||
439 | ||
440 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
441 | // object for it. | |
442 | PyObject* wxPyConstructObject(void* ptr, | |
443 | const wxChar* className, | |
444 | int setThisOwn) { | |
445 | ||
446 | swig_type_info* swigType = wxPyFindSwigType(className); | |
447 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
448 | ||
449 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
450 | } | |
451 | ||
452 | ||
453 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
454 | // Ensures that the proxy object is of the specified (or derived) type. If | |
455 | // not able to perform the conversion then a Python exception is set and the | |
423f194a | 456 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
457 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
458 | const wxChar* className) { | |
459 | ||
460 | swig_type_info* swigType = wxPyFindSwigType(className); | |
423f194a | 461 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
462 | |
463 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
464 | } | |
465 | ||
466 | ||
467 | // Make a SWIGified pointer object suitable for a .this attribute | |
468 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
469 | ||
470 | PyObject* robj = NULL; | |
471 | ||
472 | swig_type_info* swigType = wxPyFindSwigType(className); | |
473 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
474 | ||
475 | #ifdef SWIG_COBJECT_TYPES | |
476 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
477 | #else | |
478 | { | |
479 | char result[1024]; | |
480 | char *r = result; | |
481 | *(r++) = '_'; | |
482 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
483 | strcpy(r, swigType->name); | |
484 | robj = PyString_FromString(result); | |
485 | } | |
486 | #endif | |
487 | ||
488 | return robj; | |
489 | } | |
490 | ||
491 | ||
492 | ||
493 | ||
494 | // Export a C API in a struct. Other modules will be able to load this from | |
495 | // the wx.core module and will then have safe access to these functions, even if | |
496 | // they are located in another shared library. | |
497 | static wxPyCoreAPI API = { | |
498 | ||
499 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
500 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
501 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
502 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
503 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
504 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
505 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
506 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
507 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
508 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
509 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
510 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
511 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
512 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
513 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
514 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
515 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
516 | ||
517 | wxPyCheckSwigType, | |
518 | wxPyConstructObject, | |
519 | wxPyConvertSwigPtr, | |
520 | wxPyMakeSwigPtr, | |
521 | ||
522 | wxPyBeginAllowThreads, | |
523 | wxPyEndAllowThreads, | |
524 | wxPyBeginBlockThreads, | |
525 | wxPyEndBlockThreads, | |
526 | ||
527 | wxPy_ConvertList, | |
528 | ||
529 | wxString_in_helper, | |
530 | Py2wxString, | |
531 | wx2PyString, | |
532 | ||
533 | byte_LIST_helper, | |
534 | int_LIST_helper, | |
535 | long_LIST_helper, | |
536 | string_LIST_helper, | |
537 | wxPoint_LIST_helper, | |
538 | wxBitmap_LIST_helper, | |
539 | wxString_LIST_helper, | |
540 | wxAcceleratorEntry_LIST_helper, | |
541 | ||
542 | wxSize_helper, | |
543 | wxPoint_helper, | |
544 | wxRealPoint_helper, | |
545 | wxRect_helper, | |
546 | wxColour_helper, | |
547 | wxPoint2D_helper, | |
548 | ||
549 | wxPySimple_typecheck, | |
550 | wxColour_typecheck, | |
551 | ||
552 | wxPyCBH_setCallbackInfo, | |
553 | wxPyCBH_findCallback, | |
554 | wxPyCBH_callCallback, | |
555 | wxPyCBH_callCallbackObj, | |
556 | wxPyCBH_delete, | |
557 | ||
558 | wxPyMake_wxObject, | |
559 | wxPyMake_wxSizer, | |
560 | wxPyPtrTypeMap_Add, | |
561 | wxPy2int_seq_helper, | |
562 | wxPy4int_seq_helper, | |
563 | wxArrayString2PyList_helper, | |
564 | wxArrayInt2PyList_helper, | |
565 | ||
566 | wxPyClientData_dtor, | |
567 | wxPyUserData_dtor, | |
568 | wxPyOORClientData_dtor, | |
569 | ||
570 | wxPyCBInputStream_create, | |
571 | ||
572 | wxPyInstance_Check, | |
573 | wxPySwigInstance_Check | |
574 | ||
575 | }; | |
576 | ||
577 | #endif | |
578 | ||
579 | ||
d14a1e28 RD |
580 | #if ! wxUSE_HOTKEY |
581 | enum wxHotkeyModifier | |
582 | { | |
583 | wxMOD_NONE = 0, | |
584 | wxMOD_ALT = 1, | |
585 | wxMOD_CONTROL = 2, | |
586 | wxMOD_SHIFT = 4, | |
587 | wxMOD_WIN = 8 | |
588 | }; | |
589 | #define wxEVT_HOTKEY 9999 | |
590 | #endif | |
591 | ||
cbd72d4f | 592 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
593 | wxString wxObject_GetClassName(wxObject *self){ |
594 | return self->GetClassInfo()->GetClassName(); | |
595 | } | |
596 | void wxObject_Destroy(wxObject *self){ | |
597 | delete self; | |
598 | } | |
599 | ||
600 | #ifndef __WXMAC__ | |
601 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
602 | #endif | |
603 | ||
8edf1c75 | 604 | |
2f4c0a16 RD |
605 | #include <limits.h> |
606 | ||
607 | ||
608 | SWIGSTATICINLINE(long) | |
609 | SWIG_CheckLongInRange(long value, const char* type, | |
610 | long min_value, long max_value) | |
611 | { | |
612 | if (!PyErr_Occurred()) { | |
613 | if (value < min_value) { | |
614 | PyObject *err = | |
615 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
616 | value, type, min_value); | |
617 | ||
618 | PyErr_SetObject(PyExc_OverflowError, err); | |
619 | Py_DECREF(err); | |
620 | } else if (value > max_value) { | |
621 | PyObject *err = | |
622 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
623 | value, type, max_value); | |
624 | PyErr_SetObject(PyExc_OverflowError, err); | |
625 | Py_DECREF(err); | |
626 | } | |
627 | } | |
628 | return value; | |
629 | } | |
630 | ||
631 | ||
632 | SWIGSTATICINLINE(long) | |
633 | SWIG_AsLong(PyObject * obj) | |
634 | { | |
635 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
636 | } | |
637 | ||
638 | ||
639 | #if INT_MAX != LONG_MAX | |
640 | SWIGSTATICINLINE(int) | |
641 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 642 | { |
2f4c0a16 RD |
643 | return swig_numeric_cast(int, |
644 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
645 | "int", INT_MIN, INT_MAX)); | |
646 | } | |
647 | #else | |
648 | #define SWIG_AsInt SWIG_AsLong | |
649 | #endif | |
650 | ||
651 | ||
652 | SWIGSTATICINLINE(int) | |
653 | SWIG_CheckInt(PyObject* obj) | |
654 | { | |
655 | SWIG_AsInt(obj); | |
656 | if (PyErr_Occurred()) { | |
657 | PyErr_Clear(); | |
658 | return 0; | |
659 | } else { | |
660 | return 1; | |
661 | } | |
8edf1c75 RD |
662 | } |
663 | ||
423f194a | 664 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
665 | wxPyBeginBlockThreads(); |
666 | PyObject* tup = PyTuple_New(2); | |
667 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
668 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
669 | wxPyEndBlockThreads(); | |
670 | return tup; | |
671 | } | |
8edf1c75 | 672 | |
2f4c0a16 RD |
673 | SWIGSTATICINLINE(double) |
674 | SWIG_AsDouble(PyObject *obj) | |
8edf1c75 | 675 | { |
2f4c0a16 | 676 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : |
8edf1c75 | 677 | #if HAVE_LONG_LONG |
2f4c0a16 | 678 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); |
8edf1c75 | 679 | #else |
2f4c0a16 | 680 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); |
8edf1c75 RD |
681 | #endif |
682 | if (PyErr_Occurred()) { | |
683 | PyErr_Clear(); | |
684 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
685 | } | |
2f4c0a16 RD |
686 | return val; |
687 | } | |
688 | ||
689 | ||
690 | SWIGSTATICINLINE(int) | |
691 | SWIG_CheckDouble(PyObject* obj) | |
692 | { | |
693 | SWIG_AsDouble(obj); | |
694 | if (PyErr_Occurred()) { | |
695 | PyErr_Clear(); | |
696 | return 0; | |
697 | } else { | |
698 | return 1; | |
699 | } | |
8edf1c75 RD |
700 | } |
701 | ||
d14a1e28 RD |
702 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
703 | self->x = x; | |
704 | self->y = y; | |
705 | } | |
423f194a | 706 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
707 | wxPyBeginBlockThreads(); |
708 | PyObject* tup = PyTuple_New(2); | |
709 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
710 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
711 | wxPyEndBlockThreads(); | |
712 | return tup; | |
713 | } | |
8edf1c75 | 714 | |
2f4c0a16 RD |
715 | SWIGSTATICINLINE(int) |
716 | SWIG_CheckLong(PyObject* obj) | |
8edf1c75 | 717 | { |
2f4c0a16 RD |
718 | SWIG_AsLong(obj); |
719 | if (PyErr_Occurred()) { | |
720 | PyErr_Clear(); | |
721 | return 0; | |
722 | } else { | |
723 | return 1; | |
724 | } | |
8edf1c75 RD |
725 | } |
726 | ||
d14a1e28 RD |
727 | void wxPoint_Set(wxPoint *self,long x,long y){ |
728 | self->x = x; | |
729 | self->y = y; | |
730 | } | |
423f194a | 731 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
732 | wxPyBeginBlockThreads(); |
733 | PyObject* tup = PyTuple_New(2); | |
734 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
735 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
736 | wxPyEndBlockThreads(); | |
737 | return tup; | |
738 | } | |
739 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
740 | self->x = x; | |
741 | self->y = y; | |
742 | self->width = width; | |
743 | self->height = height; | |
744 | } | |
423f194a | 745 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
746 | wxPyBeginBlockThreads(); |
747 | PyObject* tup = PyTuple_New(4); | |
748 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
749 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
750 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
751 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
752 | wxPyEndBlockThreads(); | |
753 | return tup; | |
754 | } | |
755 | ||
756 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
757 | wxRegion reg1(*r1); | |
758 | wxRegion reg2(*r2); | |
759 | wxRect dest(0,0,0,0); | |
760 | PyObject* obj; | |
761 | ||
762 | reg1.Intersect(reg2); | |
763 | dest = reg1.GetBox(); | |
764 | ||
765 | if (dest != wxRect(0,0,0,0)) { | |
766 | wxPyBeginBlockThreads(); | |
767 | wxRect* newRect = new wxRect(dest); | |
423f194a | 768 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
769 | wxPyEndBlockThreads(); |
770 | return obj; | |
771 | } | |
772 | Py_INCREF(Py_None); | |
773 | return Py_None; | |
774 | } | |
775 | ||
776 | ||
777 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
778 | PyObject* o2; | |
779 | PyObject* o3; | |
780 | ||
781 | if (!target) { | |
782 | target = o; | |
783 | } else if (target == Py_None) { | |
784 | Py_DECREF(Py_None); | |
785 | target = o; | |
786 | } else { | |
787 | if (!PyTuple_Check(target)) { | |
788 | o2 = target; | |
789 | target = PyTuple_New(1); | |
790 | PyTuple_SetItem(target, 0, o2); | |
791 | } | |
792 | o3 = PyTuple_New(1); | |
793 | PyTuple_SetItem(o3, 0, o); | |
794 | ||
795 | o2 = target; | |
796 | target = PySequence_Concat(o2, o3); | |
797 | Py_DECREF(o2); | |
798 | Py_DECREF(o3); | |
799 | } | |
800 | return target; | |
801 | } | |
802 | ||
803 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
804 | self->m_x = x; | |
805 | self->m_y = y; | |
806 | } | |
423f194a | 807 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
808 | wxPyBeginBlockThreads(); |
809 | PyObject* tup = PyTuple_New(2); | |
810 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
811 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
812 | wxPyEndBlockThreads(); | |
813 | return tup; | |
814 | } | |
815 | ||
816 | #include "wx/wxPython/pyistream.h" | |
817 | ||
818 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
819 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
820 | if (wxis) | |
821 | return new wxPyInputStream(wxis); | |
822 | else | |
823 | return NULL; | |
824 | } | |
8edf1c75 | 825 | |
2f4c0a16 RD |
826 | SWIGSTATICINLINE(PyObject*) |
827 | SWIG_FromChar(char c) | |
8edf1c75 RD |
828 | { |
829 | return PyString_FromStringAndSize(&c,1); | |
830 | } | |
831 | ||
832 | ||
2f4c0a16 RD |
833 | SWIGSTATICINLINE(PyObject* ) |
834 | SWIG_FromUnsignedLong(unsigned long value) | |
835 | { | |
836 | return (value > LONG_MAX) ? | |
837 | PyLong_FromUnsignedLong(value) | |
838 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
839 | } | |
840 | ||
841 | ||
842 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
843 | SWIGSTATIC(int) | |
844 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
8edf1c75 | 845 | { |
2f4c0a16 RD |
846 | static swig_type_info* pchar_info = 0; |
847 | int psize = 0; | |
848 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
849 | ||
850 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
851 | PyErr_Clear(); | |
852 | PyString_AsStringAndSize(obj, cptr, &psize); | |
853 | if (PyErr_Occurred()) { | |
854 | PyErr_Clear(); | |
855 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
856 | } | |
857 | if (size) *size = psize; | |
858 | return 0; | |
859 | } else { | |
860 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
861 | return 1; | |
862 | } | |
8edf1c75 RD |
863 | } |
864 | ||
865 | ||
2f4c0a16 RD |
866 | SWIGSTATIC(void) |
867 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
868 | { | |
869 | char* cptr; size_t csize; | |
870 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
871 | if (PyErr_Occurred()) { | |
872 | PyErr_Clear(); | |
873 | PyObject *err = | |
874 | PyString_FromFormat("a char array of size %d is expected", size); | |
875 | PyErr_SetObject(PyExc_TypeError, err); | |
876 | Py_DECREF(err); | |
877 | } else { | |
878 | /* in C (but not in C++) you can do: | |
879 | ||
880 | char x[5] = "hello"; | |
881 | ||
882 | ie, assing the array using an extra '0' char. | |
883 | */ | |
884 | #ifndef __cplusplus | |
885 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
886 | #endif | |
887 | if (csize > size) { | |
888 | PyObject *err = | |
889 | PyString_FromFormat("a char array of maximum size %d is expected", | |
890 | size); | |
891 | PyErr_SetObject(PyExc_TypeError, err); | |
892 | Py_DECREF(err); | |
893 | } else { | |
894 | if (csize) memcpy(carray, cptr, csize); | |
895 | if (csize < size) memset(carray + csize, 0, size - csize); | |
896 | } | |
897 | } | |
898 | } | |
899 | ||
900 | ||
901 | SWIGSTATICINLINE(char) | |
902 | SWIG_AsChar(PyObject *obj) | |
8edf1c75 RD |
903 | { |
904 | char c = 0; | |
905 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
2f4c0a16 RD |
906 | c = swig_numeric_cast(char, |
907 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
908 | "char", CHAR_MIN, CHAR_MAX)); | |
8edf1c75 | 909 | } else { |
2f4c0a16 RD |
910 | SWIG_AsCharArray(obj, &c, 1); |
911 | if (PyErr_Occurred()) { | |
912 | PyErr_Clear(); | |
8edf1c75 RD |
913 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
914 | } | |
915 | } | |
916 | return c; | |
917 | } | |
918 | ||
2f4c0a16 RD |
919 | |
920 | SWIGSTATICINLINE(int) | |
921 | SWIG_CheckChar(PyObject* obj) | |
922 | { | |
923 | SWIG_AsChar(obj); | |
924 | if (PyErr_Occurred()) { | |
925 | PyErr_Clear(); | |
926 | return 0; | |
927 | } else { | |
928 | return 1; | |
929 | } | |
930 | } | |
931 | ||
d14a1e28 RD |
932 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
933 | // We use only strings for the streams, not unicode | |
934 | PyObject* str = PyObject_Str(obj); | |
935 | if (! str) { | |
936 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
937 | return; | |
938 | } | |
939 | self->Write(PyString_AS_STRING(str), | |
940 | PyString_GET_SIZE(str)); | |
941 | Py_DECREF(str); | |
942 | } | |
943 | ||
944 | #include "wx/wxPython/pyistream.h" | |
945 | ||
946 | ||
947 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
948 | { | |
949 | public: | |
950 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
951 | ||
952 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
953 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
954 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
955 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
956 | ||
957 | wxString GetProtocol(const wxString& location) { | |
958 | return wxFileSystemHandler::GetProtocol(location); | |
959 | } | |
960 | ||
961 | wxString GetLeftLocation(const wxString& location) { | |
962 | return wxFileSystemHandler::GetLeftLocation(location); | |
963 | } | |
964 | ||
965 | wxString GetAnchor(const wxString& location) { | |
966 | return wxFileSystemHandler::GetAnchor(location); | |
967 | } | |
968 | ||
969 | wxString GetRightLocation(const wxString& location) { | |
970 | return wxFileSystemHandler::GetRightLocation(location); | |
971 | } | |
972 | ||
973 | wxString GetMimeTypeFromExt(const wxString& location) { | |
974 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
975 | } | |
976 | ||
977 | PYPRIVATE; | |
978 | }; | |
979 | ||
980 | ||
981 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
982 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
983 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
984 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
985 | ||
986 | ||
2f4c0a16 RD |
987 | SWIGSTATICINLINE(bool) |
988 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
989 | { |
990 | return PyObject_IsTrue(obj) ? true : false; | |
991 | } | |
992 | ||
993 | ||
2f4c0a16 RD |
994 | SWIGSTATICINLINE(int) |
995 | SWIG_CheckBool(PyObject* obj) | |
996 | { | |
997 | SWIG_AsBool(obj); | |
998 | if (PyErr_Occurred()) { | |
999 | PyErr_Clear(); | |
1000 | return 0; | |
1001 | } else { | |
1002 | return 1; | |
1003 | } | |
1004 | } | |
1005 | ||
1006 | ||
d14a1e28 RD |
1007 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1008 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1009 | return fname.GetFullPath(); | |
1010 | } | |
1011 | ||
1012 | ||
1013 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1014 | wxImage& image, | |
1015 | long type) { | |
1016 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1017 | } | |
1018 | ||
1019 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1020 | const wxBitmap& bitmap, | |
1021 | long type) { | |
1022 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1023 | } | |
1024 | ||
1025 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1026 | PyObject* data) { | |
1027 | wxMemoryFSHandler::AddFile(filename, | |
1028 | // TODO: Verify data type | |
1029 | (void*)PyString_AsString(data), | |
1030 | (size_t)PyString_Size(data)); | |
1031 | } | |
1032 | ||
1033 | ||
1034 | #include "wx/wxPython/pyistream.h" | |
1035 | ||
8edf1c75 | 1036 | |
2f4c0a16 RD |
1037 | SWIGSTATICINLINE(unsigned long) |
1038 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1039 | unsigned long max_value) | |
1040 | { | |
1041 | if (!PyErr_Occurred()) { | |
1042 | if (value > max_value) { | |
1043 | PyObject *err = | |
1044 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1045 | value, type, max_value); | |
1046 | PyErr_SetObject(PyExc_OverflowError, err); | |
1047 | Py_DECREF(err); | |
1048 | } | |
1049 | } | |
1050 | return value; | |
1051 | } | |
1052 | ||
1053 | ||
1054 | SWIGSTATICINLINE(unsigned long) | |
1055 | SWIG_AsUnsignedLong(PyObject * obj) | |
1056 | { | |
1057 | if (PyLong_Check(obj)) { | |
1058 | return PyLong_AsUnsignedLong(obj); | |
1059 | } else { | |
1060 | long i = PyInt_AsLong(obj); | |
1061 | if ( !PyErr_Occurred() && (i < 0)) { | |
1062 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
1063 | } | |
1064 | return i; | |
1065 | } | |
1066 | } | |
1067 | ||
1068 | ||
1069 | SWIGSTATICINLINE(unsigned char) | |
1070 | SWIG_AsUnsignedChar(PyObject *obj) | |
8edf1c75 | 1071 | { |
2f4c0a16 RD |
1072 | return swig_numeric_cast(unsigned char, |
1073 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1074 | "unsigned char", UCHAR_MAX)); | |
1075 | } | |
1076 | ||
1077 | ||
1078 | SWIGSTATICINLINE(int) | |
1079 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1080 | { | |
1081 | SWIG_AsUnsignedChar(obj); | |
1082 | if (PyErr_Occurred()) { | |
1083 | PyErr_Clear(); | |
1084 | return 0; | |
1085 | } else { | |
1086 | return 1; | |
1087 | } | |
8edf1c75 RD |
1088 | } |
1089 | ||
d14a1e28 RD |
1090 | wxImage *new_wxImage(int width,int height,bool clear){ |
1091 | if (width > 0 && height > 0) | |
1092 | return new wxImage(width, height, clear); | |
1093 | else | |
1094 | return new wxImage; | |
1095 | } | |
1096 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
1097 | return new wxImage(bitmap.ConvertToImage()); | |
1098 | } | |
1099 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1100 | // Copy the source data so the wxImage can clean it up later | |
1101 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1102 | if (copy == NULL) { | |
1103 | PyErr_NoMemory(); | |
1104 | return NULL; | |
1105 | } | |
1106 | memcpy(copy, data, width*height*3); | |
423f194a | 1107 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
1108 | } |
1109 | PyObject *wxImage_GetData(wxImage *self){ | |
1110 | unsigned char* data = self->GetData(); | |
1111 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1112 | PyObject* rv; | |
1113 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1114 | return rv; | |
1115 | } | |
1116 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1117 | unsigned char* dataPtr; | |
1118 | ||
1119 | if (! PyString_Check(data)) { | |
1120 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1121 | return /* NULL */ ; | |
1122 | } | |
1123 | ||
1124 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1125 | dataPtr = (unsigned char*) malloc(len); | |
1126 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1127 | self->SetData(dataPtr); | |
1128 | // wxImage takes ownership of dataPtr... | |
1129 | } | |
1130 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1131 | unsigned char* data = self->GetData(); | |
1132 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1133 | PyObject* rv; | |
1134 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1135 | return rv; | |
1136 | } | |
1137 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1138 | unsigned char* buffer; | |
1139 | int size; | |
1140 | ||
1141 | wxPyBeginBlockThreads(); | |
1142 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1143 | goto done; | |
1144 | ||
1145 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1146 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1147 | goto done; | |
1148 | } | |
1149 | self->SetData(buffer); | |
1150 | done: | |
1151 | wxPyEndBlockThreads(); | |
1152 | } | |
1153 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1154 | unsigned char* data = self->GetAlpha(); | |
1155 | if (! data) { | |
1156 | RETURN_NONE(); | |
1157 | } else { | |
1158 | int len = self->GetWidth() * self->GetHeight(); | |
1159 | PyObject* rv; | |
1160 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1161 | return rv; | |
1162 | } | |
1163 | } | |
1164 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1165 | unsigned char* dataPtr; | |
1166 | ||
1167 | if (! PyString_Check(data)) { | |
1168 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1169 | return /* NULL */ ; | |
1170 | } | |
1171 | ||
1172 | size_t len = self->GetWidth() * self->GetHeight(); | |
1173 | dataPtr = (unsigned char*) malloc(len); | |
1174 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1175 | self->SetAlpha(dataPtr); | |
1176 | // wxImage takes ownership of dataPtr... | |
1177 | } | |
1178 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1179 | unsigned char* data = self->GetAlpha(); | |
1180 | int len = self->GetWidth() * self->GetHeight(); | |
1181 | PyObject* rv; | |
1182 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1183 | return rv; | |
1184 | } | |
1185 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1186 | unsigned char* buffer; | |
1187 | int size; | |
1188 | ||
1189 | wxPyBeginBlockThreads(); | |
1190 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1191 | goto done; | |
1192 | ||
1193 | if (size != self->GetWidth() * self->GetHeight()) { | |
1194 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1195 | goto done; | |
1196 | } | |
1197 | self->SetAlpha(buffer); | |
1198 | done: | |
1199 | wxPyEndBlockThreads(); | |
1200 | } | |
2f4c0a16 RD |
1201 | |
1202 | SWIGSTATICINLINE(int) | |
1203 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1204 | { | |
1205 | SWIG_AsUnsignedLong(obj); | |
1206 | if (PyErr_Occurred()) { | |
1207 | PyErr_Clear(); | |
1208 | return 0; | |
1209 | } else { | |
1210 | return 1; | |
1211 | } | |
1212 | } | |
1213 | ||
d14a1e28 RD |
1214 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1215 | wxBitmap bitmap(*self); | |
1216 | return bitmap; | |
1217 | } | |
1218 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1219 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1220 | wxBitmap bitmap( mono, 1 ); | |
1221 | return bitmap; | |
1222 | } | |
1223 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1224 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1225 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1226 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1227 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1228 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1229 | if (PyCallable_Check(func)) { | |
1230 | self->Connect(id, lastId, eventType, | |
1231 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1232 | new wxPyCallback(func)); | |
1233 | } | |
1234 | else if (func == Py_None) { | |
1235 | self->Disconnect(id, lastId, eventType, | |
1236 | (wxObjectEventFunction) | |
1237 | &wxPyCallback::EventThunker); | |
1238 | } | |
1239 | else { | |
1240 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1241 | } | |
1242 | } | |
1243 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1244 | return self->Disconnect(id, lastId, eventType, | |
1245 | (wxObjectEventFunction) | |
1246 | &wxPyCallback::EventThunker); | |
1247 | } | |
1248 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1249 | if (_self && _self != Py_None) { | |
1250 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1251 | } | |
1252 | else { | |
1253 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1254 | if (data) { | |
1255 | self->SetClientObject(NULL); // This will delete it too | |
1256 | } | |
1257 | } | |
1258 | } | |
1259 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
41f1cec7 RD |
1260 | #if wxUSE_UNICODE |
1261 | return self->m_uniChar; | |
1262 | #else | |
d14a1e28 | 1263 | return 0; |
41f1cec7 | 1264 | #endif |
d14a1e28 | 1265 | } |
8edf1c75 | 1266 | |
2f4c0a16 RD |
1267 | #if UINT_MAX < LONG_MAX |
1268 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1269 | #else | |
1270 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1271 | #endif | |
8edf1c75 RD |
1272 | |
1273 | ||
2f4c0a16 RD |
1274 | #if UINT_MAX != ULONG_MAX |
1275 | SWIGSTATICINLINE(unsigned int) | |
1276 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 1277 | { |
2f4c0a16 RD |
1278 | return swig_numeric_cast(unsigned int, |
1279 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1280 | "unsigned int", UINT_MAX)); | |
1281 | } | |
1282 | #else | |
1283 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1284 | #endif | |
1285 | ||
1286 | ||
1287 | SWIGSTATICINLINE(int) | |
1288 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1289 | { | |
1290 | SWIG_AsUnsignedInt(obj); | |
1291 | if (PyErr_Occurred()) { | |
1292 | PyErr_Clear(); | |
1293 | return 0; | |
1294 | } else { | |
1295 | return 1; | |
1296 | } | |
8edf1c75 RD |
1297 | } |
1298 | ||
d14a1e28 RD |
1299 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1300 | self->m_size = size; | |
1301 | } | |
1302 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1303 | self->m_pos = pos; | |
1304 | } | |
1305 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1306 | int count = self->GetNumberOfFiles(); | |
1307 | wxString* files = self->GetFiles(); | |
1308 | PyObject* list = PyList_New(count); | |
1309 | ||
1310 | if (!list) { | |
1311 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1312 | return NULL; | |
1313 | } | |
1314 | ||
1315 | for (int i=0; i<count; i++) { | |
41f1cec7 | 1316 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1317 | } |
1318 | return list; | |
1319 | } | |
1320 | ||
1321 | ||
1322 | wxPyApp *new_wxPyApp(){ | |
1323 | wxPythonApp = new wxPyApp(); | |
1324 | return wxPythonApp; | |
1325 | } | |
cbd72d4f | 1326 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1327 | |
1328 | void wxApp_CleanUp() { | |
1329 | __wxPyCleanup(); | |
1330 | } | |
1331 | ||
1332 | ||
1333 | wxPyApp* wxGetApp() { | |
1334 | return (wxPyApp*)wxTheApp; | |
1335 | } | |
1336 | ||
1337 | ||
1338 | ||
423f194a | 1339 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1340 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1341 | wxWindowList& list = self->GetChildren(); | |
1342 | return wxPy_ConvertList(&list); | |
1343 | } | |
1344 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1345 | ||
1346 | ||
1347 | ||
423f194a | 1348 | return False; |
d14a1e28 RD |
1349 | |
1350 | } | |
1351 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1352 | ||
1353 | ||
1354 | ||
423f194a | 1355 | return False; |
d14a1e28 RD |
1356 | |
1357 | } | |
1358 | long wxWindow_GetHandle(wxWindow *self){ | |
1359 | return wxPyGetWinHandle(self); | |
1360 | } | |
1361 | ||
1362 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1363 | return wxWindow::FindWindowById(id, parent); | |
1364 | } | |
1365 | ||
1366 | wxWindow* wxFindWindowByName( const wxString& name, | |
1367 | const wxWindow *parent = NULL ) { | |
1368 | return wxWindow::FindWindowByName(name, parent); | |
1369 | } | |
1370 | ||
1371 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1372 | const wxWindow *parent = NULL ) { | |
1373 | return wxWindow::FindWindowByLabel(label, parent); | |
1374 | } | |
1375 | ||
1376 | ||
1377 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1378 | #ifdef __WXMSW__ | |
1379 | wxWindow* win = new wxWindow; | |
2f4c0a16 RD |
1380 | win->SetHWND((WXHWND)hWnd); |
1381 | win->SubclassWin((WXHWND)hWnd); | |
d14a1e28 RD |
1382 | return win; |
1383 | #else | |
cbd72d4f | 1384 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1385 | return NULL; |
1386 | #endif | |
1387 | } | |
1388 | ||
1389 | ||
1390 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1391 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1392 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1393 | ||
1394 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1395 | ||
1396 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1397 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1398 | wxMenuItemList& list = self->GetMenuItems(); | |
1399 | return wxPy_ConvertList(&list); | |
1400 | } | |
1401 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
cbd72d4f | 1402 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1403 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1404 | if (clientData) { | |
1405 | wxPyClientData* data = new wxPyClientData(clientData); | |
1406 | return self->Append(item, data); | |
1407 | } else | |
1408 | return self->Append(item); | |
1409 | } | |
1410 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1411 | if (clientData) { | |
1412 | wxPyClientData* data = new wxPyClientData(clientData); | |
1413 | return self->Insert(item, pos, data); | |
1414 | } else | |
1415 | return self->Insert(item, pos); | |
1416 | } | |
1417 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1418 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1419 | if (data) { | |
1420 | Py_INCREF(data->m_obj); | |
1421 | return data->m_obj; | |
1422 | } else { | |
1423 | Py_INCREF(Py_None); | |
1424 | return Py_None; | |
1425 | } | |
1426 | } | |
1427 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1428 | wxPyClientData* data = new wxPyClientData(clientData); | |
1429 | self->SetClientObject(n, data); | |
1430 | } | |
1431 | ||
1432 | ||
8edf1c75 | 1433 | |
2f4c0a16 RD |
1434 | #include <float.h> |
1435 | ||
8edf1c75 | 1436 | SWIGSTATIC(float) |
2f4c0a16 RD |
1437 | SWIG_FloatCast(double value) |
1438 | { | |
1439 | float f = 0; | |
1440 | if (!PyErr_Occurred()) { | |
1441 | if (value < FLT_MIN) { | |
1442 | PyObject *err = | |
1443 | PyString_FromFormat("value %g is less than float minimum %g", | |
1444 | value, FLT_MIN); | |
1445 | PyErr_SetObject(PyExc_OverflowError, err); | |
1446 | Py_DECREF(err); | |
1447 | } else if (value > FLT_MAX) { | |
1448 | PyObject *err = | |
1449 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1450 | value, FLT_MAX); | |
1451 | PyErr_SetObject(PyExc_OverflowError, err); | |
1452 | Py_DECREF(err); | |
1453 | } else { | |
1454 | f = swig_numeric_cast(float, value); | |
1455 | } | |
1456 | } | |
1457 | return f; | |
1458 | } | |
1459 | ||
1460 | ||
1461 | SWIGSTATICINLINE(float) | |
1462 | SWIG_AsFloat(PyObject *obj) | |
8edf1c75 | 1463 | { |
2f4c0a16 RD |
1464 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1465 | } | |
1466 | ||
1467 | ||
1468 | SWIGSTATICINLINE(int) | |
1469 | SWIG_CheckFloat(PyObject* obj) | |
1470 | { | |
1471 | SWIG_AsFloat(obj); | |
1472 | if (PyErr_Occurred()) { | |
1473 | PyErr_Clear(); | |
1474 | return 0; | |
1475 | } else { | |
1476 | return 1; | |
1477 | } | |
8edf1c75 RD |
1478 | } |
1479 | ||
d14a1e28 RD |
1480 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1481 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1482 | if (data) { | |
1483 | Py_INCREF(data->m_obj); | |
1484 | return data->m_obj; | |
1485 | } else { | |
1486 | Py_INCREF(Py_None); | |
1487 | return Py_None; | |
1488 | } | |
1489 | } | |
1490 | ||
1491 | // Figure out the type of the sizer item | |
1492 | ||
1493 | struct wxPySizerItemInfo { | |
1494 | wxPySizerItemInfo() | |
423f194a RD |
1495 | : window(NULL), sizer(NULL), gotSize(False), |
1496 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1497 | {} |
1498 | ||
1499 | wxWindow* window; | |
1500 | wxSizer* sizer; | |
1501 | bool gotSize; | |
1502 | wxSize size; | |
1503 | bool gotPos; | |
1504 | int pos; | |
1505 | }; | |
1506 | ||
1507 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1508 | ||
1509 | wxPySizerItemInfo info; | |
1510 | wxSize size; | |
1511 | wxSize* sizePtr = &size; | |
1512 | ||
1513 | // Find out what the type of the item is | |
1514 | // try wxWindow | |
1515 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1516 | PyErr_Clear(); | |
1517 | info.window = NULL; | |
1518 | ||
1519 | // try wxSizer | |
1520 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1521 | PyErr_Clear(); | |
1522 | info.sizer = NULL; | |
1523 | ||
1524 | // try wxSize or (w,h) | |
1525 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1526 | info.size = *sizePtr; | |
423f194a | 1527 | info.gotSize = True; |
d14a1e28 RD |
1528 | } |
1529 | ||
1530 | // or a single int | |
1531 | if (checkIdx && PyInt_Check(item)) { | |
1532 | info.pos = PyInt_AsLong(item); | |
423f194a | 1533 | info.gotPos = True; |
d14a1e28 RD |
1534 | } |
1535 | } | |
1536 | } | |
1537 | ||
1538 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1539 | // no expected type, figure out what kind of error message to generate | |
1540 | if ( !checkSize && !checkIdx ) | |
1541 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1542 | else if ( checkSize && !checkIdx ) | |
1543 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1544 | else if ( !checkSize && checkIdx) | |
1545 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1546 | else | |
1547 | // can this one happen? | |
1548 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1549 | } | |
1550 | ||
1551 | return info; | |
1552 | } | |
1553 | ||
1554 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1555 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1556 | } | |
1557 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1558 | ||
1559 | wxPyUserData* data = NULL; | |
1560 | wxPyBeginBlockThreads(); | |
423f194a | 1561 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1562 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1563 | data = new wxPyUserData(userData); | |
1564 | wxPyEndBlockThreads(); | |
1565 | ||
1566 | // Now call the real Add method if a valid item type was found | |
1567 | if ( info.window ) | |
1568 | self->Add(info.window, proportion, flag, border, data); | |
1569 | else if ( info.sizer ) | |
1570 | self->Add(info.sizer, proportion, flag, border, data); | |
1571 | else if (info.gotSize) | |
1572 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1573 | proportion, flag, border, data); | |
1574 | } | |
1575 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1576 | ||
1577 | wxPyUserData* data = NULL; | |
1578 | wxPyBeginBlockThreads(); | |
423f194a | 1579 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1580 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1581 | data = new wxPyUserData(userData); | |
1582 | wxPyEndBlockThreads(); | |
1583 | ||
1584 | // Now call the real Insert method if a valid item type was found | |
1585 | if ( info.window ) | |
1586 | self->Insert(before, info.window, proportion, flag, border, data); | |
1587 | else if ( info.sizer ) | |
1588 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1589 | else if (info.gotSize) | |
1590 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1591 | proportion, flag, border, data); | |
1592 | } | |
1593 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1594 | ||
1595 | wxPyUserData* data = NULL; | |
1596 | wxPyBeginBlockThreads(); | |
423f194a | 1597 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1598 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1599 | data = new wxPyUserData(userData); | |
1600 | wxPyEndBlockThreads(); | |
1601 | ||
1602 | // Now call the real Prepend method if a valid item type was found | |
1603 | if ( info.window ) | |
1604 | self->Prepend(info.window, proportion, flag, border, data); | |
1605 | else if ( info.sizer ) | |
1606 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1607 | else if (info.gotSize) | |
1608 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1609 | proportion, flag, border, data); | |
1610 | } | |
1611 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1612 | wxPyBeginBlockThreads(); | |
423f194a | 1613 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1614 | wxPyEndBlockThreads(); |
1615 | if ( info.window ) | |
1616 | return self->Remove(info.window); | |
1617 | else if ( info.sizer ) | |
1618 | return self->Remove(info.sizer); | |
1619 | else if ( info.gotPos ) | |
1620 | return self->Remove(info.pos); | |
1621 | else | |
423f194a | 1622 | return False; |
d14a1e28 | 1623 | } |
423f194a | 1624 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1625 | wxPyBeginBlockThreads(); |
423f194a | 1626 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1627 | wxPyEndBlockThreads(); |
1628 | if ( info.window ) | |
1629 | self->SetItemMinSize(info.window, size); | |
1630 | else if ( info.sizer ) | |
1631 | self->SetItemMinSize(info.sizer, size); | |
1632 | else if ( info.gotPos ) | |
1633 | self->SetItemMinSize(info.pos, size); | |
1634 | } | |
1635 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1636 | wxSizerItemList& list = self->GetChildren(); | |
1637 | return wxPy_ConvertList(&list); | |
1638 | } | |
1639 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1640 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1641 | if ( info.window ) |
1642 | self->Show(info.window, show); | |
1643 | else if ( info.sizer ) | |
1644 | self->Show(info.sizer, show); | |
1645 | } | |
1646 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1647 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1648 | if ( info.window ) |
1649 | self->Hide(info.window); | |
1650 | else if ( info.sizer ) | |
1651 | self->Hide(info.sizer); | |
1652 | } | |
1653 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1654 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1655 | if ( info.window ) |
1656 | return self->IsShown(info.window); | |
1657 | else if ( info.sizer ) | |
1658 | return self->IsShown(info.sizer); | |
1659 | else | |
423f194a | 1660 | return False; |
d14a1e28 RD |
1661 | } |
1662 | ||
1663 | // See pyclasses.h | |
1664 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1665 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1666 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1672 | { | |
1673 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1674 | } | |
1675 | ||
1676 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1677 | { | |
1678 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1679 | } | |
1680 | ||
1681 | ||
38f59159 RD |
1682 | bool wxGBPosition___eq__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self == *other) : False; } |
1683 | bool wxGBPosition___ne__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1684 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1685 | self->SetRow(row); | |
1686 | self->SetCol(col); | |
1687 | } | |
1688 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1689 | wxPyBeginBlockThreads(); |
1690 | PyObject* tup = PyTuple_New(2); | |
1691 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1692 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1693 | wxPyEndBlockThreads(); | |
1694 | return tup; | |
1695 | } | |
38f59159 RD |
1696 | bool wxGBSpan___eq__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self == *other) : False; } |
1697 | bool wxGBSpan___ne__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1698 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1699 | self->SetRowspan(rowspan); | |
1700 | self->SetColspan(colspan); | |
1701 | } | |
1702 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1703 | wxPyBeginBlockThreads(); |
1704 | PyObject* tup = PyTuple_New(2); | |
1705 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1706 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1707 | wxPyEndBlockThreads(); | |
1708 | return tup; | |
1709 | } | |
1710 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1711 | ||
1712 | wxPyUserData* data = NULL; | |
1713 | wxPyBeginBlockThreads(); | |
423f194a | 1714 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1715 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1716 | data = new wxPyUserData(userData); | |
1717 | wxPyEndBlockThreads(); | |
1718 | ||
1719 | // Now call the real Add method if a valid item type was found | |
1720 | if ( info.window ) | |
1721 | return self->Add(info.window, pos, span, flag, border, data); | |
1722 | else if ( info.sizer ) | |
1723 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1724 | else if (info.gotSize) | |
1725 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1726 | pos, span, flag, border, data); | |
423f194a | 1727 | return False; |
d14a1e28 RD |
1728 | } |
1729 | ||
1730 | ||
1731 | #ifdef __cplusplus | |
1732 | extern "C" { | |
1733 | #endif | |
8edf1c75 | 1734 | static int _wrap_EmptyString_set(PyObject *) { |
cbd72d4f RD |
1735 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1736 | return 1; | |
1737 | } | |
1738 | ||
1739 | ||
1740 | static PyObject *_wrap_EmptyString_get() { | |
1741 | PyObject *pyobj; | |
1742 | ||
1743 | { | |
1744 | #if wxUSE_UNICODE | |
1745 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1746 | #else | |
1747 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1748 | #endif | |
1749 | } | |
1750 | return pyobj; | |
1751 | } | |
1752 | ||
1753 | ||
2f4c0a16 | 1754 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1755 | PyObject *resultobj; |
1756 | wxObject *arg1 = (wxObject *) 0 ; | |
1757 | wxString result; | |
1758 | PyObject * obj0 = 0 ; | |
1759 | char *kwnames[] = { | |
1760 | (char *) "self", NULL | |
1761 | }; | |
1762 | ||
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1766 | { |
1767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1768 | result = wxObject_GetClassName(arg1); | |
1769 | ||
1770 | wxPyEndAllowThreads(__tstate); | |
1771 | if (PyErr_Occurred()) SWIG_fail; | |
1772 | } | |
1773 | { | |
1774 | #if wxUSE_UNICODE | |
1775 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1776 | #else | |
1777 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1778 | #endif | |
1779 | } | |
1780 | return resultobj; | |
1781 | fail: | |
1782 | return NULL; | |
1783 | } | |
1784 | ||
1785 | ||
2f4c0a16 | 1786 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1787 | PyObject *resultobj; |
1788 | wxObject *arg1 = (wxObject *) 0 ; | |
1789 | PyObject * obj0 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "self", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1797 | { |
1798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1799 | wxObject_Destroy(arg1); | |
1800 | ||
1801 | wxPyEndAllowThreads(__tstate); | |
1802 | if (PyErr_Occurred()) SWIG_fail; | |
1803 | } | |
1804 | Py_INCREF(Py_None); resultobj = Py_None; | |
1805 | return resultobj; | |
1806 | fail: | |
1807 | return NULL; | |
1808 | } | |
1809 | ||
1810 | ||
2f4c0a16 | 1811 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1812 | PyObject *obj; |
1813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1814 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1815 | Py_INCREF(obj); | |
1816 | return Py_BuildValue((char *)""); | |
1817 | } | |
2f4c0a16 | 1818 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1819 | PyObject *resultobj; |
1820 | wxSize *arg1 = (wxSize *) 0 ; | |
1821 | int arg2 ; | |
1822 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1823 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1824 | char *kwnames[] = { |
1825 | (char *) "self",(char *) "x", NULL | |
1826 | }; | |
1827 | ||
8edf1c75 | 1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1831 | arg2 = (int) SWIG_AsInt(obj1); | |
1832 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1833 | if (arg1) (arg1)->x = arg2; |
1834 | ||
1835 | Py_INCREF(Py_None); resultobj = Py_None; | |
1836 | return resultobj; | |
1837 | fail: | |
1838 | return NULL; | |
1839 | } | |
1840 | ||
1841 | ||
2f4c0a16 | 1842 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1843 | PyObject *resultobj; |
1844 | wxSize *arg1 = (wxSize *) 0 ; | |
1845 | int result; | |
1846 | PyObject * obj0 = 0 ; | |
1847 | char *kwnames[] = { | |
1848 | (char *) "self", NULL | |
1849 | }; | |
1850 | ||
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1854 | result = (int) ((arg1)->x); |
1855 | ||
2f4c0a16 | 1856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1857 | return resultobj; |
1858 | fail: | |
1859 | return NULL; | |
1860 | } | |
1861 | ||
1862 | ||
2f4c0a16 | 1863 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1864 | PyObject *resultobj; |
1865 | wxSize *arg1 = (wxSize *) 0 ; | |
1866 | int arg2 ; | |
1867 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1869 | char *kwnames[] = { |
1870 | (char *) "self",(char *) "y", NULL | |
1871 | }; | |
1872 | ||
8edf1c75 | 1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1876 | arg2 = (int) SWIG_AsInt(obj1); | |
1877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1878 | if (arg1) (arg1)->y = arg2; |
1879 | ||
1880 | Py_INCREF(Py_None); resultobj = Py_None; | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
2f4c0a16 | 1887 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1888 | PyObject *resultobj; |
1889 | wxSize *arg1 = (wxSize *) 0 ; | |
1890 | int result; | |
1891 | PyObject * obj0 = 0 ; | |
1892 | char *kwnames[] = { | |
1893 | (char *) "self", NULL | |
1894 | }; | |
1895 | ||
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1899 | result = (int) ((arg1)->y); |
1900 | ||
2f4c0a16 | 1901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1902 | return resultobj; |
1903 | fail: | |
1904 | return NULL; | |
1905 | } | |
1906 | ||
1907 | ||
2f4c0a16 | 1908 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1909 | PyObject *resultobj; |
1910 | int arg1 = (int) 0 ; | |
1911 | int arg2 = (int) 0 ; | |
1912 | wxSize *result; | |
8edf1c75 RD |
1913 | PyObject * obj0 = 0 ; |
1914 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1915 | char *kwnames[] = { |
1916 | (char *) "w",(char *) "h", NULL | |
1917 | }; | |
1918 | ||
8edf1c75 RD |
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1920 | if (obj0) { | |
2f4c0a16 RD |
1921 | arg1 = (int) SWIG_AsInt(obj0); |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1923 | } |
1924 | if (obj1) { | |
2f4c0a16 RD |
1925 | arg2 = (int) SWIG_AsInt(obj1); |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1927 | } |
d14a1e28 RD |
1928 | { |
1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1930 | result = (wxSize *)new wxSize(arg1,arg2); | |
1931 | ||
1932 | wxPyEndAllowThreads(__tstate); | |
1933 | if (PyErr_Occurred()) SWIG_fail; | |
1934 | } | |
2f4c0a16 | 1935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1936 | return resultobj; |
1937 | fail: | |
1938 | return NULL; | |
1939 | } | |
1940 | ||
1941 | ||
2f4c0a16 | 1942 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1943 | PyObject *resultobj; |
1944 | wxSize *arg1 = (wxSize *) 0 ; | |
1945 | PyObject * obj0 = 0 ; | |
1946 | char *kwnames[] = { | |
1947 | (char *) "self", NULL | |
1948 | }; | |
1949 | ||
1950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1953 | { |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | delete arg1; | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | Py_INCREF(Py_None); resultobj = Py_None; | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
2f4c0a16 | 1967 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1968 | PyObject *resultobj; |
1969 | wxSize *arg1 = (wxSize *) 0 ; | |
1970 | wxSize *arg2 = 0 ; | |
1971 | bool result; | |
1972 | wxSize temp2 ; | |
1973 | PyObject * obj0 = 0 ; | |
1974 | PyObject * obj1 = 0 ; | |
1975 | char *kwnames[] = { | |
1976 | (char *) "self",(char *) "sz", NULL | |
1977 | }; | |
1978 | ||
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1982 | { |
1983 | arg2 = &temp2; | |
1984 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1985 | } | |
1986 | { | |
1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1988 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1989 | |
1990 | wxPyEndAllowThreads(__tstate); | |
1991 | if (PyErr_Occurred()) SWIG_fail; | |
1992 | } | |
02a34c4c | 1993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1994 | return resultobj; |
1995 | fail: | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2f4c0a16 | 2000 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2001 | PyObject *resultobj; |
2002 | wxSize *arg1 = (wxSize *) 0 ; | |
2003 | wxSize *arg2 = 0 ; | |
2004 | bool result; | |
2005 | wxSize temp2 ; | |
2006 | PyObject * obj0 = 0 ; | |
2007 | PyObject * obj1 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "self",(char *) "sz", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2015 | { |
2016 | arg2 = &temp2; | |
2017 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2018 | } | |
2019 | { | |
2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2021 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2022 | |
2023 | wxPyEndAllowThreads(__tstate); | |
2024 | if (PyErr_Occurred()) SWIG_fail; | |
2025 | } | |
02a34c4c | 2026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2027 | return resultobj; |
2028 | fail: | |
2029 | return NULL; | |
2030 | } | |
2031 | ||
2032 | ||
2f4c0a16 | 2033 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2034 | PyObject *resultobj; |
2035 | wxSize *arg1 = (wxSize *) 0 ; | |
2036 | wxSize *arg2 = 0 ; | |
2037 | wxSize result; | |
2038 | wxSize temp2 ; | |
2039 | PyObject * obj0 = 0 ; | |
2040 | PyObject * obj1 = 0 ; | |
2041 | char *kwnames[] = { | |
2042 | (char *) "self",(char *) "sz", NULL | |
2043 | }; | |
2044 | ||
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2048 | { |
2049 | arg2 = &temp2; | |
2050 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2051 | } | |
2052 | { | |
2053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2054 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2055 | ||
2056 | wxPyEndAllowThreads(__tstate); | |
2057 | if (PyErr_Occurred()) SWIG_fail; | |
2058 | } | |
2059 | { | |
2060 | wxSize * resultptr; | |
2061 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2063 | } |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2f4c0a16 | 2070 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2071 | PyObject *resultobj; |
2072 | wxSize *arg1 = (wxSize *) 0 ; | |
2073 | wxSize *arg2 = 0 ; | |
2074 | wxSize result; | |
2075 | wxSize temp2 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | PyObject * obj1 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self",(char *) "sz", NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2085 | { |
2086 | arg2 = &temp2; | |
2087 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2088 | } | |
2089 | { | |
2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2091 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2092 | ||
2093 | wxPyEndAllowThreads(__tstate); | |
2094 | if (PyErr_Occurred()) SWIG_fail; | |
2095 | } | |
2096 | { | |
2097 | wxSize * resultptr; | |
2098 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2100 | } |
2101 | return resultobj; | |
2102 | fail: | |
2103 | return NULL; | |
2104 | } | |
2105 | ||
2106 | ||
2f4c0a16 | 2107 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2108 | PyObject *resultobj; |
2109 | wxSize *arg1 = (wxSize *) 0 ; | |
2110 | wxSize *arg2 = 0 ; | |
2111 | wxSize temp2 ; | |
2112 | PyObject * obj0 = 0 ; | |
2113 | PyObject * obj1 = 0 ; | |
2114 | char *kwnames[] = { | |
2115 | (char *) "self",(char *) "sz", NULL | |
2116 | }; | |
2117 | ||
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2121 | { |
2122 | arg2 = &temp2; | |
2123 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2124 | } | |
2125 | { | |
2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2127 | (arg1)->IncTo((wxSize const &)*arg2); | |
2128 | ||
2129 | wxPyEndAllowThreads(__tstate); | |
2130 | if (PyErr_Occurred()) SWIG_fail; | |
2131 | } | |
2132 | Py_INCREF(Py_None); resultobj = Py_None; | |
2133 | return resultobj; | |
2134 | fail: | |
2135 | return NULL; | |
2136 | } | |
2137 | ||
2138 | ||
2f4c0a16 | 2139 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2140 | PyObject *resultobj; |
2141 | wxSize *arg1 = (wxSize *) 0 ; | |
2142 | wxSize *arg2 = 0 ; | |
2143 | wxSize temp2 ; | |
2144 | PyObject * obj0 = 0 ; | |
2145 | PyObject * obj1 = 0 ; | |
2146 | char *kwnames[] = { | |
2147 | (char *) "self",(char *) "sz", NULL | |
2148 | }; | |
2149 | ||
2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2153 | { |
2154 | arg2 = &temp2; | |
2155 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2156 | } | |
2157 | { | |
2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2159 | (arg1)->DecTo((wxSize const &)*arg2); | |
2160 | ||
2161 | wxPyEndAllowThreads(__tstate); | |
2162 | if (PyErr_Occurred()) SWIG_fail; | |
2163 | } | |
2164 | Py_INCREF(Py_None); resultobj = Py_None; | |
2165 | return resultobj; | |
2166 | fail: | |
2167 | return NULL; | |
2168 | } | |
2169 | ||
2170 | ||
2f4c0a16 | 2171 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2172 | PyObject *resultobj; |
2173 | wxSize *arg1 = (wxSize *) 0 ; | |
2174 | int arg2 ; | |
2175 | int arg3 ; | |
2176 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2177 | PyObject * obj1 = 0 ; |
2178 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2179 | char *kwnames[] = { |
423f194a | 2180 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2181 | }; |
2182 | ||
8edf1c75 | 2183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2186 | arg2 = (int) SWIG_AsInt(obj1); | |
2187 | if (PyErr_Occurred()) SWIG_fail; | |
2188 | arg3 = (int) SWIG_AsInt(obj2); | |
2189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2190 | { |
2191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2192 | (arg1)->Set(arg2,arg3); | |
2193 | ||
2194 | wxPyEndAllowThreads(__tstate); | |
2195 | if (PyErr_Occurred()) SWIG_fail; | |
2196 | } | |
2197 | Py_INCREF(Py_None); resultobj = Py_None; | |
2198 | return resultobj; | |
2199 | fail: | |
2200 | return NULL; | |
2201 | } | |
2202 | ||
2203 | ||
2f4c0a16 | 2204 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2205 | PyObject *resultobj; |
2206 | wxSize *arg1 = (wxSize *) 0 ; | |
2207 | int arg2 ; | |
2208 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2210 | char *kwnames[] = { |
2211 | (char *) "self",(char *) "w", NULL | |
2212 | }; | |
2213 | ||
8edf1c75 | 2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2217 | arg2 = (int) SWIG_AsInt(obj1); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2219 | { |
2220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2221 | (arg1)->SetWidth(arg2); | |
2222 | ||
2223 | wxPyEndAllowThreads(__tstate); | |
2224 | if (PyErr_Occurred()) SWIG_fail; | |
2225 | } | |
2226 | Py_INCREF(Py_None); resultobj = Py_None; | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
2f4c0a16 | 2233 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2234 | PyObject *resultobj; |
2235 | wxSize *arg1 = (wxSize *) 0 ; | |
2236 | int arg2 ; | |
2237 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2239 | char *kwnames[] = { |
2240 | (char *) "self",(char *) "h", NULL | |
2241 | }; | |
2242 | ||
8edf1c75 | 2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2246 | arg2 = (int) SWIG_AsInt(obj1); | |
2247 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2248 | { |
2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2250 | (arg1)->SetHeight(arg2); | |
2251 | ||
2252 | wxPyEndAllowThreads(__tstate); | |
2253 | if (PyErr_Occurred()) SWIG_fail; | |
2254 | } | |
2255 | Py_INCREF(Py_None); resultobj = Py_None; | |
2256 | return resultobj; | |
2257 | fail: | |
2258 | return NULL; | |
2259 | } | |
2260 | ||
2261 | ||
2f4c0a16 | 2262 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2263 | PyObject *resultobj; |
2264 | wxSize *arg1 = (wxSize *) 0 ; | |
2265 | int result; | |
2266 | PyObject * obj0 = 0 ; | |
2267 | char *kwnames[] = { | |
2268 | (char *) "self", NULL | |
2269 | }; | |
2270 | ||
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2274 | { |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2f4c0a16 | 2281 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2282 | return resultobj; |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
2f4c0a16 | 2288 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2289 | PyObject *resultobj; |
2290 | wxSize *arg1 = (wxSize *) 0 ; | |
2291 | int result; | |
2292 | PyObject * obj0 = 0 ; | |
2293 | char *kwnames[] = { | |
2294 | (char *) "self", NULL | |
2295 | }; | |
2296 | ||
2297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2300 | { |
2301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2302 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2303 | ||
2304 | wxPyEndAllowThreads(__tstate); | |
2305 | if (PyErr_Occurred()) SWIG_fail; | |
2306 | } | |
2f4c0a16 | 2307 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2308 | return resultobj; |
2309 | fail: | |
2310 | return NULL; | |
2311 | } | |
2312 | ||
2313 | ||
2f4c0a16 | 2314 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2315 | PyObject *resultobj; |
2316 | wxSize *arg1 = (wxSize *) 0 ; | |
2317 | PyObject *result; | |
2318 | PyObject * obj0 = 0 ; | |
2319 | char *kwnames[] = { | |
2320 | (char *) "self", NULL | |
2321 | }; | |
2322 | ||
423f194a | 2323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2326 | { |
2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2328 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2329 | |
2330 | wxPyEndAllowThreads(__tstate); | |
2331 | if (PyErr_Occurred()) SWIG_fail; | |
2332 | } | |
2333 | resultobj = result; | |
2334 | return resultobj; | |
2335 | fail: | |
2336 | return NULL; | |
2337 | } | |
2338 | ||
2339 | ||
2f4c0a16 | 2340 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2341 | PyObject *obj; |
2342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2343 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2344 | Py_INCREF(obj); | |
2345 | return Py_BuildValue((char *)""); | |
2346 | } | |
2f4c0a16 | 2347 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2348 | PyObject *resultobj; |
2349 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2350 | double arg2 ; | |
2351 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2353 | char *kwnames[] = { |
2354 | (char *) "self",(char *) "x", NULL | |
2355 | }; | |
2356 | ||
8edf1c75 | 2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2360 | arg2 = (double) SWIG_AsDouble(obj1); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2362 | if (arg1) (arg1)->x = arg2; |
2363 | ||
2364 | Py_INCREF(Py_None); resultobj = Py_None; | |
2365 | return resultobj; | |
2366 | fail: | |
2367 | return NULL; | |
2368 | } | |
2369 | ||
2370 | ||
2f4c0a16 | 2371 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2372 | PyObject *resultobj; |
2373 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2374 | double result; | |
2375 | PyObject * obj0 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "self", NULL | |
2378 | }; | |
2379 | ||
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2383 | result = (double) ((arg1)->x); |
2384 | ||
2f4c0a16 | 2385 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2386 | return resultobj; |
2387 | fail: | |
2388 | return NULL; | |
2389 | } | |
2390 | ||
2391 | ||
2f4c0a16 | 2392 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2393 | PyObject *resultobj; |
2394 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2395 | double arg2 ; | |
2396 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2397 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2398 | char *kwnames[] = { |
2399 | (char *) "self",(char *) "y", NULL | |
2400 | }; | |
2401 | ||
8edf1c75 | 2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2405 | arg2 = (double) SWIG_AsDouble(obj1); | |
2406 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2407 | if (arg1) (arg1)->y = arg2; |
2408 | ||
2409 | Py_INCREF(Py_None); resultobj = Py_None; | |
2410 | return resultobj; | |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
2f4c0a16 | 2416 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2417 | PyObject *resultobj; |
2418 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2419 | double result; | |
2420 | PyObject * obj0 = 0 ; | |
2421 | char *kwnames[] = { | |
2422 | (char *) "self", NULL | |
2423 | }; | |
2424 | ||
2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2428 | result = (double) ((arg1)->y); |
2429 | ||
2f4c0a16 | 2430 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2431 | return resultobj; |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
2f4c0a16 | 2437 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2438 | PyObject *resultobj; |
2439 | double arg1 = (double) 0.0 ; | |
2440 | double arg2 = (double) 0.0 ; | |
2441 | wxRealPoint *result; | |
8edf1c75 RD |
2442 | PyObject * obj0 = 0 ; |
2443 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2444 | char *kwnames[] = { |
2445 | (char *) "x",(char *) "y", NULL | |
2446 | }; | |
2447 | ||
8edf1c75 RD |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2449 | if (obj0) { | |
2f4c0a16 RD |
2450 | arg1 = (double) SWIG_AsDouble(obj0); |
2451 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2452 | } |
2453 | if (obj1) { | |
2f4c0a16 RD |
2454 | arg2 = (double) SWIG_AsDouble(obj1); |
2455 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2456 | } |
d14a1e28 RD |
2457 | { |
2458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2459 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2460 | ||
2461 | wxPyEndAllowThreads(__tstate); | |
2462 | if (PyErr_Occurred()) SWIG_fail; | |
2463 | } | |
2f4c0a16 | 2464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2465 | return resultobj; |
2466 | fail: | |
2467 | return NULL; | |
2468 | } | |
2469 | ||
2470 | ||
2f4c0a16 | 2471 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2472 | PyObject *resultobj; |
2473 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2474 | PyObject * obj0 = 0 ; | |
2475 | char *kwnames[] = { | |
2476 | (char *) "self", NULL | |
2477 | }; | |
2478 | ||
2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2482 | { |
2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2484 | delete arg1; | |
2485 | ||
2486 | wxPyEndAllowThreads(__tstate); | |
2487 | if (PyErr_Occurred()) SWIG_fail; | |
2488 | } | |
2489 | Py_INCREF(Py_None); resultobj = Py_None; | |
2490 | return resultobj; | |
2491 | fail: | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2f4c0a16 | 2496 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2497 | PyObject *resultobj; |
2498 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2499 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2500 | bool result; |
d14a1e28 RD |
2501 | wxRealPoint temp2 ; |
2502 | PyObject * obj0 = 0 ; | |
2503 | PyObject * obj1 = 0 ; | |
2504 | char *kwnames[] = { | |
2505 | (char *) "self",(char *) "pt", NULL | |
2506 | }; | |
2507 | ||
423f194a | 2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2511 | { |
2512 | arg2 = &temp2; | |
2513 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2514 | } | |
2515 | { | |
2516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2517 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2518 | |
2519 | wxPyEndAllowThreads(__tstate); | |
2520 | if (PyErr_Occurred()) SWIG_fail; | |
2521 | } | |
02a34c4c | 2522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2523 | return resultobj; |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
2f4c0a16 | 2529 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2530 | PyObject *resultobj; |
2531 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2532 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2533 | bool result; |
d14a1e28 RD |
2534 | wxRealPoint temp2 ; |
2535 | PyObject * obj0 = 0 ; | |
2536 | PyObject * obj1 = 0 ; | |
2537 | char *kwnames[] = { | |
2538 | (char *) "self",(char *) "pt", NULL | |
2539 | }; | |
2540 | ||
423f194a | 2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2544 | { |
2545 | arg2 = &temp2; | |
2546 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2547 | } | |
2548 | { | |
2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2550 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2551 | |
2552 | wxPyEndAllowThreads(__tstate); | |
2553 | if (PyErr_Occurred()) SWIG_fail; | |
2554 | } | |
02a34c4c | 2555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2556 | return resultobj; |
2557 | fail: | |
2558 | return NULL; | |
2559 | } | |
2560 | ||
2561 | ||
2f4c0a16 | 2562 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2563 | PyObject *resultobj; |
2564 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2565 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2566 | wxRealPoint result; |
d14a1e28 RD |
2567 | wxRealPoint temp2 ; |
2568 | PyObject * obj0 = 0 ; | |
2569 | PyObject * obj1 = 0 ; | |
2570 | char *kwnames[] = { | |
2571 | (char *) "self",(char *) "pt", NULL | |
2572 | }; | |
2573 | ||
423f194a | 2574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2577 | { |
2578 | arg2 = &temp2; | |
2579 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2580 | } | |
2581 | { | |
2582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2583 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2584 | |
2585 | wxPyEndAllowThreads(__tstate); | |
2586 | if (PyErr_Occurred()) SWIG_fail; | |
2587 | } | |
423f194a RD |
2588 | { |
2589 | wxRealPoint * resultptr; | |
2590 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2592 | } |
d14a1e28 RD |
2593 | return resultobj; |
2594 | fail: | |
2595 | return NULL; | |
2596 | } | |
2597 | ||
2598 | ||
2f4c0a16 | 2599 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2600 | PyObject *resultobj; |
2601 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2602 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2603 | wxRealPoint result; |
d14a1e28 RD |
2604 | wxRealPoint temp2 ; |
2605 | PyObject * obj0 = 0 ; | |
2606 | PyObject * obj1 = 0 ; | |
2607 | char *kwnames[] = { | |
2608 | (char *) "self",(char *) "pt", NULL | |
2609 | }; | |
2610 | ||
423f194a | 2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2614 | { |
2615 | arg2 = &temp2; | |
2616 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2617 | } | |
2618 | { | |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2620 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2621 | |
2622 | wxPyEndAllowThreads(__tstate); | |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
2624 | } | |
423f194a RD |
2625 | { |
2626 | wxRealPoint * resultptr; | |
2627 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2629 | } |
d14a1e28 RD |
2630 | return resultobj; |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2f4c0a16 | 2636 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2637 | PyObject *resultobj; |
2638 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2639 | double arg2 ; | |
2640 | double arg3 ; | |
2641 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2642 | PyObject * obj1 = 0 ; |
2643 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2644 | char *kwnames[] = { |
2645 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2646 | }; | |
2647 | ||
8edf1c75 | 2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2651 | arg2 = (double) SWIG_AsDouble(obj1); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
2653 | arg3 = (double) SWIG_AsDouble(obj2); | |
2654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2655 | { |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | wxRealPoint_Set(arg1,arg2,arg3); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) SWIG_fail; | |
2661 | } | |
2662 | Py_INCREF(Py_None); resultobj = Py_None; | |
2663 | return resultobj; | |
2664 | fail: | |
2665 | return NULL; | |
2666 | } | |
2667 | ||
2668 | ||
2f4c0a16 | 2669 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2670 | PyObject *resultobj; |
2671 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2672 | PyObject *result; | |
2673 | PyObject * obj0 = 0 ; | |
2674 | char *kwnames[] = { | |
2675 | (char *) "self", NULL | |
2676 | }; | |
2677 | ||
423f194a | 2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2681 | { |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2683 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2684 | |
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
2688 | resultobj = result; | |
2689 | return resultobj; | |
2690 | fail: | |
2691 | return NULL; | |
2692 | } | |
2693 | ||
2694 | ||
2f4c0a16 | 2695 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2696 | PyObject *obj; |
2697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2698 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2699 | Py_INCREF(obj); | |
2700 | return Py_BuildValue((char *)""); | |
2701 | } | |
2f4c0a16 | 2702 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2703 | PyObject *resultobj; |
2704 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2705 | int arg2 ; | |
2706 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2707 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2708 | char *kwnames[] = { |
2709 | (char *) "self",(char *) "x", NULL | |
2710 | }; | |
2711 | ||
8edf1c75 | 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2715 | arg2 = (int) SWIG_AsInt(obj1); | |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2717 | if (arg1) (arg1)->x = arg2; |
2718 | ||
2719 | Py_INCREF(Py_None); resultobj = Py_None; | |
2720 | return resultobj; | |
2721 | fail: | |
2722 | return NULL; | |
2723 | } | |
2724 | ||
2725 | ||
2f4c0a16 | 2726 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2727 | PyObject *resultobj; |
2728 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2729 | int result; | |
2730 | PyObject * obj0 = 0 ; | |
2731 | char *kwnames[] = { | |
2732 | (char *) "self", NULL | |
2733 | }; | |
2734 | ||
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2738 | result = (int) ((arg1)->x); |
2739 | ||
2f4c0a16 | 2740 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2741 | return resultobj; |
2742 | fail: | |
2743 | return NULL; | |
2744 | } | |
2745 | ||
2746 | ||
2f4c0a16 | 2747 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2748 | PyObject *resultobj; |
2749 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2750 | int arg2 ; | |
2751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2753 | char *kwnames[] = { |
2754 | (char *) "self",(char *) "y", NULL | |
2755 | }; | |
2756 | ||
8edf1c75 | 2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2760 | arg2 = (int) SWIG_AsInt(obj1); | |
2761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2762 | if (arg1) (arg1)->y = arg2; |
2763 | ||
2764 | Py_INCREF(Py_None); resultobj = Py_None; | |
2765 | return resultobj; | |
2766 | fail: | |
2767 | return NULL; | |
2768 | } | |
2769 | ||
2770 | ||
2f4c0a16 | 2771 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2772 | PyObject *resultobj; |
2773 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2774 | int result; | |
2775 | PyObject * obj0 = 0 ; | |
2776 | char *kwnames[] = { | |
2777 | (char *) "self", NULL | |
2778 | }; | |
2779 | ||
2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2783 | result = (int) ((arg1)->y); |
2784 | ||
2f4c0a16 | 2785 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2786 | return resultobj; |
2787 | fail: | |
2788 | return NULL; | |
2789 | } | |
2790 | ||
2791 | ||
2f4c0a16 | 2792 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2793 | PyObject *resultobj; |
2794 | int arg1 = (int) 0 ; | |
2795 | int arg2 = (int) 0 ; | |
2796 | wxPoint *result; | |
8edf1c75 RD |
2797 | PyObject * obj0 = 0 ; |
2798 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2799 | char *kwnames[] = { |
2800 | (char *) "x",(char *) "y", NULL | |
2801 | }; | |
2802 | ||
8edf1c75 RD |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2804 | if (obj0) { | |
2f4c0a16 RD |
2805 | arg1 = (int) SWIG_AsInt(obj0); |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2807 | } |
2808 | if (obj1) { | |
2f4c0a16 RD |
2809 | arg2 = (int) SWIG_AsInt(obj1); |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2811 | } |
d14a1e28 RD |
2812 | { |
2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2814 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2815 | ||
2816 | wxPyEndAllowThreads(__tstate); | |
2817 | if (PyErr_Occurred()) SWIG_fail; | |
2818 | } | |
2f4c0a16 | 2819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2820 | return resultobj; |
2821 | fail: | |
2822 | return NULL; | |
2823 | } | |
2824 | ||
2825 | ||
2f4c0a16 | 2826 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2827 | PyObject *resultobj; |
2828 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2829 | PyObject * obj0 = 0 ; | |
2830 | char *kwnames[] = { | |
2831 | (char *) "self", NULL | |
2832 | }; | |
2833 | ||
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2837 | { |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | delete arg1; | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | } | |
2844 | Py_INCREF(Py_None); resultobj = Py_None; | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
2f4c0a16 | 2851 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2852 | PyObject *resultobj; |
2853 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2854 | wxPoint *arg2 = 0 ; | |
2855 | bool result; | |
2856 | wxPoint temp2 ; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | PyObject * obj1 = 0 ; | |
2859 | char *kwnames[] = { | |
423f194a | 2860 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2861 | }; |
2862 | ||
2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2866 | { |
2867 | arg2 = &temp2; | |
2868 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2869 | } | |
2870 | { | |
2871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2872 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2873 | |
2874 | wxPyEndAllowThreads(__tstate); | |
2875 | if (PyErr_Occurred()) SWIG_fail; | |
2876 | } | |
02a34c4c | 2877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2878 | return resultobj; |
2879 | fail: | |
2880 | return NULL; | |
2881 | } | |
2882 | ||
2883 | ||
2f4c0a16 | 2884 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2885 | PyObject *resultobj; |
2886 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2887 | wxPoint *arg2 = 0 ; | |
2888 | bool result; | |
2889 | wxPoint temp2 ; | |
2890 | PyObject * obj0 = 0 ; | |
2891 | PyObject * obj1 = 0 ; | |
2892 | char *kwnames[] = { | |
423f194a | 2893 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2894 | }; |
2895 | ||
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2899 | { |
2900 | arg2 = &temp2; | |
2901 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2902 | } | |
2903 | { | |
2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2905 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2906 | |
2907 | wxPyEndAllowThreads(__tstate); | |
2908 | if (PyErr_Occurred()) SWIG_fail; | |
2909 | } | |
02a34c4c | 2910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2911 | return resultobj; |
2912 | fail: | |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
2f4c0a16 | 2917 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2918 | PyObject *resultobj; |
2919 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2920 | wxPoint *arg2 = 0 ; | |
2921 | wxPoint result; | |
2922 | wxPoint temp2 ; | |
2923 | PyObject * obj0 = 0 ; | |
2924 | PyObject * obj1 = 0 ; | |
2925 | char *kwnames[] = { | |
423f194a | 2926 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2927 | }; |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2932 | { |
2933 | arg2 = &temp2; | |
2934 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2935 | } | |
2936 | { | |
2937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2938 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2939 | |
2940 | wxPyEndAllowThreads(__tstate); | |
2941 | if (PyErr_Occurred()) SWIG_fail; | |
2942 | } | |
2943 | { | |
2944 | wxPoint * resultptr; | |
2945 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2946 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2947 | } |
2948 | return resultobj; | |
2949 | fail: | |
2950 | return NULL; | |
2951 | } | |
2952 | ||
2953 | ||
2f4c0a16 | 2954 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2955 | PyObject *resultobj; |
2956 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2957 | wxPoint *arg2 = 0 ; | |
2958 | wxPoint result; | |
2959 | wxPoint temp2 ; | |
2960 | PyObject * obj0 = 0 ; | |
2961 | PyObject * obj1 = 0 ; | |
2962 | char *kwnames[] = { | |
423f194a | 2963 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2964 | }; |
2965 | ||
2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2969 | { |
2970 | arg2 = &temp2; | |
2971 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2972 | } | |
2973 | { | |
2974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2975 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2976 | |
2977 | wxPyEndAllowThreads(__tstate); | |
2978 | if (PyErr_Occurred()) SWIG_fail; | |
2979 | } | |
2980 | { | |
2981 | wxPoint * resultptr; | |
2982 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2984 | } |
2985 | return resultobj; | |
2986 | fail: | |
2987 | return NULL; | |
2988 | } | |
2989 | ||
2990 | ||
2f4c0a16 | 2991 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2992 | PyObject *resultobj; |
2993 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2994 | wxPoint *arg2 = 0 ; | |
2995 | wxPoint *result; | |
2996 | wxPoint temp2 ; | |
2997 | PyObject * obj0 = 0 ; | |
2998 | PyObject * obj1 = 0 ; | |
2999 | char *kwnames[] = { | |
423f194a | 3000 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3001 | }; |
3002 | ||
3003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3006 | { |
3007 | arg2 = &temp2; | |
3008 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3009 | } | |
3010 | { | |
3011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3012 | { | |
3013 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3014 | result = (wxPoint *) &_result_ref; | |
3015 | } | |
3016 | ||
3017 | wxPyEndAllowThreads(__tstate); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
2f4c0a16 | 3020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3021 | return resultobj; |
3022 | fail: | |
3023 | return NULL; | |
3024 | } | |
3025 | ||
3026 | ||
2f4c0a16 | 3027 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3028 | PyObject *resultobj; |
3029 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3030 | wxPoint *arg2 = 0 ; | |
3031 | wxPoint *result; | |
3032 | wxPoint temp2 ; | |
3033 | PyObject * obj0 = 0 ; | |
3034 | PyObject * obj1 = 0 ; | |
3035 | char *kwnames[] = { | |
423f194a | 3036 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3037 | }; |
3038 | ||
3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3042 | { |
3043 | arg2 = &temp2; | |
3044 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3045 | } | |
3046 | { | |
3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3048 | { | |
3049 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3050 | result = (wxPoint *) &_result_ref; | |
3051 | } | |
3052 | ||
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) SWIG_fail; | |
3055 | } | |
2f4c0a16 | 3056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3057 | return resultobj; |
3058 | fail: | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | ||
2f4c0a16 | 3063 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3064 | PyObject *resultobj; |
3065 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3066 | long arg2 ; | |
3067 | long arg3 ; | |
3068 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3069 | PyObject * obj1 = 0 ; |
3070 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3071 | char *kwnames[] = { |
3072 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3073 | }; | |
3074 | ||
8edf1c75 | 3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3078 | arg2 = (long) SWIG_AsLong(obj1); | |
3079 | if (PyErr_Occurred()) SWIG_fail; | |
3080 | arg3 = (long) SWIG_AsLong(obj2); | |
3081 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3082 | { |
3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3084 | wxPoint_Set(arg1,arg2,arg3); | |
3085 | ||
3086 | wxPyEndAllowThreads(__tstate); | |
3087 | if (PyErr_Occurred()) SWIG_fail; | |
3088 | } | |
3089 | Py_INCREF(Py_None); resultobj = Py_None; | |
3090 | return resultobj; | |
3091 | fail: | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
2f4c0a16 | 3096 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3097 | PyObject *resultobj; |
3098 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3099 | PyObject *result; | |
3100 | PyObject * obj0 = 0 ; | |
3101 | char *kwnames[] = { | |
3102 | (char *) "self", NULL | |
3103 | }; | |
3104 | ||
423f194a | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3108 | { |
3109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3110 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3111 | |
3112 | wxPyEndAllowThreads(__tstate); | |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
3114 | } | |
3115 | resultobj = result; | |
3116 | return resultobj; | |
3117 | fail: | |
3118 | return NULL; | |
3119 | } | |
3120 | ||
3121 | ||
2f4c0a16 | 3122 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3123 | PyObject *obj; |
3124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3125 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3126 | Py_INCREF(obj); | |
3127 | return Py_BuildValue((char *)""); | |
3128 | } | |
2f4c0a16 | 3129 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3130 | PyObject *resultobj; |
3131 | int arg1 = (int) 0 ; | |
3132 | int arg2 = (int) 0 ; | |
3133 | int arg3 = (int) 0 ; | |
3134 | int arg4 = (int) 0 ; | |
3135 | wxRect *result; | |
8edf1c75 RD |
3136 | PyObject * obj0 = 0 ; |
3137 | PyObject * obj1 = 0 ; | |
3138 | PyObject * obj2 = 0 ; | |
3139 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3140 | char *kwnames[] = { |
3141 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3142 | }; | |
3143 | ||
8edf1c75 RD |
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3145 | if (obj0) { | |
2f4c0a16 RD |
3146 | arg1 = (int) SWIG_AsInt(obj0); |
3147 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3148 | } |
3149 | if (obj1) { | |
2f4c0a16 RD |
3150 | arg2 = (int) SWIG_AsInt(obj1); |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3152 | } |
3153 | if (obj2) { | |
2f4c0a16 RD |
3154 | arg3 = (int) SWIG_AsInt(obj2); |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3156 | } |
3157 | if (obj3) { | |
2f4c0a16 RD |
3158 | arg4 = (int) SWIG_AsInt(obj3); |
3159 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3160 | } |
d14a1e28 RD |
3161 | { |
3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3163 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3164 | ||
3165 | wxPyEndAllowThreads(__tstate); | |
3166 | if (PyErr_Occurred()) SWIG_fail; | |
3167 | } | |
2f4c0a16 | 3168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3169 | return resultobj; |
3170 | fail: | |
3171 | return NULL; | |
3172 | } | |
3173 | ||
3174 | ||
2f4c0a16 | 3175 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3176 | PyObject *resultobj; |
3177 | wxPoint *arg1 = 0 ; | |
3178 | wxPoint *arg2 = 0 ; | |
3179 | wxRect *result; | |
3180 | wxPoint temp1 ; | |
3181 | wxPoint temp2 ; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | PyObject * obj1 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3189 | { | |
3190 | arg1 = &temp1; | |
3191 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3192 | } | |
3193 | { | |
3194 | arg2 = &temp2; | |
3195 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3196 | } | |
3197 | { | |
3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3199 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3200 | ||
3201 | wxPyEndAllowThreads(__tstate); | |
3202 | if (PyErr_Occurred()) SWIG_fail; | |
3203 | } | |
2f4c0a16 | 3204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3205 | return resultobj; |
3206 | fail: | |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
2f4c0a16 | 3211 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3212 | PyObject *resultobj; |
3213 | wxPoint *arg1 = 0 ; | |
3214 | wxSize *arg2 = 0 ; | |
3215 | wxRect *result; | |
3216 | wxPoint temp1 ; | |
3217 | wxSize temp2 ; | |
3218 | PyObject * obj0 = 0 ; | |
3219 | PyObject * obj1 = 0 ; | |
3220 | char *kwnames[] = { | |
3221 | (char *) "pos",(char *) "size", NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3225 | { | |
3226 | arg1 = &temp1; | |
3227 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3228 | } | |
3229 | { | |
3230 | arg2 = &temp2; | |
3231 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3232 | } | |
3233 | { | |
3234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3235 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3236 | ||
3237 | wxPyEndAllowThreads(__tstate); | |
3238 | if (PyErr_Occurred()) SWIG_fail; | |
3239 | } | |
2f4c0a16 | 3240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3241 | return resultobj; |
3242 | fail: | |
3243 | return NULL; | |
3244 | } | |
3245 | ||
3246 | ||
2f4c0a16 | 3247 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3248 | PyObject *resultobj; |
3249 | wxRect *arg1 = (wxRect *) 0 ; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3258 | { |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | delete arg1; | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
3265 | Py_INCREF(Py_None); resultobj = Py_None; | |
3266 | return resultobj; | |
3267 | fail: | |
3268 | return NULL; | |
3269 | } | |
3270 | ||
3271 | ||
2f4c0a16 | 3272 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3273 | PyObject *resultobj; |
3274 | wxRect *arg1 = (wxRect *) 0 ; | |
3275 | int result; | |
3276 | PyObject * obj0 = 0 ; | |
3277 | char *kwnames[] = { | |
3278 | (char *) "self", NULL | |
3279 | }; | |
3280 | ||
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3284 | { |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | result = (int)((wxRect const *)arg1)->GetX(); | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
2f4c0a16 | 3291 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3292 | return resultobj; |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
2f4c0a16 | 3298 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3299 | PyObject *resultobj; |
3300 | wxRect *arg1 = (wxRect *) 0 ; | |
3301 | int arg2 ; | |
3302 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3303 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3304 | char *kwnames[] = { |
3305 | (char *) "self",(char *) "x", NULL | |
3306 | }; | |
3307 | ||
8edf1c75 | 3308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3311 | arg2 = (int) SWIG_AsInt(obj1); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3313 | { |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | (arg1)->SetX(arg2); | |
3316 | ||
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
3320 | Py_INCREF(Py_None); resultobj = Py_None; | |
3321 | return resultobj; | |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
2f4c0a16 | 3327 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3328 | PyObject *resultobj; |
3329 | wxRect *arg1 = (wxRect *) 0 ; | |
3330 | int result; | |
3331 | PyObject * obj0 = 0 ; | |
3332 | char *kwnames[] = { | |
3333 | (char *) "self", NULL | |
3334 | }; | |
3335 | ||
3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3339 | { |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | result = (int)(arg1)->GetY(); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
2f4c0a16 | 3346 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3347 | return resultobj; |
3348 | fail: | |
3349 | return NULL; | |
3350 | } | |
3351 | ||
3352 | ||
2f4c0a16 | 3353 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3354 | PyObject *resultobj; |
3355 | wxRect *arg1 = (wxRect *) 0 ; | |
3356 | int arg2 ; | |
3357 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3358 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3359 | char *kwnames[] = { |
3360 | (char *) "self",(char *) "y", NULL | |
3361 | }; | |
3362 | ||
8edf1c75 | 3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3366 | arg2 = (int) SWIG_AsInt(obj1); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3368 | { |
3369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3370 | (arg1)->SetY(arg2); | |
3371 | ||
3372 | wxPyEndAllowThreads(__tstate); | |
3373 | if (PyErr_Occurred()) SWIG_fail; | |
3374 | } | |
3375 | Py_INCREF(Py_None); resultobj = Py_None; | |
3376 | return resultobj; | |
3377 | fail: | |
3378 | return NULL; | |
3379 | } | |
3380 | ||
3381 | ||
2f4c0a16 | 3382 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3383 | PyObject *resultobj; |
3384 | wxRect *arg1 = (wxRect *) 0 ; | |
3385 | int result; | |
3386 | PyObject * obj0 = 0 ; | |
3387 | char *kwnames[] = { | |
3388 | (char *) "self", NULL | |
3389 | }; | |
3390 | ||
3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3394 | { |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3397 | ||
3398 | wxPyEndAllowThreads(__tstate); | |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
3400 | } | |
2f4c0a16 | 3401 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3402 | return resultobj; |
3403 | fail: | |
3404 | return NULL; | |
3405 | } | |
3406 | ||
3407 | ||
2f4c0a16 | 3408 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3409 | PyObject *resultobj; |
3410 | wxRect *arg1 = (wxRect *) 0 ; | |
3411 | int arg2 ; | |
3412 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3413 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3414 | char *kwnames[] = { |
3415 | (char *) "self",(char *) "w", NULL | |
3416 | }; | |
3417 | ||
8edf1c75 | 3418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3421 | arg2 = (int) SWIG_AsInt(obj1); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3423 | { |
3424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3425 | (arg1)->SetWidth(arg2); | |
3426 | ||
3427 | wxPyEndAllowThreads(__tstate); | |
3428 | if (PyErr_Occurred()) SWIG_fail; | |
3429 | } | |
3430 | Py_INCREF(Py_None); resultobj = Py_None; | |
3431 | return resultobj; | |
3432 | fail: | |
3433 | return NULL; | |
3434 | } | |
3435 | ||
3436 | ||
2f4c0a16 | 3437 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3438 | PyObject *resultobj; |
3439 | wxRect *arg1 = (wxRect *) 0 ; | |
3440 | int result; | |
3441 | PyObject * obj0 = 0 ; | |
3442 | char *kwnames[] = { | |
3443 | (char *) "self", NULL | |
3444 | }; | |
3445 | ||
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3449 | { |
3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3451 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3452 | ||
3453 | wxPyEndAllowThreads(__tstate); | |
3454 | if (PyErr_Occurred()) SWIG_fail; | |
3455 | } | |
2f4c0a16 | 3456 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3457 | return resultobj; |
3458 | fail: | |
3459 | return NULL; | |
3460 | } | |
3461 | ||
3462 | ||
2f4c0a16 | 3463 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3464 | PyObject *resultobj; |
3465 | wxRect *arg1 = (wxRect *) 0 ; | |
3466 | int arg2 ; | |
3467 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3469 | char *kwnames[] = { |
3470 | (char *) "self",(char *) "h", NULL | |
3471 | }; | |
3472 | ||
8edf1c75 | 3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3476 | arg2 = (int) SWIG_AsInt(obj1); | |
3477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3478 | { |
3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3480 | (arg1)->SetHeight(arg2); | |
3481 | ||
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | Py_INCREF(Py_None); resultobj = Py_None; | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
2f4c0a16 | 3492 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3493 | PyObject *resultobj; |
3494 | wxRect *arg1 = (wxRect *) 0 ; | |
3495 | wxPoint result; | |
3496 | PyObject * obj0 = 0 ; | |
3497 | char *kwnames[] = { | |
3498 | (char *) "self", NULL | |
3499 | }; | |
3500 | ||
3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3504 | { |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | result = ((wxRect const *)arg1)->GetPosition(); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | { | |
3512 | wxPoint * resultptr; | |
3513 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3514 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3515 | } |
3516 | return resultobj; | |
3517 | fail: | |
3518 | return NULL; | |
3519 | } | |
3520 | ||
3521 | ||
2f4c0a16 | 3522 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3523 | PyObject *resultobj; |
3524 | wxRect *arg1 = (wxRect *) 0 ; | |
3525 | wxPoint *arg2 = 0 ; | |
3526 | wxPoint temp2 ; | |
3527 | PyObject * obj0 = 0 ; | |
3528 | PyObject * obj1 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "self",(char *) "p", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3536 | { |
3537 | arg2 = &temp2; | |
3538 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3539 | } | |
3540 | { | |
3541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3542 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3543 | ||
3544 | wxPyEndAllowThreads(__tstate); | |
3545 | if (PyErr_Occurred()) SWIG_fail; | |
3546 | } | |
3547 | Py_INCREF(Py_None); resultobj = Py_None; | |
3548 | return resultobj; | |
3549 | fail: | |
3550 | return NULL; | |
3551 | } | |
3552 | ||
3553 | ||
2f4c0a16 | 3554 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3555 | PyObject *resultobj; |
3556 | wxRect *arg1 = (wxRect *) 0 ; | |
3557 | wxSize result; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | char *kwnames[] = { | |
3560 | (char *) "self", NULL | |
3561 | }; | |
3562 | ||
3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3566 | { |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | result = ((wxRect const *)arg1)->GetSize(); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | { | |
3574 | wxSize * resultptr; | |
3575 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3576 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3577 | } |
3578 | return resultobj; | |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
2f4c0a16 | 3584 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3585 | PyObject *resultobj; |
3586 | wxRect *arg1 = (wxRect *) 0 ; | |
3587 | wxSize *arg2 = 0 ; | |
3588 | wxSize temp2 ; | |
3589 | PyObject * obj0 = 0 ; | |
3590 | PyObject * obj1 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self",(char *) "s", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3598 | { |
3599 | arg2 = &temp2; | |
3600 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3601 | } | |
3602 | { | |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | (arg1)->SetSize((wxSize const &)*arg2); | |
3605 | ||
3606 | wxPyEndAllowThreads(__tstate); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
3609 | Py_INCREF(Py_None); resultobj = Py_None; | |
3610 | return resultobj; | |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
2f4c0a16 | 3616 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
3617 | PyObject *resultobj; |
3618 | wxRect *arg1 = (wxRect *) 0 ; | |
3619 | wxPoint result; | |
3620 | PyObject * obj0 = 0 ; | |
3621 | char *kwnames[] = { | |
3622 | (char *) "self", NULL | |
3623 | }; | |
3624 | ||
3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3628 | { |
3629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3630 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3631 | ||
3632 | wxPyEndAllowThreads(__tstate); | |
3633 | if (PyErr_Occurred()) SWIG_fail; | |
3634 | } | |
3635 | { | |
3636 | wxPoint * resultptr; | |
3637 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3639 | } |
3640 | return resultobj; | |
3641 | fail: | |
3642 | return NULL; | |
3643 | } | |
3644 | ||
3645 | ||
2f4c0a16 | 3646 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
3647 | PyObject *resultobj; |
3648 | wxRect *arg1 = (wxRect *) 0 ; | |
3649 | wxPoint *arg2 = 0 ; | |
3650 | wxPoint temp2 ; | |
3651 | PyObject * obj0 = 0 ; | |
3652 | PyObject * obj1 = 0 ; | |
3653 | char *kwnames[] = { | |
3654 | (char *) "self",(char *) "p", NULL | |
3655 | }; | |
3656 | ||
3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3660 | { |
3661 | arg2 = &temp2; | |
3662 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3663 | } | |
3664 | { | |
3665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3666 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3667 | ||
3668 | wxPyEndAllowThreads(__tstate); | |
3669 | if (PyErr_Occurred()) SWIG_fail; | |
3670 | } | |
3671 | Py_INCREF(Py_None); resultobj = Py_None; | |
3672 | return resultobj; | |
3673 | fail: | |
3674 | return NULL; | |
3675 | } | |
3676 | ||
3677 | ||
2f4c0a16 | 3678 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
3679 | PyObject *resultobj; |
3680 | wxRect *arg1 = (wxRect *) 0 ; | |
3681 | wxPoint result; | |
3682 | PyObject * obj0 = 0 ; | |
3683 | char *kwnames[] = { | |
3684 | (char *) "self", NULL | |
3685 | }; | |
3686 | ||
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3690 | { |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | wxPoint * resultptr; | |
3699 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3701 | } |
3702 | return resultobj; | |
3703 | fail: | |
3704 | return NULL; | |
3705 | } | |
3706 | ||
3707 | ||
2f4c0a16 | 3708 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
3709 | PyObject *resultobj; |
3710 | wxRect *arg1 = (wxRect *) 0 ; | |
3711 | wxPoint *arg2 = 0 ; | |
3712 | wxPoint temp2 ; | |
3713 | PyObject * obj0 = 0 ; | |
3714 | PyObject * obj1 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self",(char *) "p", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3722 | { |
3723 | arg2 = &temp2; | |
3724 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3725 | } | |
3726 | { | |
3727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3728 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3729 | ||
3730 | wxPyEndAllowThreads(__tstate); | |
3731 | if (PyErr_Occurred()) SWIG_fail; | |
3732 | } | |
3733 | Py_INCREF(Py_None); resultobj = Py_None; | |
3734 | return resultobj; | |
3735 | fail: | |
3736 | return NULL; | |
3737 | } | |
3738 | ||
3739 | ||
2f4c0a16 | 3740 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3741 | PyObject *resultobj; |
3742 | wxRect *arg1 = (wxRect *) 0 ; | |
3743 | int result; | |
3744 | PyObject * obj0 = 0 ; | |
3745 | char *kwnames[] = { | |
3746 | (char *) "self", NULL | |
3747 | }; | |
3748 | ||
3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3752 | { |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
2f4c0a16 | 3759 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3760 | return resultobj; |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
2f4c0a16 | 3766 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3767 | PyObject *resultobj; |
3768 | wxRect *arg1 = (wxRect *) 0 ; | |
3769 | int result; | |
3770 | PyObject * obj0 = 0 ; | |
3771 | char *kwnames[] = { | |
3772 | (char *) "self", NULL | |
3773 | }; | |
3774 | ||
3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3778 | { |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
2f4c0a16 | 3785 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3786 | return resultobj; |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
2f4c0a16 | 3792 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3793 | PyObject *resultobj; |
3794 | wxRect *arg1 = (wxRect *) 0 ; | |
3795 | int result; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | char *kwnames[] = { | |
3798 | (char *) "self", NULL | |
3799 | }; | |
3800 | ||
3801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3804 | { |
3805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3806 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3807 | ||
3808 | wxPyEndAllowThreads(__tstate); | |
3809 | if (PyErr_Occurred()) SWIG_fail; | |
3810 | } | |
2f4c0a16 | 3811 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3812 | return resultobj; |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
2f4c0a16 | 3818 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3819 | PyObject *resultobj; |
3820 | wxRect *arg1 = (wxRect *) 0 ; | |
3821 | int result; | |
3822 | PyObject * obj0 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3830 | { |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) SWIG_fail; | |
3836 | } | |
2f4c0a16 | 3837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3838 | return resultobj; |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
2f4c0a16 | 3844 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3845 | PyObject *resultobj; |
3846 | wxRect *arg1 = (wxRect *) 0 ; | |
3847 | int arg2 ; | |
3848 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3849 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3850 | char *kwnames[] = { |
3851 | (char *) "self",(char *) "left", NULL | |
3852 | }; | |
3853 | ||
8edf1c75 | 3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3857 | arg2 = (int) SWIG_AsInt(obj1); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3859 | { |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | (arg1)->SetLeft(arg2); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
3866 | Py_INCREF(Py_None); resultobj = Py_None; | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | return NULL; | |
3870 | } | |
3871 | ||
3872 | ||
2f4c0a16 | 3873 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3874 | PyObject *resultobj; |
3875 | wxRect *arg1 = (wxRect *) 0 ; | |
3876 | int arg2 ; | |
3877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3879 | char *kwnames[] = { |
3880 | (char *) "self",(char *) "right", NULL | |
3881 | }; | |
3882 | ||
8edf1c75 | 3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3886 | arg2 = (int) SWIG_AsInt(obj1); | |
3887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3888 | { |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3890 | (arg1)->SetRight(arg2); | |
3891 | ||
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | Py_INCREF(Py_None); resultobj = Py_None; | |
3896 | return resultobj; | |
3897 | fail: | |
3898 | return NULL; | |
3899 | } | |
3900 | ||
3901 | ||
2f4c0a16 | 3902 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3903 | PyObject *resultobj; |
3904 | wxRect *arg1 = (wxRect *) 0 ; | |
3905 | int arg2 ; | |
3906 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3908 | char *kwnames[] = { |
3909 | (char *) "self",(char *) "top", NULL | |
3910 | }; | |
3911 | ||
8edf1c75 | 3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3915 | arg2 = (int) SWIG_AsInt(obj1); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3917 | { |
3918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3919 | (arg1)->SetTop(arg2); | |
3920 | ||
3921 | wxPyEndAllowThreads(__tstate); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
3924 | Py_INCREF(Py_None); resultobj = Py_None; | |
3925 | return resultobj; | |
3926 | fail: | |
3927 | return NULL; | |
3928 | } | |
3929 | ||
3930 | ||
2f4c0a16 | 3931 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3932 | PyObject *resultobj; |
3933 | wxRect *arg1 = (wxRect *) 0 ; | |
3934 | int arg2 ; | |
3935 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3937 | char *kwnames[] = { |
3938 | (char *) "self",(char *) "bottom", NULL | |
3939 | }; | |
3940 | ||
8edf1c75 | 3941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3944 | arg2 = (int) SWIG_AsInt(obj1); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3946 | { |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | (arg1)->SetBottom(arg2); | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | Py_INCREF(Py_None); resultobj = Py_None; | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | return NULL; | |
3957 | } | |
3958 | ||
3959 | ||
2f4c0a16 | 3960 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3961 | PyObject *resultobj; |
3962 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3963 | int arg2 ; |
3964 | int arg3 ; | |
d14a1e28 RD |
3965 | wxRect *result; |
3966 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3967 | PyObject * obj1 = 0 ; |
3968 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3969 | char *kwnames[] = { |
3970 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3971 | }; | |
3972 | ||
8edf1c75 | 3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3976 | arg2 = (int) SWIG_AsInt(obj1); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | arg3 = (int) SWIG_AsInt(obj2); | |
3979 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3980 | { |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | { | |
3983 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3984 | result = (wxRect *) &_result_ref; | |
3985 | } | |
3986 | ||
3987 | wxPyEndAllowThreads(__tstate); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | } | |
2f4c0a16 | 3990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
3991 | return resultobj; |
3992 | fail: | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
2f4c0a16 | 3997 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3998 | PyObject *resultobj; |
3999 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4000 | int arg2 ; |
4001 | int arg3 ; | |
d14a1e28 RD |
4002 | wxRect *result; |
4003 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4004 | PyObject * obj1 = 0 ; |
4005 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4006 | char *kwnames[] = { |
4007 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4008 | }; | |
4009 | ||
8edf1c75 | 4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4013 | arg2 = (int) SWIG_AsInt(obj1); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | arg3 = (int) SWIG_AsInt(obj2); | |
4016 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4017 | { |
4018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4019 | { | |
4020 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4021 | result = (wxRect *) &_result_ref; | |
4022 | } | |
4023 | ||
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
2f4c0a16 | 4027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4028 | return resultobj; |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
2f4c0a16 | 4034 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4035 | PyObject *resultobj; |
4036 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4037 | int arg2 ; |
4038 | int arg3 ; | |
d14a1e28 | 4039 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4040 | PyObject * obj1 = 0 ; |
4041 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4042 | char *kwnames[] = { |
4043 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4044 | }; | |
4045 | ||
8edf1c75 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4049 | arg2 = (int) SWIG_AsInt(obj1); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | arg3 = (int) SWIG_AsInt(obj2); | |
4052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4053 | { |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | (arg1)->Offset(arg2,arg3); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | Py_INCREF(Py_None); resultobj = Py_None; | |
4061 | return resultobj; | |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
2f4c0a16 | 4067 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4068 | PyObject *resultobj; |
4069 | wxRect *arg1 = (wxRect *) 0 ; | |
4070 | wxPoint *arg2 = 0 ; | |
4071 | wxPoint temp2 ; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | PyObject * obj1 = 0 ; | |
4074 | char *kwnames[] = { | |
4075 | (char *) "self",(char *) "pt", NULL | |
4076 | }; | |
4077 | ||
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4084 | } | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | (arg1)->Offset((wxPoint 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 | ||
2f4c0a16 | 4099 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4100 | PyObject *resultobj; |
4101 | wxRect *arg1 = (wxRect *) 0 ; | |
4102 | wxRect *arg2 = 0 ; | |
4103 | wxRect *result; | |
4104 | wxRect temp2 ; | |
4105 | PyObject * obj0 = 0 ; | |
4106 | PyObject * obj1 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "self",(char *) "rect", NULL | |
4109 | }; | |
4110 | ||
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4114 | { |
4115 | arg2 = &temp2; | |
4116 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4117 | } | |
4118 | { | |
4119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4120 | { | |
4121 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4122 | result = (wxRect *) &_result_ref; | |
4123 | } | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
2f4c0a16 | 4128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4129 | return resultobj; |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
2f4c0a16 | 4135 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4136 | PyObject *resultobj; |
4137 | wxRect *arg1 = (wxRect *) 0 ; | |
4138 | wxRect *arg2 = 0 ; | |
4139 | wxRect result; | |
4140 | wxRect temp2 ; | |
4141 | PyObject * obj0 = 0 ; | |
4142 | PyObject * obj1 = 0 ; | |
4143 | char *kwnames[] = { | |
4144 | (char *) "self",(char *) "rect", NULL | |
4145 | }; | |
4146 | ||
4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4150 | { |
4151 | arg2 = &temp2; | |
4152 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4153 | } | |
4154 | { | |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4156 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4157 | ||
4158 | wxPyEndAllowThreads(__tstate); | |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | } | |
4161 | { | |
4162 | wxRect * resultptr; | |
4163 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 4164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4165 | } |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
2f4c0a16 | 4172 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4173 | PyObject *resultobj; |
4174 | wxRect *arg1 = (wxRect *) 0 ; | |
4175 | wxRect *arg2 = 0 ; | |
4176 | wxRect *result; | |
4177 | wxRect temp2 ; | |
4178 | PyObject * obj0 = 0 ; | |
4179 | PyObject * obj1 = 0 ; | |
4180 | char *kwnames[] = { | |
4181 | (char *) "self",(char *) "rect", NULL | |
4182 | }; | |
4183 | ||
4184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4187 | { |
4188 | arg2 = &temp2; | |
4189 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4190 | } | |
4191 | { | |
4192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4193 | { | |
4194 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4195 | result = (wxRect *) &_result_ref; | |
4196 | } | |
4197 | ||
4198 | wxPyEndAllowThreads(__tstate); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | } | |
2f4c0a16 | 4201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4202 | return resultobj; |
4203 | fail: | |
4204 | return NULL; | |
4205 | } | |
4206 | ||
4207 | ||
2f4c0a16 | 4208 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4209 | PyObject *resultobj; |
4210 | wxRect *arg1 = (wxRect *) 0 ; | |
4211 | wxRect *arg2 = 0 ; | |
4212 | bool result; | |
4213 | wxRect temp2 ; | |
4214 | PyObject * obj0 = 0 ; | |
4215 | PyObject * obj1 = 0 ; | |
4216 | char *kwnames[] = { | |
4217 | (char *) "self",(char *) "rect", NULL | |
4218 | }; | |
4219 | ||
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4223 | { |
4224 | arg2 = &temp2; | |
4225 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4226 | } | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
02a34c4c | 4234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4235 | return resultobj; |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
2f4c0a16 | 4241 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4242 | PyObject *resultobj; |
4243 | wxRect *arg1 = (wxRect *) 0 ; | |
4244 | wxRect *arg2 = 0 ; | |
4245 | bool result; | |
4246 | wxRect temp2 ; | |
4247 | PyObject * obj0 = 0 ; | |
4248 | PyObject * obj1 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "self",(char *) "rect", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4256 | { |
4257 | arg2 = &temp2; | |
4258 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4263 | ||
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
02a34c4c | 4267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4268 | return resultobj; |
4269 | fail: | |
4270 | return NULL; | |
4271 | } | |
4272 | ||
4273 | ||
2f4c0a16 | 4274 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4275 | PyObject *resultobj; |
4276 | wxRect *arg1 = (wxRect *) 0 ; | |
4277 | int arg2 ; | |
4278 | int arg3 ; | |
4279 | bool result; | |
4280 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4281 | PyObject * obj1 = 0 ; |
4282 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4283 | char *kwnames[] = { |
4284 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4285 | }; | |
4286 | ||
8edf1c75 | 4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4290 | arg2 = (int) SWIG_AsInt(obj1); | |
4291 | if (PyErr_Occurred()) SWIG_fail; | |
4292 | arg3 = (int) SWIG_AsInt(obj2); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4294 | { |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
02a34c4c | 4301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4302 | return resultobj; |
4303 | fail: | |
4304 | return NULL; | |
4305 | } | |
4306 | ||
4307 | ||
2f4c0a16 | 4308 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4309 | PyObject *resultobj; |
4310 | wxRect *arg1 = (wxRect *) 0 ; | |
4311 | wxPoint *arg2 = 0 ; | |
4312 | bool result; | |
4313 | wxPoint temp2 ; | |
4314 | PyObject * obj0 = 0 ; | |
4315 | PyObject * obj1 = 0 ; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "self",(char *) "pt", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4323 | { |
4324 | arg2 = &temp2; | |
4325 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4326 | } | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4330 | ||
4331 | wxPyEndAllowThreads(__tstate); | |
4332 | if (PyErr_Occurred()) SWIG_fail; | |
4333 | } | |
02a34c4c | 4334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4335 | return resultobj; |
4336 | fail: | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
2f4c0a16 | 4341 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4342 | PyObject *resultobj; |
4343 | wxRect *arg1 = (wxRect *) 0 ; | |
4344 | wxRect *arg2 = 0 ; | |
4345 | bool result; | |
4346 | wxRect temp2 ; | |
4347 | PyObject * obj0 = 0 ; | |
4348 | PyObject * obj1 = 0 ; | |
4349 | char *kwnames[] = { | |
4350 | (char *) "self",(char *) "rect", NULL | |
4351 | }; | |
4352 | ||
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4356 | { |
4357 | arg2 = &temp2; | |
4358 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4359 | } | |
4360 | { | |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4362 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
02a34c4c | 4367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4368 | return resultobj; |
4369 | fail: | |
4370 | return NULL; | |
4371 | } | |
4372 | ||
4373 | ||
2f4c0a16 | 4374 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4375 | PyObject *resultobj; |
4376 | wxRect *arg1 = (wxRect *) 0 ; | |
4377 | int arg2 ; | |
4378 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4380 | char *kwnames[] = { |
4381 | (char *) "self",(char *) "x", NULL | |
4382 | }; | |
4383 | ||
8edf1c75 | 4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4387 | arg2 = (int) SWIG_AsInt(obj1); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4389 | if (arg1) (arg1)->x = arg2; |
4390 | ||
4391 | Py_INCREF(Py_None); resultobj = Py_None; | |
4392 | return resultobj; | |
4393 | fail: | |
4394 | return NULL; | |
4395 | } | |
4396 | ||
4397 | ||
2f4c0a16 | 4398 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4399 | PyObject *resultobj; |
4400 | wxRect *arg1 = (wxRect *) 0 ; | |
4401 | int result; | |
4402 | PyObject * obj0 = 0 ; | |
4403 | char *kwnames[] = { | |
4404 | (char *) "self", NULL | |
4405 | }; | |
4406 | ||
4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4410 | result = (int) ((arg1)->x); |
4411 | ||
2f4c0a16 | 4412 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4413 | return resultobj; |
4414 | fail: | |
4415 | return NULL; | |
4416 | } | |
4417 | ||
4418 | ||
2f4c0a16 | 4419 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4420 | PyObject *resultobj; |
4421 | wxRect *arg1 = (wxRect *) 0 ; | |
4422 | int arg2 ; | |
4423 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4425 | char *kwnames[] = { |
4426 | (char *) "self",(char *) "y", NULL | |
4427 | }; | |
4428 | ||
8edf1c75 | 4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4432 | arg2 = (int) SWIG_AsInt(obj1); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4434 | if (arg1) (arg1)->y = arg2; |
4435 | ||
4436 | Py_INCREF(Py_None); resultobj = Py_None; | |
4437 | return resultobj; | |
4438 | fail: | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
2f4c0a16 | 4443 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4444 | PyObject *resultobj; |
4445 | wxRect *arg1 = (wxRect *) 0 ; | |
4446 | int result; | |
4447 | PyObject * obj0 = 0 ; | |
4448 | char *kwnames[] = { | |
4449 | (char *) "self", NULL | |
4450 | }; | |
4451 | ||
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4455 | result = (int) ((arg1)->y); |
4456 | ||
2f4c0a16 | 4457 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4458 | return resultobj; |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
2f4c0a16 | 4464 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4465 | PyObject *resultobj; |
4466 | wxRect *arg1 = (wxRect *) 0 ; | |
4467 | int arg2 ; | |
4468 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4470 | char *kwnames[] = { |
4471 | (char *) "self",(char *) "width", NULL | |
4472 | }; | |
4473 | ||
8edf1c75 | 4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4477 | arg2 = (int) SWIG_AsInt(obj1); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4479 | if (arg1) (arg1)->width = arg2; |
4480 | ||
4481 | Py_INCREF(Py_None); resultobj = Py_None; | |
4482 | return resultobj; | |
4483 | fail: | |
4484 | return NULL; | |
4485 | } | |
4486 | ||
4487 | ||
2f4c0a16 | 4488 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4489 | PyObject *resultobj; |
4490 | wxRect *arg1 = (wxRect *) 0 ; | |
4491 | int result; | |
4492 | PyObject * obj0 = 0 ; | |
4493 | char *kwnames[] = { | |
4494 | (char *) "self", NULL | |
4495 | }; | |
4496 | ||
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4500 | result = (int) ((arg1)->width); |
4501 | ||
2f4c0a16 | 4502 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4503 | return resultobj; |
4504 | fail: | |
4505 | return NULL; | |
4506 | } | |
4507 | ||
4508 | ||
2f4c0a16 | 4509 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4510 | PyObject *resultobj; |
4511 | wxRect *arg1 = (wxRect *) 0 ; | |
4512 | int arg2 ; | |
4513 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4514 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4515 | char *kwnames[] = { |
4516 | (char *) "self",(char *) "height", NULL | |
4517 | }; | |
4518 | ||
8edf1c75 | 4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4522 | arg2 = (int) SWIG_AsInt(obj1); | |
4523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4524 | if (arg1) (arg1)->height = arg2; |
4525 | ||
4526 | Py_INCREF(Py_None); resultobj = Py_None; | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
2f4c0a16 | 4533 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4534 | PyObject *resultobj; |
4535 | wxRect *arg1 = (wxRect *) 0 ; | |
4536 | int result; | |
4537 | PyObject * obj0 = 0 ; | |
4538 | char *kwnames[] = { | |
4539 | (char *) "self", NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4545 | result = (int) ((arg1)->height); |
4546 | ||
2f4c0a16 | 4547 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4548 | return resultobj; |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
2f4c0a16 | 4554 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4555 | PyObject *resultobj; |
4556 | wxRect *arg1 = (wxRect *) 0 ; | |
4557 | int arg2 = (int) 0 ; | |
4558 | int arg3 = (int) 0 ; | |
4559 | int arg4 = (int) 0 ; | |
4560 | int arg5 = (int) 0 ; | |
4561 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4562 | PyObject * obj1 = 0 ; |
4563 | PyObject * obj2 = 0 ; | |
4564 | PyObject * obj3 = 0 ; | |
4565 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4566 | char *kwnames[] = { |
4567 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4568 | }; | |
4569 | ||
8edf1c75 | 4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4573 | if (obj1) { |
2f4c0a16 RD |
4574 | arg2 = (int) SWIG_AsInt(obj1); |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4576 | } |
4577 | if (obj2) { | |
2f4c0a16 RD |
4578 | arg3 = (int) SWIG_AsInt(obj2); |
4579 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4580 | } |
4581 | if (obj3) { | |
2f4c0a16 RD |
4582 | arg4 = (int) SWIG_AsInt(obj3); |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4584 | } |
4585 | if (obj4) { | |
2f4c0a16 RD |
4586 | arg5 = (int) SWIG_AsInt(obj4); |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4588 | } |
d14a1e28 RD |
4589 | { |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | Py_INCREF(Py_None); resultobj = Py_None; | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | return NULL; | |
4600 | } | |
4601 | ||
4602 | ||
2f4c0a16 | 4603 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4604 | PyObject *resultobj; |
4605 | wxRect *arg1 = (wxRect *) 0 ; | |
4606 | PyObject *result; | |
4607 | PyObject * obj0 = 0 ; | |
4608 | char *kwnames[] = { | |
4609 | (char *) "self", NULL | |
4610 | }; | |
4611 | ||
423f194a | 4612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4615 | { |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4617 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4618 | |
4619 | wxPyEndAllowThreads(__tstate); | |
4620 | if (PyErr_Occurred()) SWIG_fail; | |
4621 | } | |
4622 | resultobj = result; | |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
2f4c0a16 | 4629 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4630 | PyObject *obj; |
4631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4632 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4633 | Py_INCREF(obj); | |
4634 | return Py_BuildValue((char *)""); | |
4635 | } | |
2f4c0a16 | 4636 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4637 | PyObject *resultobj; |
4638 | wxRect *arg1 = (wxRect *) 0 ; | |
4639 | wxRect *arg2 = (wxRect *) 0 ; | |
4640 | PyObject *result; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | PyObject * obj1 = 0 ; | |
4643 | char *kwnames[] = { | |
4644 | (char *) "r1",(char *) "r2", NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4652 | { |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4654 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | resultobj = result; | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
4663 | } | |
4664 | ||
4665 | ||
2f4c0a16 | 4666 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4667 | PyObject *resultobj; |
4668 | double arg1 = (double) 0.0 ; | |
4669 | double arg2 = (double) 0.0 ; | |
4670 | wxPoint2D *result; | |
8edf1c75 RD |
4671 | PyObject * obj0 = 0 ; |
4672 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4673 | char *kwnames[] = { |
4674 | (char *) "x",(char *) "y", NULL | |
4675 | }; | |
4676 | ||
8edf1c75 RD |
4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4678 | if (obj0) { | |
2f4c0a16 RD |
4679 | arg1 = (double) SWIG_AsDouble(obj0); |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4681 | } |
4682 | if (obj1) { | |
2f4c0a16 RD |
4683 | arg2 = (double) SWIG_AsDouble(obj1); |
4684 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4685 | } |
d14a1e28 RD |
4686 | { |
4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4688 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4689 | ||
4690 | wxPyEndAllowThreads(__tstate); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
2f4c0a16 | 4693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4694 | return resultobj; |
4695 | fail: | |
4696 | return NULL; | |
4697 | } | |
4698 | ||
4699 | ||
2f4c0a16 | 4700 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4701 | PyObject *resultobj; |
4702 | wxPoint2D *arg1 = 0 ; | |
4703 | wxPoint2D *result; | |
4704 | wxPoint2D temp1 ; | |
4705 | PyObject * obj0 = 0 ; | |
4706 | char *kwnames[] = { | |
4707 | (char *) "pt", NULL | |
4708 | }; | |
4709 | ||
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4711 | { | |
4712 | arg1 = &temp1; | |
4713 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4714 | } | |
4715 | { | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4717 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
2f4c0a16 | 4722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4723 | return resultobj; |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
2f4c0a16 | 4729 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4730 | PyObject *resultobj; |
4731 | wxPoint *arg1 = 0 ; | |
4732 | wxPoint2D *result; | |
4733 | wxPoint temp1 ; | |
4734 | PyObject * obj0 = 0 ; | |
4735 | char *kwnames[] = { | |
4736 | (char *) "pt", NULL | |
4737 | }; | |
4738 | ||
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4740 | { | |
4741 | arg1 = &temp1; | |
4742 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4743 | } | |
4744 | { | |
4745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4746 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4747 | ||
4748 | wxPyEndAllowThreads(__tstate); | |
4749 | if (PyErr_Occurred()) SWIG_fail; | |
4750 | } | |
2f4c0a16 | 4751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4752 | return resultobj; |
4753 | fail: | |
4754 | return NULL; | |
4755 | } | |
4756 | ||
4757 | ||
2f4c0a16 | 4758 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4759 | PyObject *resultobj; |
4760 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4761 | int *arg2 = (int *) 0 ; | |
4762 | int *arg3 = (int *) 0 ; | |
4763 | int temp2 ; | |
4764 | int temp3 ; | |
4765 | PyObject * obj0 = 0 ; | |
4766 | char *kwnames[] = { | |
4767 | (char *) "self", NULL | |
4768 | }; | |
4769 | ||
4770 | arg2 = &temp2; | |
4771 | arg3 = &temp3; | |
4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4775 | { |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | Py_INCREF(Py_None); resultobj = Py_None; | |
4783 | { | |
4784 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4785 | resultobj = t_output_helper(resultobj,o); | |
4786 | } | |
4787 | { | |
4788 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4789 | resultobj = t_output_helper(resultobj,o); | |
4790 | } | |
4791 | return resultobj; | |
4792 | fail: | |
4793 | return NULL; | |
4794 | } | |
4795 | ||
4796 | ||
2f4c0a16 | 4797 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4798 | PyObject *resultobj; |
4799 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4800 | int *arg2 = (int *) 0 ; | |
4801 | int *arg3 = (int *) 0 ; | |
4802 | int temp2 ; | |
4803 | int temp3 ; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | char *kwnames[] = { | |
4806 | (char *) "self", NULL | |
4807 | }; | |
4808 | ||
4809 | arg2 = &temp2; | |
4810 | arg3 = &temp3; | |
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4814 | { |
4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4816 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4817 | ||
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | Py_INCREF(Py_None); resultobj = Py_None; | |
4822 | { | |
4823 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4824 | resultobj = t_output_helper(resultobj,o); | |
4825 | } | |
4826 | { | |
4827 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4828 | resultobj = t_output_helper(resultobj,o); | |
4829 | } | |
4830 | return resultobj; | |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
2f4c0a16 | 4836 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4837 | PyObject *resultobj; |
4838 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4839 | double result; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self", NULL | |
4843 | }; | |
4844 | ||
4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4848 | { |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
2f4c0a16 | 4855 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4856 | return resultobj; |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
2f4c0a16 | 4862 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4863 | PyObject *resultobj; |
4864 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4865 | double result; | |
4866 | PyObject * obj0 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "self", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4874 | { |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4876 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
2f4c0a16 | 4881 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4882 | return resultobj; |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
2f4c0a16 | 4888 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4889 | PyObject *resultobj; |
4890 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4891 | double arg2 ; | |
4892 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4893 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4894 | char *kwnames[] = { |
4895 | (char *) "self",(char *) "length", NULL | |
4896 | }; | |
4897 | ||
8edf1c75 | 4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4901 | arg2 = (double) SWIG_AsDouble(obj1); | |
4902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4903 | { |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | (arg1)->SetVectorLength(arg2); | |
4906 | ||
4907 | wxPyEndAllowThreads(__tstate); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
4910 | Py_INCREF(Py_None); resultobj = Py_None; | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
2f4c0a16 | 4917 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4918 | PyObject *resultobj; |
4919 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4920 | double arg2 ; | |
4921 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4923 | char *kwnames[] = { |
4924 | (char *) "self",(char *) "degrees", NULL | |
4925 | }; | |
4926 | ||
8edf1c75 | 4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4930 | arg2 = (double) SWIG_AsDouble(obj1); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4932 | { |
4933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4934 | (arg1)->SetVectorAngle(arg2); | |
4935 | ||
4936 | wxPyEndAllowThreads(__tstate); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
4938 | } | |
4939 | Py_INCREF(Py_None); resultobj = Py_None; | |
4940 | return resultobj; | |
4941 | fail: | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
2f4c0a16 | 4946 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4947 | PyObject *resultobj; |
4948 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4949 | wxPoint2D *arg2 = 0 ; | |
4950 | double result; | |
4951 | wxPoint2D temp2 ; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | PyObject * obj1 = 0 ; | |
4954 | char *kwnames[] = { | |
4955 | (char *) "self",(char *) "pt", NULL | |
4956 | }; | |
4957 | ||
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4961 | { |
4962 | arg2 = &temp2; | |
4963 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4964 | } | |
4965 | { | |
4966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4967 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4968 | ||
4969 | wxPyEndAllowThreads(__tstate); | |
4970 | if (PyErr_Occurred()) SWIG_fail; | |
4971 | } | |
2f4c0a16 | 4972 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4973 | return resultobj; |
4974 | fail: | |
4975 | return NULL; | |
4976 | } | |
4977 | ||
4978 | ||
2f4c0a16 | 4979 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4980 | PyObject *resultobj; |
4981 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4982 | wxPoint2D *arg2 = 0 ; | |
4983 | double result; | |
4984 | wxPoint2D temp2 ; | |
4985 | PyObject * obj0 = 0 ; | |
4986 | PyObject * obj1 = 0 ; | |
4987 | char *kwnames[] = { | |
4988 | (char *) "self",(char *) "pt", NULL | |
4989 | }; | |
4990 | ||
4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4994 | { |
4995 | arg2 = &temp2; | |
4996 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4997 | } | |
4998 | { | |
4999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5000 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5001 | ||
5002 | wxPyEndAllowThreads(__tstate); | |
5003 | if (PyErr_Occurred()) SWIG_fail; | |
5004 | } | |
2f4c0a16 | 5005 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5006 | return resultobj; |
5007 | fail: | |
5008 | return NULL; | |
5009 | } | |
5010 | ||
5011 | ||
2f4c0a16 | 5012 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5013 | PyObject *resultobj; |
5014 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5015 | wxPoint2D *arg2 = 0 ; | |
5016 | double result; | |
5017 | wxPoint2D temp2 ; | |
5018 | PyObject * obj0 = 0 ; | |
5019 | PyObject * obj1 = 0 ; | |
5020 | char *kwnames[] = { | |
5021 | (char *) "self",(char *) "vec", NULL | |
5022 | }; | |
5023 | ||
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5027 | { |
5028 | arg2 = &temp2; | |
5029 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5030 | } | |
5031 | { | |
5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5033 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5034 | ||
5035 | wxPyEndAllowThreads(__tstate); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
2f4c0a16 | 5038 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5039 | return resultobj; |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
2f4c0a16 | 5045 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5046 | PyObject *resultobj; |
5047 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5048 | wxPoint2D *arg2 = 0 ; | |
5049 | double result; | |
5050 | wxPoint2D temp2 ; | |
5051 | PyObject * obj0 = 0 ; | |
5052 | PyObject * obj1 = 0 ; | |
5053 | char *kwnames[] = { | |
5054 | (char *) "self",(char *) "vec", NULL | |
5055 | }; | |
5056 | ||
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5060 | { |
5061 | arg2 = &temp2; | |
5062 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5063 | } | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5067 | ||
5068 | wxPyEndAllowThreads(__tstate); | |
5069 | if (PyErr_Occurred()) SWIG_fail; | |
5070 | } | |
2f4c0a16 | 5071 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5072 | return resultobj; |
5073 | fail: | |
5074 | return NULL; | |
5075 | } | |
5076 | ||
5077 | ||
2f4c0a16 | 5078 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5079 | PyObject *resultobj; |
5080 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5081 | wxPoint2D result; | |
5082 | PyObject * obj0 = 0 ; | |
5083 | char *kwnames[] = { | |
5084 | (char *) "self", NULL | |
5085 | }; | |
5086 | ||
5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5090 | { |
5091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5092 | result = (arg1)->operator -(); | |
5093 | ||
5094 | wxPyEndAllowThreads(__tstate); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
5097 | { | |
5098 | wxPoint2D * resultptr; | |
5099 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
2f4c0a16 | 5100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5101 | } |
5102 | return resultobj; | |
5103 | fail: | |
5104 | return NULL; | |
5105 | } | |
5106 | ||
5107 | ||
2f4c0a16 | 5108 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5109 | PyObject *resultobj; |
5110 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5111 | wxPoint2D *arg2 = 0 ; | |
5112 | wxPoint2D *result; | |
5113 | wxPoint2D temp2 ; | |
5114 | PyObject * obj0 = 0 ; | |
5115 | PyObject * obj1 = 0 ; | |
5116 | char *kwnames[] = { | |
5117 | (char *) "self",(char *) "pt", NULL | |
5118 | }; | |
5119 | ||
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5123 | { |
5124 | arg2 = &temp2; | |
5125 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5126 | } | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | { | |
5130 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5131 | result = (wxPoint2D *) &_result_ref; | |
5132 | } | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
2f4c0a16 | 5137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5138 | return resultobj; |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
2f4c0a16 | 5144 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5145 | PyObject *resultobj; |
5146 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5147 | wxPoint2D *arg2 = 0 ; | |
5148 | wxPoint2D *result; | |
5149 | wxPoint2D temp2 ; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | PyObject * obj1 = 0 ; | |
5152 | char *kwnames[] = { | |
5153 | (char *) "self",(char *) "pt", NULL | |
5154 | }; | |
5155 | ||
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5159 | { |
5160 | arg2 = &temp2; | |
5161 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5162 | } | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | { | |
5166 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5167 | result = (wxPoint2D *) &_result_ref; | |
5168 | } | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
2f4c0a16 | 5173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5174 | return resultobj; |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
2f4c0a16 | 5180 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5181 | PyObject *resultobj; |
5182 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5183 | wxPoint2D *arg2 = 0 ; | |
5184 | wxPoint2D *result; | |
5185 | wxPoint2D temp2 ; | |
5186 | PyObject * obj0 = 0 ; | |
5187 | PyObject * obj1 = 0 ; | |
5188 | char *kwnames[] = { | |
5189 | (char *) "self",(char *) "pt", NULL | |
5190 | }; | |
5191 | ||
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5195 | { |
5196 | arg2 = &temp2; | |
5197 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5198 | } | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | { | |
5202 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5203 | result = (wxPoint2D *) &_result_ref; | |
5204 | } | |
5205 | ||
5206 | wxPyEndAllowThreads(__tstate); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | } | |
2f4c0a16 | 5209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5210 | return resultobj; |
5211 | fail: | |
5212 | return NULL; | |
5213 | } | |
5214 | ||
5215 | ||
2f4c0a16 | 5216 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5217 | PyObject *resultobj; |
5218 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5219 | wxPoint2D *arg2 = 0 ; | |
5220 | wxPoint2D *result; | |
5221 | wxPoint2D temp2 ; | |
5222 | PyObject * obj0 = 0 ; | |
5223 | PyObject * obj1 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "self",(char *) "pt", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5231 | { |
5232 | arg2 = &temp2; | |
5233 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5234 | } | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | { | |
5238 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5239 | result = (wxPoint2D *) &_result_ref; | |
5240 | } | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
2f4c0a16 | 5245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5246 | return resultobj; |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
2f4c0a16 | 5252 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5253 | PyObject *resultobj; |
5254 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5255 | wxPoint2D *arg2 = 0 ; | |
5256 | bool result; | |
5257 | wxPoint2D temp2 ; | |
5258 | PyObject * obj0 = 0 ; | |
5259 | PyObject * obj1 = 0 ; | |
5260 | char *kwnames[] = { | |
5261 | (char *) "self",(char *) "pt", NULL | |
5262 | }; | |
5263 | ||
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5267 | { |
5268 | arg2 = &temp2; | |
5269 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5270 | } | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | } | |
02a34c4c | 5278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5279 | return resultobj; |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
2f4c0a16 | 5285 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5286 | PyObject *resultobj; |
5287 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5288 | wxPoint2D *arg2 = 0 ; | |
5289 | bool result; | |
5290 | wxPoint2D temp2 ; | |
5291 | PyObject * obj0 = 0 ; | |
5292 | PyObject * obj1 = 0 ; | |
5293 | char *kwnames[] = { | |
5294 | (char *) "self",(char *) "pt", NULL | |
5295 | }; | |
5296 | ||
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5300 | { |
5301 | arg2 = &temp2; | |
5302 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5303 | } | |
5304 | { | |
5305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5306 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5307 | ||
5308 | wxPyEndAllowThreads(__tstate); | |
5309 | if (PyErr_Occurred()) SWIG_fail; | |
5310 | } | |
02a34c4c | 5311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5312 | return resultobj; |
5313 | fail: | |
5314 | return NULL; | |
5315 | } | |
5316 | ||
5317 | ||
2f4c0a16 | 5318 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5319 | PyObject *resultobj; |
5320 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5321 | double arg2 ; | |
5322 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5324 | char *kwnames[] = { |
5325 | (char *) "self",(char *) "m_x", NULL | |
5326 | }; | |
5327 | ||
8edf1c75 | 5328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5331 | arg2 = (double) SWIG_AsDouble(obj1); | |
5332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5333 | if (arg1) (arg1)->m_x = arg2; |
5334 | ||
5335 | Py_INCREF(Py_None); resultobj = Py_None; | |
5336 | return resultobj; | |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
2f4c0a16 | 5342 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5343 | PyObject *resultobj; |
5344 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5345 | double result; | |
5346 | PyObject * obj0 = 0 ; | |
5347 | char *kwnames[] = { | |
5348 | (char *) "self", NULL | |
5349 | }; | |
5350 | ||
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5354 | result = (double) ((arg1)->m_x); |
5355 | ||
2f4c0a16 | 5356 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5357 | return resultobj; |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
2f4c0a16 | 5363 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5364 | PyObject *resultobj; |
5365 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5366 | double arg2 ; | |
5367 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5369 | char *kwnames[] = { |
5370 | (char *) "self",(char *) "m_y", NULL | |
5371 | }; | |
5372 | ||
8edf1c75 | 5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5376 | arg2 = (double) SWIG_AsDouble(obj1); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5378 | if (arg1) (arg1)->m_y = arg2; |
5379 | ||
5380 | Py_INCREF(Py_None); resultobj = Py_None; | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | return NULL; | |
5384 | } | |
5385 | ||
5386 | ||
2f4c0a16 | 5387 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5388 | PyObject *resultobj; |
5389 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5390 | double result; | |
5391 | PyObject * obj0 = 0 ; | |
5392 | char *kwnames[] = { | |
5393 | (char *) "self", NULL | |
5394 | }; | |
5395 | ||
5396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5399 | result = (double) ((arg1)->m_y); |
5400 | ||
2f4c0a16 | 5401 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5402 | return resultobj; |
5403 | fail: | |
5404 | return NULL; | |
5405 | } | |
5406 | ||
5407 | ||
2f4c0a16 | 5408 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5409 | PyObject *resultobj; |
5410 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5411 | double arg2 = (double) 0 ; | |
5412 | double arg3 = (double) 0 ; | |
5413 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5414 | PyObject * obj1 = 0 ; |
5415 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5416 | char *kwnames[] = { |
5417 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5418 | }; | |
5419 | ||
8edf1c75 | 5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5423 | if (obj1) { |
2f4c0a16 RD |
5424 | arg2 = (double) SWIG_AsDouble(obj1); |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5426 | } |
5427 | if (obj2) { | |
2f4c0a16 RD |
5428 | arg3 = (double) SWIG_AsDouble(obj2); |
5429 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5430 | } |
d14a1e28 RD |
5431 | { |
5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5433 | wxPoint2D_Set(arg1,arg2,arg3); | |
5434 | ||
5435 | wxPyEndAllowThreads(__tstate); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | } | |
5438 | Py_INCREF(Py_None); resultobj = Py_None; | |
5439 | return resultobj; | |
5440 | fail: | |
5441 | return NULL; | |
5442 | } | |
5443 | ||
5444 | ||
2f4c0a16 | 5445 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5446 | PyObject *resultobj; |
5447 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5448 | PyObject *result; | |
5449 | PyObject * obj0 = 0 ; | |
5450 | char *kwnames[] = { | |
5451 | (char *) "self", NULL | |
5452 | }; | |
5453 | ||
423f194a | 5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
5455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5457 | { |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5459 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5460 | |
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | resultobj = result; | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | return NULL; | |
5468 | } | |
5469 | ||
5470 | ||
2f4c0a16 | 5471 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5472 | PyObject *obj; |
5473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5474 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5475 | Py_INCREF(obj); | |
5476 | return Py_BuildValue((char *)""); | |
5477 | } | |
8edf1c75 | 5478 | static int _wrap_DefaultPosition_set(PyObject *) { |
d14a1e28 RD |
5479 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5480 | return 1; | |
5481 | } | |
5482 | ||
5483 | ||
5484 | static PyObject *_wrap_DefaultPosition_get() { | |
5485 | PyObject *pyobj; | |
5486 | ||
2f4c0a16 | 5487 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5488 | return pyobj; |
5489 | } | |
5490 | ||
5491 | ||
8edf1c75 | 5492 | static int _wrap_DefaultSize_set(PyObject *) { |
d14a1e28 RD |
5493 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5494 | return 1; | |
5495 | } | |
5496 | ||
5497 | ||
5498 | static PyObject *_wrap_DefaultSize_get() { | |
5499 | PyObject *pyobj; | |
5500 | ||
2f4c0a16 | 5501 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5502 | return pyobj; |
5503 | } | |
5504 | ||
5505 | ||
2f4c0a16 | 5506 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5507 | PyObject *resultobj; |
5508 | PyObject *arg1 = (PyObject *) 0 ; | |
5509 | wxPyInputStream *result; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | char *kwnames[] = { | |
5512 | (char *) "p", NULL | |
5513 | }; | |
5514 | ||
5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5516 | arg1 = obj0; | |
5517 | { | |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5520 | ||
5521 | wxPyEndAllowThreads(__tstate); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
5523 | } | |
2f4c0a16 | 5524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5525 | return resultobj; |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
2f4c0a16 | 5531 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5532 | PyObject *resultobj; |
5533 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "self", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5542 | { |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | (arg1)->close(); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | Py_INCREF(Py_None); resultobj = Py_None; | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
2f4c0a16 | 5556 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5557 | PyObject *resultobj; |
5558 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5559 | PyObject * obj0 = 0 ; | |
5560 | char *kwnames[] = { | |
5561 | (char *) "self", NULL | |
5562 | }; | |
5563 | ||
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5567 | { |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | (arg1)->flush(); | |
5570 | ||
5571 | wxPyEndAllowThreads(__tstate); | |
5572 | if (PyErr_Occurred()) SWIG_fail; | |
5573 | } | |
5574 | Py_INCREF(Py_None); resultobj = Py_None; | |
5575 | return resultobj; | |
5576 | fail: | |
5577 | return NULL; | |
5578 | } | |
5579 | ||
5580 | ||
2f4c0a16 | 5581 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5582 | PyObject *resultobj; |
5583 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5584 | bool result; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | char *kwnames[] = { | |
5587 | (char *) "self", NULL | |
5588 | }; | |
5589 | ||
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5593 | { |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | result = (bool)(arg1)->eof(); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
02a34c4c | 5600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5601 | return resultobj; |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
2f4c0a16 | 5607 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5608 | PyObject *resultobj; |
5609 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5610 | int arg2 = (int) -1 ; | |
5611 | PyObject *result; | |
5612 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5613 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5614 | char *kwnames[] = { |
5615 | (char *) "self",(char *) "size", NULL | |
5616 | }; | |
5617 | ||
8edf1c75 | 5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5621 | if (obj1) { |
2f4c0a16 RD |
5622 | arg2 = (int) SWIG_AsInt(obj1); |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5624 | } |
d14a1e28 RD |
5625 | { |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (PyObject *)(arg1)->read(arg2); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | resultobj = result; | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
2f4c0a16 | 5639 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5640 | PyObject *resultobj; |
5641 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5642 | int arg2 = (int) -1 ; | |
5643 | PyObject *result; | |
5644 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5646 | char *kwnames[] = { |
5647 | (char *) "self",(char *) "size", NULL | |
5648 | }; | |
5649 | ||
8edf1c75 | 5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5653 | if (obj1) { |
2f4c0a16 RD |
5654 | arg2 = (int) SWIG_AsInt(obj1); |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5656 | } |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | result = (PyObject *)(arg1)->readline(arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | resultobj = result; | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
2f4c0a16 | 5671 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5672 | PyObject *resultobj; |
5673 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5674 | int arg2 = (int) -1 ; | |
5675 | PyObject *result; | |
5676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5678 | char *kwnames[] = { |
5679 | (char *) "self",(char *) "sizehint", NULL | |
5680 | }; | |
5681 | ||
8edf1c75 | 5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5685 | if (obj1) { |
2f4c0a16 RD |
5686 | arg2 = (int) SWIG_AsInt(obj1); |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5688 | } |
d14a1e28 RD |
5689 | { |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | result = (PyObject *)(arg1)->readlines(arg2); | |
5692 | ||
5693 | wxPyEndAllowThreads(__tstate); | |
5694 | if (PyErr_Occurred()) SWIG_fail; | |
5695 | } | |
5696 | resultobj = result; | |
5697 | return resultobj; | |
5698 | fail: | |
5699 | return NULL; | |
5700 | } | |
5701 | ||
5702 | ||
2f4c0a16 | 5703 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5704 | PyObject *resultobj; |
5705 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5706 | int arg2 ; | |
5707 | int arg3 = (int) 0 ; | |
5708 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5709 | PyObject * obj1 = 0 ; |
5710 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5711 | char *kwnames[] = { |
5712 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5713 | }; | |
5714 | ||
8edf1c75 | 5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5718 | arg2 = (int) SWIG_AsInt(obj1); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5720 | if (obj2) { |
2f4c0a16 RD |
5721 | arg3 = (int) SWIG_AsInt(obj2); |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5723 | } |
d14a1e28 RD |
5724 | { |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5726 | (arg1)->seek(arg2,arg3); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
5730 | } | |
5731 | Py_INCREF(Py_None); resultobj = Py_None; | |
5732 | return resultobj; | |
5733 | fail: | |
5734 | return NULL; | |
5735 | } | |
5736 | ||
5737 | ||
2f4c0a16 | 5738 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5739 | PyObject *resultobj; |
5740 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5741 | int result; | |
5742 | PyObject * obj0 = 0 ; | |
5743 | char *kwnames[] = { | |
5744 | (char *) "self", NULL | |
5745 | }; | |
5746 | ||
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5750 | { |
5751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5752 | result = (int)(arg1)->tell(); | |
5753 | ||
5754 | wxPyEndAllowThreads(__tstate); | |
5755 | if (PyErr_Occurred()) SWIG_fail; | |
5756 | } | |
2f4c0a16 | 5757 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5758 | return resultobj; |
5759 | fail: | |
5760 | return NULL; | |
5761 | } | |
5762 | ||
5763 | ||
2f4c0a16 | 5764 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5765 | PyObject *resultobj; |
5766 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5767 | char result; | |
5768 | PyObject * obj0 = 0 ; | |
5769 | char *kwnames[] = { | |
5770 | (char *) "self", NULL | |
5771 | }; | |
5772 | ||
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5776 | { |
5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5778 | result = (char)(arg1)->Peek(); | |
5779 | ||
5780 | wxPyEndAllowThreads(__tstate); | |
5781 | if (PyErr_Occurred()) SWIG_fail; | |
5782 | } | |
2f4c0a16 | 5783 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5784 | return resultobj; |
5785 | fail: | |
5786 | return NULL; | |
5787 | } | |
5788 | ||
5789 | ||
2f4c0a16 | 5790 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5791 | PyObject *resultobj; |
5792 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5793 | char result; | |
5794 | PyObject * obj0 = 0 ; | |
5795 | char *kwnames[] = { | |
5796 | (char *) "self", NULL | |
5797 | }; | |
5798 | ||
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5802 | { |
5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5804 | result = (char)(arg1)->GetC(); | |
5805 | ||
5806 | wxPyEndAllowThreads(__tstate); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
2f4c0a16 | 5809 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5810 | return resultobj; |
5811 | fail: | |
5812 | return NULL; | |
5813 | } | |
5814 | ||
5815 | ||
2f4c0a16 | 5816 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5817 | PyObject *resultobj; |
5818 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5819 | size_t result; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | char *kwnames[] = { | |
5822 | (char *) "self", NULL | |
5823 | }; | |
5824 | ||
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5828 | { |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | result = (size_t)(arg1)->LastRead(); | |
5831 | ||
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
2f4c0a16 | 5835 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5836 | return resultobj; |
5837 | fail: | |
5838 | return NULL; | |
5839 | } | |
5840 | ||
5841 | ||
2f4c0a16 | 5842 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5843 | PyObject *resultobj; |
5844 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5845 | bool result; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | char *kwnames[] = { | |
5848 | (char *) "self", NULL | |
5849 | }; | |
5850 | ||
5851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5854 | { |
5855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5856 | result = (bool)(arg1)->CanRead(); | |
5857 | ||
5858 | wxPyEndAllowThreads(__tstate); | |
5859 | if (PyErr_Occurred()) SWIG_fail; | |
5860 | } | |
02a34c4c | 5861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5862 | return resultobj; |
5863 | fail: | |
5864 | return NULL; | |
5865 | } | |
5866 | ||
5867 | ||
2f4c0a16 | 5868 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5869 | PyObject *resultobj; |
5870 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5871 | bool result; | |
5872 | PyObject * obj0 = 0 ; | |
5873 | char *kwnames[] = { | |
5874 | (char *) "self", NULL | |
5875 | }; | |
5876 | ||
5877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5880 | { |
5881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5882 | result = (bool)(arg1)->Eof(); | |
5883 | ||
5884 | wxPyEndAllowThreads(__tstate); | |
5885 | if (PyErr_Occurred()) SWIG_fail; | |
5886 | } | |
02a34c4c | 5887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5888 | return resultobj; |
5889 | fail: | |
5890 | return NULL; | |
5891 | } | |
5892 | ||
5893 | ||
2f4c0a16 | 5894 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5895 | PyObject *resultobj; |
5896 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5897 | char arg2 ; | |
5898 | bool result; | |
5899 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5901 | char *kwnames[] = { |
5902 | (char *) "self",(char *) "c", NULL | |
5903 | }; | |
5904 | ||
8edf1c75 | 5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5908 | arg2 = (char) SWIG_AsChar(obj1); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5910 | { |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | result = (bool)(arg1)->Ungetch(arg2); | |
5913 | ||
5914 | wxPyEndAllowThreads(__tstate); | |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
5916 | } | |
02a34c4c | 5917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5918 | return resultobj; |
5919 | fail: | |
5920 | return NULL; | |
5921 | } | |
5922 | ||
5923 | ||
2f4c0a16 | 5924 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5925 | PyObject *resultobj; |
5926 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5927 | long arg2 ; | |
5928 | int arg3 = (int) wxFromStart ; | |
5929 | long result; | |
5930 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5931 | PyObject * obj1 = 0 ; |
5932 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5933 | char *kwnames[] = { |
5934 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5935 | }; | |
5936 | ||
8edf1c75 | 5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5940 | arg2 = (long) SWIG_AsLong(obj1); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5942 | if (obj2) { |
2f4c0a16 RD |
5943 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5945 | } |
d14a1e28 RD |
5946 | { |
5947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5948 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5949 | ||
5950 | wxPyEndAllowThreads(__tstate); | |
5951 | if (PyErr_Occurred()) SWIG_fail; | |
5952 | } | |
2f4c0a16 | 5953 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5954 | return resultobj; |
5955 | fail: | |
5956 | return NULL; | |
5957 | } | |
5958 | ||
5959 | ||
2f4c0a16 | 5960 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5961 | PyObject *resultobj; |
5962 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5963 | long result; | |
5964 | PyObject * obj0 = 0 ; | |
5965 | char *kwnames[] = { | |
5966 | (char *) "self", NULL | |
5967 | }; | |
5968 | ||
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5972 | { |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | result = (long)(arg1)->TellI(); | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
2f4c0a16 | 5979 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5980 | return resultobj; |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
2f4c0a16 | 5986 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5987 | PyObject *obj; |
5988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5989 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5990 | Py_INCREF(obj); | |
5991 | return Py_BuildValue((char *)""); | |
5992 | } | |
2f4c0a16 | 5993 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5994 | PyObject *resultobj; |
5995 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5996 | PyObject *arg2 = (PyObject *) 0 ; | |
5997 | PyObject * obj0 = 0 ; | |
5998 | PyObject * obj1 = 0 ; | |
5999 | char *kwnames[] = { | |
6000 | (char *) "self",(char *) "obj", NULL | |
6001 | }; | |
6002 | ||
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6006 | arg2 = obj1; |
6007 | { | |
6008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6009 | wxOutputStream_write(arg1,arg2); | |
6010 | ||
6011 | wxPyEndAllowThreads(__tstate); | |
6012 | if (PyErr_Occurred()) SWIG_fail; | |
6013 | } | |
6014 | Py_INCREF(Py_None); resultobj = Py_None; | |
6015 | return resultobj; | |
6016 | fail: | |
6017 | return NULL; | |
6018 | } | |
6019 | ||
6020 | ||
2f4c0a16 | 6021 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6022 | PyObject *obj; |
6023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6024 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6025 | Py_INCREF(obj); | |
6026 | return Py_BuildValue((char *)""); | |
6027 | } | |
2f4c0a16 | 6028 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6029 | PyObject *resultobj; |
6030 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6031 | wxString *arg2 = 0 ; | |
6032 | wxString *arg3 = 0 ; | |
6033 | wxString *arg4 = 0 ; | |
6034 | wxDateTime arg5 ; | |
6035 | wxFSFile *result; | |
6036 | wxPyInputStream *temp1 ; | |
6037 | bool created1 ; | |
423f194a RD |
6038 | bool temp2 = False ; |
6039 | bool temp3 = False ; | |
6040 | bool temp4 = False ; | |
d14a1e28 RD |
6041 | wxDateTime *argp5 ; |
6042 | PyObject * obj0 = 0 ; | |
6043 | PyObject * obj1 = 0 ; | |
6044 | PyObject * obj2 = 0 ; | |
6045 | PyObject * obj3 = 0 ; | |
6046 | PyObject * obj4 = 0 ; | |
6047 | char *kwnames[] = { | |
6048 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6049 | }; | |
6050 | ||
6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6052 | { | |
6053 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6054 | arg1 = temp1->m_wxis; | |
423f194a | 6055 | created1 = False; |
d14a1e28 RD |
6056 | } else { |
6057 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 6058 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6059 | if (arg1 == NULL) { |
6060 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6061 | SWIG_fail; | |
6062 | } | |
423f194a | 6063 | created1 = True; |
d14a1e28 RD |
6064 | } |
6065 | } | |
6066 | { | |
6067 | arg2 = wxString_in_helper(obj1); | |
6068 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6069 | temp2 = True; |
d14a1e28 RD |
6070 | } |
6071 | { | |
6072 | arg3 = wxString_in_helper(obj2); | |
6073 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6074 | temp3 = True; |
d14a1e28 RD |
6075 | } |
6076 | { | |
6077 | arg4 = wxString_in_helper(obj3); | |
6078 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6079 | temp4 = True; |
d14a1e28 | 6080 | } |
2f4c0a16 RD |
6081 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6082 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6083 | arg5 = *argp5; | |
d14a1e28 RD |
6084 | { |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | { | |
6092 | resultobj = wxPyMake_wxObject(result); | |
6093 | } | |
6094 | { | |
6095 | if (created1) | |
6096 | delete arg1; | |
6097 | } | |
6098 | { | |
6099 | if (temp2) | |
6100 | delete arg2; | |
6101 | } | |
6102 | { | |
6103 | if (temp3) | |
6104 | delete arg3; | |
6105 | } | |
6106 | { | |
6107 | if (temp4) | |
6108 | delete arg4; | |
6109 | } | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | { | |
6113 | if (created1) | |
6114 | delete arg1; | |
6115 | } | |
6116 | { | |
6117 | if (temp2) | |
6118 | delete arg2; | |
6119 | } | |
6120 | { | |
6121 | if (temp3) | |
6122 | delete arg3; | |
6123 | } | |
6124 | { | |
6125 | if (temp4) | |
6126 | delete arg4; | |
6127 | } | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
2f4c0a16 | 6132 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6133 | PyObject *resultobj; |
6134 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6135 | PyObject * obj0 = 0 ; | |
6136 | char *kwnames[] = { | |
6137 | (char *) "self", NULL | |
6138 | }; | |
6139 | ||
6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6143 | { |
6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6145 | delete arg1; | |
6146 | ||
6147 | wxPyEndAllowThreads(__tstate); | |
6148 | if (PyErr_Occurred()) SWIG_fail; | |
6149 | } | |
6150 | Py_INCREF(Py_None); resultobj = Py_None; | |
6151 | return resultobj; | |
6152 | fail: | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
2f4c0a16 | 6157 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6158 | PyObject *resultobj; |
6159 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6160 | wxInputStream *result; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | char *kwnames[] = { | |
6163 | (char *) "self", NULL | |
6164 | }; | |
6165 | ||
6166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6169 | { |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | result = (wxInputStream *)(arg1)->GetStream(); | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | { | |
6177 | wxPyInputStream * _ptr = NULL; | |
6178 | ||
6179 | if (result) { | |
6180 | _ptr = new wxPyInputStream(result); | |
6181 | } | |
423f194a | 6182 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6183 | } |
6184 | return resultobj; | |
6185 | fail: | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
2f4c0a16 | 6190 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6191 | PyObject *resultobj; |
6192 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6193 | wxString *result; | |
6194 | PyObject * obj0 = 0 ; | |
6195 | char *kwnames[] = { | |
6196 | (char *) "self", NULL | |
6197 | }; | |
6198 | ||
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6202 | { |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | { | |
6205 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6206 | result = (wxString *) &_result_ref; | |
6207 | } | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
0f774bef RD |
6212 | { |
6213 | #if wxUSE_UNICODE | |
6214 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6215 | #else | |
6216 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6217 | #endif | |
6218 | } | |
d14a1e28 RD |
6219 | return resultobj; |
6220 | fail: | |
6221 | return NULL; | |
6222 | } | |
6223 | ||
6224 | ||
2f4c0a16 | 6225 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6226 | PyObject *resultobj; |
6227 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6228 | wxString *result; | |
6229 | PyObject * obj0 = 0 ; | |
6230 | char *kwnames[] = { | |
6231 | (char *) "self", NULL | |
6232 | }; | |
6233 | ||
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6237 | { |
6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6239 | { | |
6240 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6241 | result = (wxString *) &_result_ref; | |
6242 | } | |
6243 | ||
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
0f774bef RD |
6247 | { |
6248 | #if wxUSE_UNICODE | |
6249 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6250 | #else | |
6251 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6252 | #endif | |
6253 | } | |
d14a1e28 RD |
6254 | return resultobj; |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
2f4c0a16 | 6260 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6261 | PyObject *resultobj; |
6262 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6263 | wxString *result; | |
6264 | PyObject * obj0 = 0 ; | |
6265 | char *kwnames[] = { | |
6266 | (char *) "self", NULL | |
6267 | }; | |
6268 | ||
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6272 | { |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | { | |
6275 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6276 | result = (wxString *) &_result_ref; | |
6277 | } | |
6278 | ||
6279 | wxPyEndAllowThreads(__tstate); | |
6280 | if (PyErr_Occurred()) SWIG_fail; | |
6281 | } | |
0f774bef RD |
6282 | { |
6283 | #if wxUSE_UNICODE | |
6284 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6285 | #else | |
6286 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6287 | #endif | |
6288 | } | |
d14a1e28 RD |
6289 | return resultobj; |
6290 | fail: | |
6291 | return NULL; | |
6292 | } | |
6293 | ||
6294 | ||
2f4c0a16 | 6295 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6296 | PyObject *resultobj; |
6297 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6298 | wxDateTime result; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | char *kwnames[] = { | |
6301 | (char *) "self", NULL | |
6302 | }; | |
6303 | ||
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6307 | { |
6308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6309 | result = (arg1)->GetModificationTime(); | |
6310 | ||
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | { | |
6315 | wxDateTime * resultptr; | |
6316 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 6317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6318 | } |
6319 | return resultobj; | |
6320 | fail: | |
6321 | return NULL; | |
6322 | } | |
6323 | ||
6324 | ||
2f4c0a16 | 6325 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6326 | PyObject *obj; |
6327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6328 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6329 | Py_INCREF(obj); | |
6330 | return Py_BuildValue((char *)""); | |
6331 | } | |
2f4c0a16 | 6332 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6333 | PyObject *obj; |
6334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6335 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6336 | Py_INCREF(obj); | |
6337 | return Py_BuildValue((char *)""); | |
6338 | } | |
2f4c0a16 | 6339 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6340 | PyObject *resultobj; |
6341 | wxPyFileSystemHandler *result; | |
6342 | char *kwnames[] = { | |
6343 | NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6347 | { | |
6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6349 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6350 | ||
6351 | wxPyEndAllowThreads(__tstate); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
2f4c0a16 | 6354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6355 | return resultobj; |
6356 | fail: | |
6357 | return NULL; | |
6358 | } | |
6359 | ||
6360 | ||
2f4c0a16 | 6361 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6362 | PyObject *resultobj; |
6363 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6364 | PyObject *arg2 = (PyObject *) 0 ; | |
6365 | PyObject *arg3 = (PyObject *) 0 ; | |
6366 | PyObject * obj0 = 0 ; | |
6367 | PyObject * obj1 = 0 ; | |
6368 | PyObject * obj2 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6376 | arg2 = obj1; |
6377 | arg3 = obj2; | |
6378 | { | |
6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6380 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6381 | ||
6382 | wxPyEndAllowThreads(__tstate); | |
6383 | if (PyErr_Occurred()) SWIG_fail; | |
6384 | } | |
6385 | Py_INCREF(Py_None); resultobj = Py_None; | |
6386 | return resultobj; | |
6387 | fail: | |
6388 | return NULL; | |
6389 | } | |
6390 | ||
6391 | ||
2f4c0a16 | 6392 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6393 | PyObject *resultobj; |
6394 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6395 | wxString *arg2 = 0 ; | |
6396 | bool result; | |
423f194a | 6397 | bool temp2 = False ; |
d14a1e28 RD |
6398 | PyObject * obj0 = 0 ; |
6399 | PyObject * obj1 = 0 ; | |
6400 | char *kwnames[] = { | |
6401 | (char *) "self",(char *) "location", NULL | |
6402 | }; | |
6403 | ||
6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6407 | { |
6408 | arg2 = wxString_in_helper(obj1); | |
6409 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6410 | temp2 = True; |
d14a1e28 RD |
6411 | } |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
02a34c4c | 6419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6420 | { |
6421 | if (temp2) | |
6422 | delete arg2; | |
6423 | } | |
6424 | return resultobj; | |
6425 | fail: | |
6426 | { | |
6427 | if (temp2) | |
6428 | delete arg2; | |
6429 | } | |
6430 | return NULL; | |
6431 | } | |
6432 | ||
6433 | ||
2f4c0a16 | 6434 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6435 | PyObject *resultobj; |
6436 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6437 | wxFileSystem *arg2 = 0 ; | |
6438 | wxString *arg3 = 0 ; | |
6439 | wxFSFile *result; | |
423f194a | 6440 | bool temp3 = False ; |
d14a1e28 RD |
6441 | PyObject * obj0 = 0 ; |
6442 | PyObject * obj1 = 0 ; | |
6443 | PyObject * obj2 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6451 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6452 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6453 | SWIG_fail; | |
d14a1e28 | 6454 | if (arg2 == NULL) { |
2f4c0a16 RD |
6455 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6456 | SWIG_fail; | |
d14a1e28 RD |
6457 | } |
6458 | { | |
6459 | arg3 = wxString_in_helper(obj2); | |
6460 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6461 | temp3 = True; |
d14a1e28 RD |
6462 | } |
6463 | { | |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
6470 | { | |
6471 | resultobj = wxPyMake_wxObject(result); | |
6472 | } | |
6473 | { | |
6474 | if (temp3) | |
6475 | delete arg3; | |
6476 | } | |
6477 | return resultobj; | |
6478 | fail: | |
6479 | { | |
6480 | if (temp3) | |
6481 | delete arg3; | |
6482 | } | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
2f4c0a16 | 6487 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6488 | PyObject *resultobj; |
6489 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6490 | wxString *arg2 = 0 ; | |
6491 | int arg3 = (int) 0 ; | |
6492 | wxString result; | |
423f194a | 6493 | bool temp2 = False ; |
d14a1e28 RD |
6494 | PyObject * obj0 = 0 ; |
6495 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6496 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6497 | char *kwnames[] = { |
6498 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6499 | }; | |
6500 | ||
8edf1c75 | 6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6504 | { |
6505 | arg2 = wxString_in_helper(obj1); | |
6506 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6507 | temp2 = True; |
d14a1e28 | 6508 | } |
8edf1c75 | 6509 | if (obj2) { |
2f4c0a16 RD |
6510 | arg3 = (int) SWIG_AsInt(obj2); |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6512 | } |
d14a1e28 RD |
6513 | { |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | { | |
6521 | #if wxUSE_UNICODE | |
6522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6523 | #else | |
6524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6525 | #endif | |
6526 | } | |
6527 | { | |
6528 | if (temp2) | |
6529 | delete arg2; | |
6530 | } | |
6531 | return resultobj; | |
6532 | fail: | |
6533 | { | |
6534 | if (temp2) | |
6535 | delete arg2; | |
6536 | } | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
2f4c0a16 | 6541 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6542 | PyObject *resultobj; |
6543 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6544 | wxString result; | |
6545 | PyObject * obj0 = 0 ; | |
6546 | char *kwnames[] = { | |
6547 | (char *) "self", NULL | |
6548 | }; | |
6549 | ||
6550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6553 | { |
6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6555 | result = (arg1)->FindNext(); | |
6556 | ||
6557 | wxPyEndAllowThreads(__tstate); | |
6558 | if (PyErr_Occurred()) SWIG_fail; | |
6559 | } | |
6560 | { | |
6561 | #if wxUSE_UNICODE | |
6562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6563 | #else | |
6564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6565 | #endif | |
6566 | } | |
6567 | return resultobj; | |
6568 | fail: | |
6569 | return NULL; | |
6570 | } | |
6571 | ||
6572 | ||
2f4c0a16 | 6573 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6574 | PyObject *resultobj; |
6575 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6576 | wxString *arg2 = 0 ; | |
6577 | wxString result; | |
423f194a | 6578 | bool temp2 = False ; |
d14a1e28 RD |
6579 | PyObject * obj0 = 0 ; |
6580 | PyObject * obj1 = 0 ; | |
6581 | char *kwnames[] = { | |
6582 | (char *) "self",(char *) "location", NULL | |
6583 | }; | |
6584 | ||
6585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6588 | { |
6589 | arg2 = wxString_in_helper(obj1); | |
6590 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6591 | temp2 = True; |
d14a1e28 RD |
6592 | } |
6593 | { | |
6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6595 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6596 | ||
6597 | wxPyEndAllowThreads(__tstate); | |
6598 | if (PyErr_Occurred()) SWIG_fail; | |
6599 | } | |
6600 | { | |
6601 | #if wxUSE_UNICODE | |
6602 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6603 | #else | |
6604 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6605 | #endif | |
6606 | } | |
6607 | { | |
6608 | if (temp2) | |
6609 | delete arg2; | |
6610 | } | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | { | |
6614 | if (temp2) | |
6615 | delete arg2; | |
6616 | } | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
2f4c0a16 | 6621 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6622 | PyObject *resultobj; |
6623 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6624 | wxString *arg2 = 0 ; | |
6625 | wxString result; | |
423f194a | 6626 | bool temp2 = False ; |
d14a1e28 RD |
6627 | PyObject * obj0 = 0 ; |
6628 | PyObject * obj1 = 0 ; | |
6629 | char *kwnames[] = { | |
6630 | (char *) "self",(char *) "location", NULL | |
6631 | }; | |
6632 | ||
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6636 | { |
6637 | arg2 = wxString_in_helper(obj1); | |
6638 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6639 | temp2 = True; |
d14a1e28 RD |
6640 | } |
6641 | { | |
6642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6643 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6644 | ||
6645 | wxPyEndAllowThreads(__tstate); | |
6646 | if (PyErr_Occurred()) SWIG_fail; | |
6647 | } | |
6648 | { | |
6649 | #if wxUSE_UNICODE | |
6650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6651 | #else | |
6652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6653 | #endif | |
6654 | } | |
6655 | { | |
6656 | if (temp2) | |
6657 | delete arg2; | |
6658 | } | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | { | |
6662 | if (temp2) | |
6663 | delete arg2; | |
6664 | } | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
2f4c0a16 | 6669 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6670 | PyObject *resultobj; |
6671 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6672 | wxString *arg2 = 0 ; | |
6673 | wxString result; | |
423f194a | 6674 | bool temp2 = False ; |
d14a1e28 RD |
6675 | PyObject * obj0 = 0 ; |
6676 | PyObject * obj1 = 0 ; | |
6677 | char *kwnames[] = { | |
6678 | (char *) "self",(char *) "location", NULL | |
6679 | }; | |
6680 | ||
6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6684 | { |
6685 | arg2 = wxString_in_helper(obj1); | |
6686 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6687 | temp2 = True; |
d14a1e28 RD |
6688 | } |
6689 | { | |
6690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6691 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6692 | ||
6693 | wxPyEndAllowThreads(__tstate); | |
6694 | if (PyErr_Occurred()) SWIG_fail; | |
6695 | } | |
6696 | { | |
6697 | #if wxUSE_UNICODE | |
6698 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6699 | #else | |
6700 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6701 | #endif | |
6702 | } | |
6703 | { | |
6704 | if (temp2) | |
6705 | delete arg2; | |
6706 | } | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | { | |
6710 | if (temp2) | |
6711 | delete arg2; | |
6712 | } | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
2f4c0a16 | 6717 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6718 | PyObject *resultobj; |
6719 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6720 | wxString *arg2 = 0 ; | |
6721 | wxString result; | |
423f194a | 6722 | bool temp2 = False ; |
d14a1e28 RD |
6723 | PyObject * obj0 = 0 ; |
6724 | PyObject * obj1 = 0 ; | |
6725 | char *kwnames[] = { | |
6726 | (char *) "self",(char *) "location", NULL | |
6727 | }; | |
6728 | ||
6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6732 | { |
6733 | arg2 = wxString_in_helper(obj1); | |
6734 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6735 | temp2 = True; |
d14a1e28 RD |
6736 | } |
6737 | { | |
6738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6739 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6740 | ||
6741 | wxPyEndAllowThreads(__tstate); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
6744 | { | |
6745 | #if wxUSE_UNICODE | |
6746 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6747 | #else | |
6748 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6749 | #endif | |
6750 | } | |
6751 | { | |
6752 | if (temp2) | |
6753 | delete arg2; | |
6754 | } | |
6755 | return resultobj; | |
6756 | fail: | |
6757 | { | |
6758 | if (temp2) | |
6759 | delete arg2; | |
6760 | } | |
6761 | return NULL; | |
6762 | } | |
6763 | ||
6764 | ||
2f4c0a16 | 6765 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6766 | PyObject *resultobj; |
6767 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6768 | wxString *arg2 = 0 ; | |
6769 | wxString result; | |
423f194a | 6770 | bool temp2 = False ; |
d14a1e28 RD |
6771 | PyObject * obj0 = 0 ; |
6772 | PyObject * obj1 = 0 ; | |
6773 | char *kwnames[] = { | |
6774 | (char *) "self",(char *) "location", NULL | |
6775 | }; | |
6776 | ||
6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6780 | { |
6781 | arg2 = wxString_in_helper(obj1); | |
6782 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6783 | temp2 = True; |
d14a1e28 RD |
6784 | } |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | { | |
6793 | #if wxUSE_UNICODE | |
6794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6795 | #else | |
6796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6797 | #endif | |
6798 | } | |
6799 | { | |
6800 | if (temp2) | |
6801 | delete arg2; | |
6802 | } | |
6803 | return resultobj; | |
6804 | fail: | |
6805 | { | |
6806 | if (temp2) | |
6807 | delete arg2; | |
6808 | } | |
6809 | return NULL; | |
6810 | } | |
6811 | ||
6812 | ||
2f4c0a16 | 6813 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6814 | PyObject *obj; |
6815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6816 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6817 | Py_INCREF(obj); | |
6818 | return Py_BuildValue((char *)""); | |
6819 | } | |
2f4c0a16 | 6820 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6821 | PyObject *resultobj; |
6822 | wxFileSystem *result; | |
6823 | char *kwnames[] = { | |
6824 | NULL | |
6825 | }; | |
6826 | ||
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6828 | { | |
6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6830 | result = (wxFileSystem *)new wxFileSystem(); | |
6831 | ||
6832 | wxPyEndAllowThreads(__tstate); | |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
6834 | } | |
6835 | { | |
6836 | resultobj = wxPyMake_wxObject(result); | |
6837 | } | |
6838 | return resultobj; | |
6839 | fail: | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
2f4c0a16 | 6844 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6845 | PyObject *resultobj; |
6846 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6847 | PyObject * obj0 = 0 ; | |
6848 | char *kwnames[] = { | |
6849 | (char *) "self", NULL | |
6850 | }; | |
6851 | ||
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6855 | { |
6856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6857 | delete arg1; | |
6858 | ||
6859 | wxPyEndAllowThreads(__tstate); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
6861 | } | |
6862 | Py_INCREF(Py_None); resultobj = Py_None; | |
6863 | return resultobj; | |
6864 | fail: | |
6865 | return NULL; | |
6866 | } | |
6867 | ||
6868 | ||
2f4c0a16 | 6869 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6870 | PyObject *resultobj; |
6871 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6872 | wxString *arg2 = 0 ; | |
423f194a RD |
6873 | bool arg3 = (bool) False ; |
6874 | bool temp2 = False ; | |
d14a1e28 RD |
6875 | PyObject * obj0 = 0 ; |
6876 | PyObject * obj1 = 0 ; | |
6877 | PyObject * obj2 = 0 ; | |
6878 | char *kwnames[] = { | |
6879 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6880 | }; | |
6881 | ||
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6885 | { |
6886 | arg2 = wxString_in_helper(obj1); | |
6887 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6888 | temp2 = True; |
d14a1e28 RD |
6889 | } |
6890 | if (obj2) { | |
2f4c0a16 RD |
6891 | arg3 = (bool) SWIG_AsBool(obj2); |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6893 | } |
6894 | { | |
6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6896 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6897 | ||
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | Py_INCREF(Py_None); resultobj = Py_None; | |
6902 | { | |
6903 | if (temp2) | |
6904 | delete arg2; | |
6905 | } | |
6906 | return resultobj; | |
6907 | fail: | |
6908 | { | |
6909 | if (temp2) | |
6910 | delete arg2; | |
6911 | } | |
6912 | return NULL; | |
6913 | } | |
6914 | ||
6915 | ||
2f4c0a16 | 6916 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6917 | PyObject *resultobj; |
6918 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6919 | wxString result; | |
6920 | PyObject * obj0 = 0 ; | |
6921 | char *kwnames[] = { | |
6922 | (char *) "self", NULL | |
6923 | }; | |
6924 | ||
6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6928 | { |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6930 | result = (arg1)->GetPath(); | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | { | |
6936 | #if wxUSE_UNICODE | |
6937 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6938 | #else | |
6939 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6940 | #endif | |
6941 | } | |
6942 | return resultobj; | |
6943 | fail: | |
6944 | return NULL; | |
6945 | } | |
6946 | ||
6947 | ||
2f4c0a16 | 6948 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6949 | PyObject *resultobj; |
6950 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6951 | wxString *arg2 = 0 ; | |
6952 | wxFSFile *result; | |
423f194a | 6953 | bool temp2 = False ; |
d14a1e28 RD |
6954 | PyObject * obj0 = 0 ; |
6955 | PyObject * obj1 = 0 ; | |
6956 | char *kwnames[] = { | |
6957 | (char *) "self",(char *) "location", NULL | |
6958 | }; | |
6959 | ||
6960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6963 | { |
6964 | arg2 = wxString_in_helper(obj1); | |
6965 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6966 | temp2 = True; |
d14a1e28 RD |
6967 | } |
6968 | { | |
6969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6970 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6971 | ||
6972 | wxPyEndAllowThreads(__tstate); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
6974 | } | |
6975 | { | |
6976 | resultobj = wxPyMake_wxObject(result); | |
6977 | } | |
6978 | { | |
6979 | if (temp2) | |
6980 | delete arg2; | |
6981 | } | |
6982 | return resultobj; | |
6983 | fail: | |
6984 | { | |
6985 | if (temp2) | |
6986 | delete arg2; | |
6987 | } | |
6988 | return NULL; | |
6989 | } | |
6990 | ||
6991 | ||
2f4c0a16 | 6992 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6993 | PyObject *resultobj; |
6994 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6995 | wxString *arg2 = 0 ; | |
6996 | int arg3 = (int) 0 ; | |
6997 | wxString result; | |
423f194a | 6998 | bool temp2 = False ; |
d14a1e28 RD |
6999 | PyObject * obj0 = 0 ; |
7000 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7001 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7002 | char *kwnames[] = { |
7003 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7004 | }; | |
7005 | ||
8edf1c75 | 7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7009 | { |
7010 | arg2 = wxString_in_helper(obj1); | |
7011 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7012 | temp2 = True; |
d14a1e28 | 7013 | } |
8edf1c75 | 7014 | if (obj2) { |
2f4c0a16 RD |
7015 | arg3 = (int) SWIG_AsInt(obj2); |
7016 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7017 | } |
d14a1e28 RD |
7018 | { |
7019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7020 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7021 | ||
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | { | |
7026 | #if wxUSE_UNICODE | |
7027 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7028 | #else | |
7029 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7030 | #endif | |
7031 | } | |
7032 | { | |
7033 | if (temp2) | |
7034 | delete arg2; | |
7035 | } | |
7036 | return resultobj; | |
7037 | fail: | |
7038 | { | |
7039 | if (temp2) | |
7040 | delete arg2; | |
7041 | } | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
2f4c0a16 | 7046 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7047 | PyObject *resultobj; |
7048 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7049 | wxString result; | |
7050 | PyObject * obj0 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "self", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7058 | { |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7060 | result = (arg1)->FindNext(); | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
7065 | { | |
7066 | #if wxUSE_UNICODE | |
7067 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7068 | #else | |
7069 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7070 | #endif | |
7071 | } | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
2f4c0a16 | 7078 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7079 | PyObject *resultobj; |
7080 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7081 | PyObject * obj0 = 0 ; | |
7082 | char *kwnames[] = { | |
7083 | (char *) "handler", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7089 | { |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | wxFileSystem::AddHandler(arg1); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | Py_INCREF(Py_None); resultobj = Py_None; | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
2f4c0a16 | 7103 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7104 | PyObject *resultobj; |
7105 | char *kwnames[] = { | |
7106 | NULL | |
7107 | }; | |
7108 | ||
7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | wxFileSystem::CleanUpHandlers(); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
7117 | Py_INCREF(Py_None); resultobj = Py_None; | |
7118 | return resultobj; | |
7119 | fail: | |
7120 | return NULL; | |
7121 | } | |
7122 | ||
7123 | ||
2f4c0a16 | 7124 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7125 | PyObject *resultobj; |
7126 | wxString *arg1 = 0 ; | |
7127 | wxString result; | |
423f194a | 7128 | bool temp1 = False ; |
d14a1e28 RD |
7129 | PyObject * obj0 = 0 ; |
7130 | char *kwnames[] = { | |
7131 | (char *) "filename", NULL | |
7132 | }; | |
7133 | ||
7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7135 | { | |
7136 | arg1 = wxString_in_helper(obj0); | |
7137 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7138 | temp1 = True; |
d14a1e28 RD |
7139 | } |
7140 | { | |
7141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7142 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7143 | ||
7144 | wxPyEndAllowThreads(__tstate); | |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
7146 | } | |
7147 | { | |
7148 | #if wxUSE_UNICODE | |
7149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7150 | #else | |
7151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7152 | #endif | |
7153 | } | |
7154 | { | |
7155 | if (temp1) | |
7156 | delete arg1; | |
7157 | } | |
7158 | return resultobj; | |
7159 | fail: | |
7160 | { | |
7161 | if (temp1) | |
7162 | delete arg1; | |
7163 | } | |
7164 | return NULL; | |
7165 | } | |
7166 | ||
7167 | ||
2f4c0a16 | 7168 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7169 | PyObject *obj; |
7170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7171 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7172 | Py_INCREF(obj); | |
7173 | return Py_BuildValue((char *)""); | |
7174 | } | |
2f4c0a16 | 7175 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7176 | PyObject *resultobj; |
7177 | wxString *arg1 = 0 ; | |
7178 | wxString result; | |
423f194a | 7179 | bool temp1 = False ; |
d14a1e28 RD |
7180 | PyObject * obj0 = 0 ; |
7181 | char *kwnames[] = { | |
7182 | (char *) "url", NULL | |
7183 | }; | |
7184 | ||
7185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7186 | { | |
7187 | arg1 = wxString_in_helper(obj0); | |
7188 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7189 | temp1 = True; |
d14a1e28 RD |
7190 | } |
7191 | { | |
7192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7193 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7194 | ||
7195 | wxPyEndAllowThreads(__tstate); | |
7196 | if (PyErr_Occurred()) SWIG_fail; | |
7197 | } | |
7198 | { | |
7199 | #if wxUSE_UNICODE | |
7200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7201 | #else | |
7202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7203 | #endif | |
7204 | } | |
7205 | { | |
7206 | if (temp1) | |
7207 | delete arg1; | |
7208 | } | |
7209 | return resultobj; | |
7210 | fail: | |
7211 | { | |
7212 | if (temp1) | |
7213 | delete arg1; | |
7214 | } | |
7215 | return NULL; | |
7216 | } | |
7217 | ||
7218 | ||
2f4c0a16 | 7219 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7220 | PyObject *resultobj; |
7221 | wxInternetFSHandler *result; | |
7222 | char *kwnames[] = { | |
7223 | NULL | |
7224 | }; | |
7225 | ||
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
2f4c0a16 | 7234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7235 | return resultobj; |
7236 | fail: | |
7237 | return NULL; | |
7238 | } | |
7239 | ||
7240 | ||
2f4c0a16 | 7241 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7242 | PyObject *resultobj; |
7243 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7244 | wxString *arg2 = 0 ; | |
7245 | bool result; | |
423f194a | 7246 | bool temp2 = False ; |
d14a1e28 RD |
7247 | PyObject * obj0 = 0 ; |
7248 | PyObject * obj1 = 0 ; | |
7249 | char *kwnames[] = { | |
7250 | (char *) "self",(char *) "location", NULL | |
7251 | }; | |
7252 | ||
7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7256 | { |
7257 | arg2 = wxString_in_helper(obj1); | |
7258 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7259 | temp2 = True; |
d14a1e28 RD |
7260 | } |
7261 | { | |
7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7263 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7264 | ||
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
02a34c4c | 7268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7269 | { |
7270 | if (temp2) | |
7271 | delete arg2; | |
7272 | } | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | { | |
7276 | if (temp2) | |
7277 | delete arg2; | |
7278 | } | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
2f4c0a16 | 7283 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7284 | PyObject *resultobj; |
7285 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7286 | wxFileSystem *arg2 = 0 ; | |
7287 | wxString *arg3 = 0 ; | |
7288 | wxFSFile *result; | |
423f194a | 7289 | bool temp3 = False ; |
d14a1e28 RD |
7290 | PyObject * obj0 = 0 ; |
7291 | PyObject * obj1 = 0 ; | |
7292 | PyObject * obj2 = 0 ; | |
7293 | char *kwnames[] = { | |
7294 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7295 | }; | |
7296 | ||
7297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7302 | SWIG_fail; | |
d14a1e28 | 7303 | if (arg2 == NULL) { |
2f4c0a16 RD |
7304 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7305 | SWIG_fail; | |
d14a1e28 RD |
7306 | } |
7307 | { | |
7308 | arg3 = wxString_in_helper(obj2); | |
7309 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7310 | temp3 = True; |
d14a1e28 RD |
7311 | } |
7312 | { | |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7315 | ||
7316 | wxPyEndAllowThreads(__tstate); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | { | |
7320 | resultobj = wxPyMake_wxObject(result); | |
7321 | } | |
7322 | { | |
7323 | if (temp3) | |
7324 | delete arg3; | |
7325 | } | |
7326 | return resultobj; | |
7327 | fail: | |
7328 | { | |
7329 | if (temp3) | |
7330 | delete arg3; | |
7331 | } | |
7332 | return NULL; | |
7333 | } | |
7334 | ||
7335 | ||
2f4c0a16 | 7336 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7337 | PyObject *obj; |
7338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7339 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7340 | Py_INCREF(obj); | |
7341 | return Py_BuildValue((char *)""); | |
7342 | } | |
2f4c0a16 | 7343 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7344 | PyObject *resultobj; |
7345 | wxZipFSHandler *result; | |
7346 | char *kwnames[] = { | |
7347 | NULL | |
7348 | }; | |
7349 | ||
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7351 | { | |
7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7353 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7354 | ||
7355 | wxPyEndAllowThreads(__tstate); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | } | |
2f4c0a16 | 7358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7359 | return resultobj; |
7360 | fail: | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
2f4c0a16 | 7365 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7366 | PyObject *resultobj; |
7367 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7368 | wxString *arg2 = 0 ; | |
7369 | bool result; | |
423f194a | 7370 | bool temp2 = False ; |
d14a1e28 RD |
7371 | PyObject * obj0 = 0 ; |
7372 | PyObject * obj1 = 0 ; | |
7373 | char *kwnames[] = { | |
7374 | (char *) "self",(char *) "location", NULL | |
7375 | }; | |
7376 | ||
7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7380 | { |
7381 | arg2 = wxString_in_helper(obj1); | |
7382 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7383 | temp2 = True; |
d14a1e28 RD |
7384 | } |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
02a34c4c | 7392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7393 | { |
7394 | if (temp2) | |
7395 | delete arg2; | |
7396 | } | |
7397 | return resultobj; | |
7398 | fail: | |
7399 | { | |
7400 | if (temp2) | |
7401 | delete arg2; | |
7402 | } | |
7403 | return NULL; | |
7404 | } | |
7405 | ||
7406 | ||
2f4c0a16 | 7407 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7408 | PyObject *resultobj; |
7409 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7410 | wxFileSystem *arg2 = 0 ; | |
7411 | wxString *arg3 = 0 ; | |
7412 | wxFSFile *result; | |
423f194a | 7413 | bool temp3 = False ; |
d14a1e28 RD |
7414 | PyObject * obj0 = 0 ; |
7415 | PyObject * obj1 = 0 ; | |
7416 | PyObject * obj2 = 0 ; | |
7417 | char *kwnames[] = { | |
7418 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7419 | }; | |
7420 | ||
7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7426 | SWIG_fail; | |
d14a1e28 | 7427 | if (arg2 == NULL) { |
2f4c0a16 RD |
7428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7429 | SWIG_fail; | |
d14a1e28 RD |
7430 | } |
7431 | { | |
7432 | arg3 = wxString_in_helper(obj2); | |
7433 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7434 | temp3 = True; |
d14a1e28 RD |
7435 | } |
7436 | { | |
7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7438 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7439 | ||
7440 | wxPyEndAllowThreads(__tstate); | |
7441 | if (PyErr_Occurred()) SWIG_fail; | |
7442 | } | |
7443 | { | |
7444 | resultobj = wxPyMake_wxObject(result); | |
7445 | } | |
7446 | { | |
7447 | if (temp3) | |
7448 | delete arg3; | |
7449 | } | |
7450 | return resultobj; | |
7451 | fail: | |
7452 | { | |
7453 | if (temp3) | |
7454 | delete arg3; | |
7455 | } | |
7456 | return NULL; | |
7457 | } | |
7458 | ||
7459 | ||
2f4c0a16 | 7460 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7461 | PyObject *resultobj; |
7462 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7463 | wxString *arg2 = 0 ; | |
7464 | int arg3 = (int) 0 ; | |
7465 | wxString result; | |
423f194a | 7466 | bool temp2 = False ; |
d14a1e28 RD |
7467 | PyObject * obj0 = 0 ; |
7468 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7469 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7470 | char *kwnames[] = { |
7471 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7472 | }; | |
7473 | ||
8edf1c75 | 7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7477 | { |
7478 | arg2 = wxString_in_helper(obj1); | |
7479 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7480 | temp2 = True; |
d14a1e28 | 7481 | } |
8edf1c75 | 7482 | if (obj2) { |
2f4c0a16 RD |
7483 | arg3 = (int) SWIG_AsInt(obj2); |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7485 | } |
d14a1e28 RD |
7486 | { |
7487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7488 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7489 | ||
7490 | wxPyEndAllowThreads(__tstate); | |
7491 | if (PyErr_Occurred()) SWIG_fail; | |
7492 | } | |
7493 | { | |
7494 | #if wxUSE_UNICODE | |
7495 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7496 | #else | |
7497 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7498 | #endif | |
7499 | } | |
7500 | { | |
7501 | if (temp2) | |
7502 | delete arg2; | |
7503 | } | |
7504 | return resultobj; | |
7505 | fail: | |
7506 | { | |
7507 | if (temp2) | |
7508 | delete arg2; | |
7509 | } | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
2f4c0a16 | 7514 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7515 | PyObject *resultobj; |
7516 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7517 | wxString result; | |
7518 | PyObject * obj0 = 0 ; | |
7519 | char *kwnames[] = { | |
7520 | (char *) "self", NULL | |
7521 | }; | |
7522 | ||
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7526 | { |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7528 | result = (arg1)->FindNext(); | |
7529 | ||
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | { | |
7534 | #if wxUSE_UNICODE | |
7535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7536 | #else | |
7537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7538 | #endif | |
7539 | } | |
7540 | return resultobj; | |
7541 | fail: | |
7542 | return NULL; | |
7543 | } | |
7544 | ||
7545 | ||
2f4c0a16 | 7546 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7547 | PyObject *obj; |
7548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7549 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7550 | Py_INCREF(obj); | |
7551 | return Py_BuildValue((char *)""); | |
7552 | } | |
2f4c0a16 | 7553 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7554 | PyObject *resultobj; |
7555 | wxString *arg1 = 0 ; | |
7556 | wxImage *arg2 = 0 ; | |
7557 | long arg3 ; | |
423f194a | 7558 | bool temp1 = False ; |
d14a1e28 RD |
7559 | PyObject * obj0 = 0 ; |
7560 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7561 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7562 | char *kwnames[] = { |
7563 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7564 | }; | |
7565 | ||
8edf1c75 | 7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7567 | { |
7568 | arg1 = wxString_in_helper(obj0); | |
7569 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7570 | temp1 = True; |
d14a1e28 | 7571 | } |
2f4c0a16 RD |
7572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7574 | SWIG_fail; | |
d14a1e28 | 7575 | if (arg2 == NULL) { |
2f4c0a16 RD |
7576 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7577 | SWIG_fail; | |
8edf1c75 | 7578 | } |
2f4c0a16 RD |
7579 | arg3 = (long) SWIG_AsLong(obj2); |
7580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7581 | { |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | Py_INCREF(Py_None); resultobj = Py_None; | |
7589 | { | |
7590 | if (temp1) | |
7591 | delete arg1; | |
7592 | } | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | { | |
7596 | if (temp1) | |
7597 | delete arg1; | |
7598 | } | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
2f4c0a16 | 7603 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7604 | PyObject *resultobj; |
7605 | wxString *arg1 = 0 ; | |
7606 | wxBitmap *arg2 = 0 ; | |
7607 | long arg3 ; | |
423f194a | 7608 | bool temp1 = False ; |
d14a1e28 RD |
7609 | PyObject * obj0 = 0 ; |
7610 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7611 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7612 | char *kwnames[] = { |
7613 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7614 | }; | |
7615 | ||
8edf1c75 | 7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7617 | { |
7618 | arg1 = wxString_in_helper(obj0); | |
7619 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7620 | temp1 = True; |
d14a1e28 | 7621 | } |
2f4c0a16 RD |
7622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7624 | SWIG_fail; | |
d14a1e28 | 7625 | if (arg2 == NULL) { |
2f4c0a16 RD |
7626 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7627 | SWIG_fail; | |
8edf1c75 | 7628 | } |
2f4c0a16 RD |
7629 | arg3 = (long) SWIG_AsLong(obj2); |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7631 | { |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | Py_INCREF(Py_None); resultobj = Py_None; | |
7639 | { | |
7640 | if (temp1) | |
7641 | delete arg1; | |
7642 | } | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | { | |
7646 | if (temp1) | |
7647 | delete arg1; | |
7648 | } | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
2f4c0a16 | 7653 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7654 | PyObject *resultobj; |
7655 | wxString *arg1 = 0 ; | |
7656 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7657 | bool temp1 = False ; |
d14a1e28 RD |
7658 | PyObject * obj0 = 0 ; |
7659 | PyObject * obj1 = 0 ; | |
7660 | char *kwnames[] = { | |
7661 | (char *) "filename",(char *) "data", NULL | |
7662 | }; | |
7663 | ||
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7665 | { | |
7666 | arg1 = wxString_in_helper(obj0); | |
7667 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7668 | temp1 = True; |
d14a1e28 RD |
7669 | } |
7670 | arg2 = obj1; | |
7671 | { | |
7672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7673 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7674 | ||
7675 | wxPyEndAllowThreads(__tstate); | |
7676 | if (PyErr_Occurred()) SWIG_fail; | |
7677 | } | |
7678 | Py_INCREF(Py_None); resultobj = Py_None; | |
7679 | { | |
7680 | if (temp1) | |
7681 | delete arg1; | |
7682 | } | |
7683 | return resultobj; | |
7684 | fail: | |
7685 | { | |
7686 | if (temp1) | |
7687 | delete arg1; | |
7688 | } | |
7689 | return NULL; | |
7690 | } | |
7691 | ||
7692 | ||
2f4c0a16 | 7693 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7694 | PyObject *resultobj; |
7695 | wxMemoryFSHandler *result; | |
7696 | char *kwnames[] = { | |
7697 | NULL | |
7698 | }; | |
7699 | ||
7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7701 | { | |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7703 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7704 | ||
7705 | wxPyEndAllowThreads(__tstate); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
2f4c0a16 | 7708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7709 | return resultobj; |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
2f4c0a16 | 7715 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7716 | PyObject *resultobj; |
7717 | wxString *arg1 = 0 ; | |
423f194a | 7718 | bool temp1 = False ; |
d14a1e28 RD |
7719 | PyObject * obj0 = 0 ; |
7720 | char *kwnames[] = { | |
7721 | (char *) "filename", NULL | |
7722 | }; | |
7723 | ||
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7725 | { | |
7726 | arg1 = wxString_in_helper(obj0); | |
7727 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7728 | temp1 = True; |
d14a1e28 RD |
7729 | } |
7730 | { | |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | { | |
7739 | if (temp1) | |
7740 | delete arg1; | |
7741 | } | |
7742 | return resultobj; | |
7743 | fail: | |
7744 | { | |
7745 | if (temp1) | |
7746 | delete arg1; | |
7747 | } | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
2f4c0a16 | 7752 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7753 | PyObject *resultobj; |
7754 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7755 | wxString *arg2 = 0 ; | |
7756 | bool result; | |
423f194a | 7757 | bool temp2 = False ; |
d14a1e28 RD |
7758 | PyObject * obj0 = 0 ; |
7759 | PyObject * obj1 = 0 ; | |
7760 | char *kwnames[] = { | |
7761 | (char *) "self",(char *) "location", NULL | |
7762 | }; | |
7763 | ||
7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7767 | { |
7768 | arg2 = wxString_in_helper(obj1); | |
7769 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7770 | temp2 = True; |
d14a1e28 RD |
7771 | } |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
02a34c4c | 7779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7780 | { |
7781 | if (temp2) | |
7782 | delete arg2; | |
7783 | } | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | { | |
7787 | if (temp2) | |
7788 | delete arg2; | |
7789 | } | |
7790 | return NULL; | |
7791 | } | |
7792 | ||
7793 | ||
2f4c0a16 | 7794 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7795 | PyObject *resultobj; |
7796 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7797 | wxFileSystem *arg2 = 0 ; | |
7798 | wxString *arg3 = 0 ; | |
7799 | wxFSFile *result; | |
423f194a | 7800 | bool temp3 = False ; |
d14a1e28 RD |
7801 | PyObject * obj0 = 0 ; |
7802 | PyObject * obj1 = 0 ; | |
7803 | PyObject * obj2 = 0 ; | |
7804 | char *kwnames[] = { | |
7805 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7806 | }; | |
7807 | ||
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7811 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7812 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7813 | SWIG_fail; | |
d14a1e28 | 7814 | if (arg2 == NULL) { |
2f4c0a16 RD |
7815 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7816 | SWIG_fail; | |
d14a1e28 RD |
7817 | } |
7818 | { | |
7819 | arg3 = wxString_in_helper(obj2); | |
7820 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7821 | temp3 = True; |
d14a1e28 RD |
7822 | } |
7823 | { | |
7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7825 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7826 | ||
7827 | wxPyEndAllowThreads(__tstate); | |
7828 | if (PyErr_Occurred()) SWIG_fail; | |
7829 | } | |
7830 | { | |
7831 | resultobj = wxPyMake_wxObject(result); | |
7832 | } | |
7833 | { | |
7834 | if (temp3) | |
7835 | delete arg3; | |
7836 | } | |
7837 | return resultobj; | |
7838 | fail: | |
7839 | { | |
7840 | if (temp3) | |
7841 | delete arg3; | |
7842 | } | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
2f4c0a16 | 7847 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7848 | PyObject *resultobj; |
7849 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7850 | wxString *arg2 = 0 ; | |
7851 | int arg3 = (int) 0 ; | |
7852 | wxString result; | |
423f194a | 7853 | bool temp2 = False ; |
d14a1e28 RD |
7854 | PyObject * obj0 = 0 ; |
7855 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7856 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7857 | char *kwnames[] = { |
7858 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7859 | }; | |
7860 | ||
8edf1c75 | 7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7864 | { |
7865 | arg2 = wxString_in_helper(obj1); | |
7866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7867 | temp2 = True; |
d14a1e28 | 7868 | } |
8edf1c75 | 7869 | if (obj2) { |
2f4c0a16 RD |
7870 | arg3 = (int) SWIG_AsInt(obj2); |
7871 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7872 | } |
d14a1e28 RD |
7873 | { |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | { | |
7881 | #if wxUSE_UNICODE | |
7882 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7883 | #else | |
7884 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7885 | #endif | |
7886 | } | |
7887 | { | |
7888 | if (temp2) | |
7889 | delete arg2; | |
7890 | } | |
7891 | return resultobj; | |
7892 | fail: | |
7893 | { | |
7894 | if (temp2) | |
7895 | delete arg2; | |
7896 | } | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
2f4c0a16 | 7901 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7902 | PyObject *resultobj; |
7903 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7904 | wxString result; | |
7905 | PyObject * obj0 = 0 ; | |
7906 | char *kwnames[] = { | |
7907 | (char *) "self", NULL | |
7908 | }; | |
7909 | ||
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7913 | { |
7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7915 | result = (arg1)->FindNext(); | |
7916 | ||
7917 | wxPyEndAllowThreads(__tstate); | |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
7919 | } | |
7920 | { | |
7921 | #if wxUSE_UNICODE | |
7922 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7923 | #else | |
7924 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7925 | #endif | |
7926 | } | |
7927 | return resultobj; | |
7928 | fail: | |
7929 | return NULL; | |
7930 | } | |
7931 | ||
7932 | ||
2f4c0a16 | 7933 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7934 | PyObject *obj; |
7935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7936 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7937 | Py_INCREF(obj); | |
7938 | return Py_BuildValue((char *)""); | |
7939 | } | |
2f4c0a16 | 7940 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7941 | PyObject *resultobj; |
7942 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7943 | wxString result; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | char *kwnames[] = { | |
7946 | (char *) "self", NULL | |
7947 | }; | |
7948 | ||
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
7951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7952 | { |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | result = (arg1)->GetName(); | |
7955 | ||
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | { | |
7960 | #if wxUSE_UNICODE | |
7961 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7962 | #else | |
7963 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7964 | #endif | |
7965 | } | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | return NULL; | |
7969 | } | |
7970 | ||
7971 | ||
2f4c0a16 | 7972 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7973 | PyObject *resultobj; |
7974 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7975 | wxString result; | |
7976 | PyObject * obj0 = 0 ; | |
7977 | char *kwnames[] = { | |
7978 | (char *) "self", NULL | |
7979 | }; | |
7980 | ||
7981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
7983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7984 | { |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | result = (arg1)->GetExtension(); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | { | |
7992 | #if wxUSE_UNICODE | |
7993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7994 | #else | |
7995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7996 | #endif | |
7997 | } | |
7998 | return resultobj; | |
7999 | fail: | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
2f4c0a16 | 8004 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8005 | PyObject *resultobj; |
8006 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8007 | long result; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | char *kwnames[] = { | |
8010 | (char *) "self", NULL | |
8011 | }; | |
8012 | ||
8013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8016 | { |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | result = (long)(arg1)->GetType(); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
2f4c0a16 | 8023 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8024 | return resultobj; |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
2f4c0a16 | 8030 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8031 | PyObject *resultobj; |
8032 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8033 | wxString result; | |
8034 | PyObject * obj0 = 0 ; | |
8035 | char *kwnames[] = { | |
8036 | (char *) "self", NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8042 | { |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | result = (arg1)->GetMimeType(); | |
8045 | ||
8046 | wxPyEndAllowThreads(__tstate); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
8049 | { | |
8050 | #if wxUSE_UNICODE | |
8051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8052 | #else | |
8053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8054 | #endif | |
8055 | } | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
8059 | } | |
8060 | ||
8061 | ||
2f4c0a16 | 8062 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8063 | PyObject *resultobj; |
8064 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8065 | wxString *arg2 = 0 ; | |
8066 | bool result; | |
423f194a | 8067 | bool temp2 = False ; |
d14a1e28 RD |
8068 | PyObject * obj0 = 0 ; |
8069 | PyObject * obj1 = 0 ; | |
8070 | char *kwnames[] = { | |
8071 | (char *) "self",(char *) "name", NULL | |
8072 | }; | |
8073 | ||
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8077 | { |
8078 | arg2 = wxString_in_helper(obj1); | |
8079 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8080 | temp2 = True; |
d14a1e28 RD |
8081 | } |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8085 | ||
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
02a34c4c | 8089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8090 | { |
8091 | if (temp2) | |
8092 | delete arg2; | |
8093 | } | |
8094 | return resultobj; | |
8095 | fail: | |
8096 | { | |
8097 | if (temp2) | |
8098 | delete arg2; | |
8099 | } | |
8100 | return NULL; | |
8101 | } | |
8102 | ||
8103 | ||
2f4c0a16 | 8104 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8105 | PyObject *resultobj; |
8106 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8107 | wxString *arg2 = 0 ; | |
423f194a | 8108 | bool temp2 = False ; |
d14a1e28 RD |
8109 | PyObject * obj0 = 0 ; |
8110 | PyObject * obj1 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self",(char *) "name", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8118 | { |
8119 | arg2 = wxString_in_helper(obj1); | |
8120 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8121 | temp2 = True; |
d14a1e28 RD |
8122 | } |
8123 | { | |
8124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8125 | (arg1)->SetName((wxString const &)*arg2); | |
8126 | ||
8127 | wxPyEndAllowThreads(__tstate); | |
8128 | if (PyErr_Occurred()) SWIG_fail; | |
8129 | } | |
8130 | Py_INCREF(Py_None); resultobj = Py_None; | |
8131 | { | |
8132 | if (temp2) | |
8133 | delete arg2; | |
8134 | } | |
8135 | return resultobj; | |
8136 | fail: | |
8137 | { | |
8138 | if (temp2) | |
8139 | delete arg2; | |
8140 | } | |
8141 | return NULL; | |
8142 | } | |
8143 | ||
8144 | ||
2f4c0a16 | 8145 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8146 | PyObject *resultobj; |
8147 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8148 | wxString *arg2 = 0 ; | |
423f194a | 8149 | bool temp2 = False ; |
d14a1e28 RD |
8150 | PyObject * obj0 = 0 ; |
8151 | PyObject * obj1 = 0 ; | |
8152 | char *kwnames[] = { | |
8153 | (char *) "self",(char *) "extension", NULL | |
8154 | }; | |
8155 | ||
8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8159 | { |
8160 | arg2 = wxString_in_helper(obj1); | |
8161 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8162 | temp2 = True; |
d14a1e28 RD |
8163 | } |
8164 | { | |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | (arg1)->SetExtension((wxString const &)*arg2); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | Py_INCREF(Py_None); resultobj = Py_None; | |
8172 | { | |
8173 | if (temp2) | |
8174 | delete arg2; | |
8175 | } | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | { | |
8179 | if (temp2) | |
8180 | delete arg2; | |
8181 | } | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
2f4c0a16 | 8186 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8187 | PyObject *resultobj; |
8188 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8189 | long arg2 ; | |
8190 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8191 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8192 | char *kwnames[] = { |
8193 | (char *) "self",(char *) "type", NULL | |
8194 | }; | |
8195 | ||
8edf1c75 | 8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8199 | arg2 = (long) SWIG_AsLong(obj1); | |
8200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8201 | { |
8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8203 | (arg1)->SetType(arg2); | |
8204 | ||
8205 | wxPyEndAllowThreads(__tstate); | |
8206 | if (PyErr_Occurred()) SWIG_fail; | |
8207 | } | |
8208 | Py_INCREF(Py_None); resultobj = Py_None; | |
8209 | return resultobj; | |
8210 | fail: | |
8211 | return NULL; | |
8212 | } | |
8213 | ||
8214 | ||
2f4c0a16 | 8215 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8216 | PyObject *resultobj; |
8217 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8218 | wxString *arg2 = 0 ; | |
423f194a | 8219 | bool temp2 = False ; |
d14a1e28 RD |
8220 | PyObject * obj0 = 0 ; |
8221 | PyObject * obj1 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self",(char *) "mimetype", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8229 | { |
8230 | arg2 = wxString_in_helper(obj1); | |
8231 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8232 | temp2 = True; |
d14a1e28 RD |
8233 | } |
8234 | { | |
8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8236 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8237 | ||
8238 | wxPyEndAllowThreads(__tstate); | |
8239 | if (PyErr_Occurred()) SWIG_fail; | |
8240 | } | |
8241 | Py_INCREF(Py_None); resultobj = Py_None; | |
8242 | { | |
8243 | if (temp2) | |
8244 | delete arg2; | |
8245 | } | |
8246 | return resultobj; | |
8247 | fail: | |
8248 | { | |
8249 | if (temp2) | |
8250 | delete arg2; | |
8251 | } | |
8252 | return NULL; | |
8253 | } | |
8254 | ||
8255 | ||
2f4c0a16 | 8256 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8257 | PyObject *obj; |
8258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8259 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8260 | Py_INCREF(obj); | |
8261 | return Py_BuildValue((char *)""); | |
8262 | } | |
2f4c0a16 | 8263 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8264 | PyObject *resultobj; |
8265 | wxImageHistogram *result; | |
8266 | char *kwnames[] = { | |
8267 | NULL | |
8268 | }; | |
8269 | ||
8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8271 | { | |
8272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8273 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8274 | ||
8275 | wxPyEndAllowThreads(__tstate); | |
8276 | if (PyErr_Occurred()) SWIG_fail; | |
8277 | } | |
2f4c0a16 | 8278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8279 | return resultobj; |
8280 | fail: | |
8281 | return NULL; | |
8282 | } | |
8283 | ||
8284 | ||
2f4c0a16 | 8285 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8286 | PyObject *resultobj; |
8287 | unsigned char arg1 ; | |
8288 | unsigned char arg2 ; | |
8289 | unsigned char arg3 ; | |
8290 | unsigned long result; | |
8291 | PyObject * obj0 = 0 ; | |
8292 | PyObject * obj1 = 0 ; | |
8293 | PyObject * obj2 = 0 ; | |
8294 | char *kwnames[] = { | |
8295 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8296 | }; | |
8297 | ||
8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8299 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8300 | if (PyErr_Occurred()) SWIG_fail; | |
8301 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8302 | if (PyErr_Occurred()) SWIG_fail; | |
8303 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8305 | { |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8308 | ||
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
2f4c0a16 | 8312 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8313 | return resultobj; |
8314 | fail: | |
8315 | return NULL; | |
8316 | } | |
8317 | ||
8318 | ||
2f4c0a16 | 8319 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8320 | PyObject *resultobj; |
8321 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8322 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8323 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8324 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8325 | unsigned char arg5 = (unsigned char) 1 ; | |
8326 | unsigned char arg6 = (unsigned char) 0 ; | |
8327 | unsigned char arg7 = (unsigned char) 0 ; | |
8328 | bool result; | |
8329 | unsigned char temp2 ; | |
8330 | unsigned char temp3 ; | |
8331 | unsigned char temp4 ; | |
8332 | PyObject * obj0 = 0 ; | |
8333 | PyObject * obj1 = 0 ; | |
8334 | PyObject * obj2 = 0 ; | |
8335 | PyObject * obj3 = 0 ; | |
8336 | char *kwnames[] = { | |
8337 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8338 | }; | |
8339 | ||
8340 | arg2 = &temp2; | |
8341 | arg3 = &temp3; | |
8342 | arg4 = &temp4; | |
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
8344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8346 | if (obj1) { |
2f4c0a16 RD |
8347 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8349 | } |
8350 | if (obj2) { | |
2f4c0a16 RD |
8351 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8352 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8353 | } |
8354 | if (obj3) { | |
2f4c0a16 RD |
8355 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8356 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8357 | } |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
02a34c4c | 8365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8366 | { |
8367 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8368 | resultobj = t_output_helper(resultobj,o); | |
8369 | } | |
8370 | { | |
8371 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8372 | resultobj = t_output_helper(resultobj,o); | |
8373 | } | |
8374 | { | |
8375 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8376 | resultobj = t_output_helper(resultobj,o); | |
8377 | } | |
8378 | return resultobj; | |
8379 | fail: | |
8380 | return NULL; | |
8381 | } | |
8382 | ||
8383 | ||
2f4c0a16 | 8384 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8385 | PyObject *obj; |
8386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8387 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8388 | Py_INCREF(obj); | |
8389 | return Py_BuildValue((char *)""); | |
8390 | } | |
2f4c0a16 | 8391 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8392 | PyObject *resultobj; |
8393 | wxString *arg1 = 0 ; | |
8394 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8395 | int arg3 = (int) -1 ; | |
8396 | wxImage *result; | |
423f194a | 8397 | bool temp1 = False ; |
d14a1e28 | 8398 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8399 | PyObject * obj1 = 0 ; |
8400 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8401 | char *kwnames[] = { |
8402 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8403 | }; | |
8404 | ||
8edf1c75 | 8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8406 | { |
8407 | arg1 = wxString_in_helper(obj0); | |
8408 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8409 | temp1 = True; |
d14a1e28 | 8410 | } |
8edf1c75 | 8411 | if (obj1) { |
2f4c0a16 RD |
8412 | arg2 = (long) SWIG_AsLong(obj1); |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8414 | } |
8415 | if (obj2) { | |
2f4c0a16 RD |
8416 | arg3 = (int) SWIG_AsInt(obj2); |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8418 | } |
d14a1e28 RD |
8419 | { |
8420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8421 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8422 | ||
8423 | wxPyEndAllowThreads(__tstate); | |
8424 | if (PyErr_Occurred()) SWIG_fail; | |
8425 | } | |
2f4c0a16 | 8426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8427 | { |
8428 | if (temp1) | |
8429 | delete arg1; | |
8430 | } | |
8431 | return resultobj; | |
8432 | fail: | |
8433 | { | |
8434 | if (temp1) | |
8435 | delete arg1; | |
8436 | } | |
8437 | return NULL; | |
8438 | } | |
8439 | ||
8440 | ||
2f4c0a16 | 8441 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8442 | PyObject *resultobj; |
8443 | wxImage *arg1 = (wxImage *) 0 ; | |
8444 | PyObject * obj0 = 0 ; | |
8445 | char *kwnames[] = { | |
8446 | (char *) "self", NULL | |
8447 | }; | |
8448 | ||
8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8452 | { |
8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8454 | delete arg1; | |
8455 | ||
8456 | wxPyEndAllowThreads(__tstate); | |
8457 | if (PyErr_Occurred()) SWIG_fail; | |
8458 | } | |
8459 | Py_INCREF(Py_None); resultobj = Py_None; | |
8460 | return resultobj; | |
8461 | fail: | |
8462 | return NULL; | |
8463 | } | |
8464 | ||
8465 | ||
2f4c0a16 | 8466 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8467 | PyObject *resultobj; |
8468 | wxString *arg1 = 0 ; | |
8469 | wxString *arg2 = 0 ; | |
8470 | int arg3 = (int) -1 ; | |
8471 | wxImage *result; | |
423f194a RD |
8472 | bool temp1 = False ; |
8473 | bool temp2 = False ; | |
d14a1e28 RD |
8474 | PyObject * obj0 = 0 ; |
8475 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8476 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8477 | char *kwnames[] = { |
8478 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8479 | }; | |
8480 | ||
8edf1c75 | 8481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8482 | { |
8483 | arg1 = wxString_in_helper(obj0); | |
8484 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8485 | temp1 = True; |
d14a1e28 RD |
8486 | } |
8487 | { | |
8488 | arg2 = wxString_in_helper(obj1); | |
8489 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8490 | temp2 = True; |
d14a1e28 | 8491 | } |
8edf1c75 | 8492 | if (obj2) { |
2f4c0a16 RD |
8493 | arg3 = (int) SWIG_AsInt(obj2); |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8495 | } |
d14a1e28 RD |
8496 | { |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
2f4c0a16 | 8503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8504 | { |
8505 | if (temp1) | |
8506 | delete arg1; | |
8507 | } | |
8508 | { | |
8509 | if (temp2) | |
8510 | delete arg2; | |
8511 | } | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | { | |
8515 | if (temp1) | |
8516 | delete arg1; | |
8517 | } | |
8518 | { | |
8519 | if (temp2) | |
8520 | delete arg2; | |
8521 | } | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
2f4c0a16 | 8526 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8527 | PyObject *resultobj; |
8528 | wxInputStream *arg1 = 0 ; | |
8529 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8530 | int arg3 = (int) -1 ; | |
8531 | wxImage *result; | |
8532 | wxPyInputStream *temp1 ; | |
8533 | bool created1 ; | |
8534 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8535 | PyObject * obj1 = 0 ; |
8536 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8537 | char *kwnames[] = { |
8538 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8539 | }; | |
8540 | ||
8edf1c75 | 8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8542 | { |
8543 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8544 | arg1 = temp1->m_wxis; | |
423f194a | 8545 | created1 = False; |
d14a1e28 RD |
8546 | } else { |
8547 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8548 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8549 | if (arg1 == NULL) { |
8550 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8551 | SWIG_fail; | |
8552 | } | |
423f194a | 8553 | created1 = True; |
d14a1e28 RD |
8554 | } |
8555 | } | |
8edf1c75 | 8556 | if (obj1) { |
2f4c0a16 RD |
8557 | arg2 = (long) SWIG_AsLong(obj1); |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8559 | } |
8560 | if (obj2) { | |
2f4c0a16 RD |
8561 | arg3 = (int) SWIG_AsInt(obj2); |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8563 | } |
d14a1e28 RD |
8564 | { |
8565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8566 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8567 | ||
8568 | wxPyEndAllowThreads(__tstate); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
8570 | } | |
2f4c0a16 | 8571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8572 | { |
8573 | if (created1) | |
8574 | delete arg1; | |
8575 | } | |
8576 | return resultobj; | |
8577 | fail: | |
8578 | { | |
8579 | if (created1) | |
8580 | delete arg1; | |
8581 | } | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
2f4c0a16 | 8586 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8587 | PyObject *resultobj; |
8588 | wxInputStream *arg1 = 0 ; | |
8589 | wxString *arg2 = 0 ; | |
8590 | int arg3 = (int) -1 ; | |
8591 | wxImage *result; | |
8592 | wxPyInputStream *temp1 ; | |
8593 | bool created1 ; | |
423f194a | 8594 | bool temp2 = False ; |
d14a1e28 RD |
8595 | PyObject * obj0 = 0 ; |
8596 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8597 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8598 | char *kwnames[] = { |
8599 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8600 | }; | |
8601 | ||
8edf1c75 | 8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8603 | { |
8604 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8605 | arg1 = temp1->m_wxis; | |
423f194a | 8606 | created1 = False; |
d14a1e28 RD |
8607 | } else { |
8608 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8609 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8610 | if (arg1 == NULL) { |
8611 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8612 | SWIG_fail; | |
8613 | } | |
423f194a | 8614 | created1 = True; |
d14a1e28 RD |
8615 | } |
8616 | } | |
8617 | { | |
8618 | arg2 = wxString_in_helper(obj1); | |
8619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8620 | temp2 = True; |
d14a1e28 | 8621 | } |
8edf1c75 | 8622 | if (obj2) { |
2f4c0a16 RD |
8623 | arg3 = (int) SWIG_AsInt(obj2); |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8625 | } |
d14a1e28 RD |
8626 | { |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8629 | ||
8630 | wxPyEndAllowThreads(__tstate); | |
8631 | if (PyErr_Occurred()) SWIG_fail; | |
8632 | } | |
2f4c0a16 | 8633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8634 | { |
8635 | if (created1) | |
8636 | delete arg1; | |
8637 | } | |
8638 | { | |
8639 | if (temp2) | |
8640 | delete arg2; | |
8641 | } | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | { | |
8645 | if (created1) | |
8646 | delete arg1; | |
8647 | } | |
8648 | { | |
8649 | if (temp2) | |
8650 | delete arg2; | |
8651 | } | |
8652 | return NULL; | |
8653 | } | |
8654 | ||
8655 | ||
2f4c0a16 | 8656 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8657 | PyObject *resultobj; |
8658 | int arg1 = (int) 0 ; | |
8659 | int arg2 = (int) 0 ; | |
423f194a | 8660 | bool arg3 = (bool) True ; |
d14a1e28 | 8661 | wxImage *result; |
8edf1c75 RD |
8662 | PyObject * obj0 = 0 ; |
8663 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8664 | PyObject * obj2 = 0 ; |
8665 | char *kwnames[] = { | |
8666 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8667 | }; | |
8668 | ||
8edf1c75 RD |
8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8670 | if (obj0) { | |
2f4c0a16 RD |
8671 | arg1 = (int) SWIG_AsInt(obj0); |
8672 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8673 | } |
8674 | if (obj1) { | |
2f4c0a16 RD |
8675 | arg2 = (int) SWIG_AsInt(obj1); |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8677 | } |
d14a1e28 | 8678 | if (obj2) { |
2f4c0a16 RD |
8679 | arg3 = (bool) SWIG_AsBool(obj2); |
8680 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8681 | } |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
2f4c0a16 | 8689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8690 | return resultobj; |
8691 | fail: | |
8692 | return NULL; | |
8693 | } | |
8694 | ||
8695 | ||
2f4c0a16 | 8696 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8697 | PyObject *resultobj; |
8698 | wxBitmap *arg1 = 0 ; | |
8699 | wxImage *result; | |
8700 | PyObject * obj0 = 0 ; | |
8701 | char *kwnames[] = { | |
8702 | (char *) "bitmap", NULL | |
8703 | }; | |
8704 | ||
8705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8708 | SWIG_fail; | |
d14a1e28 | 8709 | if (arg1 == NULL) { |
2f4c0a16 RD |
8710 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8711 | SWIG_fail; | |
d14a1e28 RD |
8712 | } |
8713 | { | |
8714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8715 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8716 | ||
8717 | wxPyEndAllowThreads(__tstate); | |
8718 | if (PyErr_Occurred()) SWIG_fail; | |
8719 | } | |
2f4c0a16 | 8720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8721 | return resultobj; |
8722 | fail: | |
8723 | return NULL; | |
8724 | } | |
8725 | ||
8726 | ||
2f4c0a16 | 8727 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8728 | PyObject *resultobj; |
8729 | int arg1 ; | |
8730 | int arg2 ; | |
8731 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8732 | wxImage *result; | |
8edf1c75 RD |
8733 | PyObject * obj0 = 0 ; |
8734 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8735 | PyObject * obj2 = 0 ; |
8736 | char *kwnames[] = { | |
8737 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8738 | }; | |
8739 | ||
8edf1c75 | 8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8741 | arg1 = (int) SWIG_AsInt(obj0); |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8743 | arg2 = (int) SWIG_AsInt(obj1); | |
8744 | if (PyErr_Occurred()) SWIG_fail; | |
8745 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8747 | { |
8748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8749 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8750 | ||
8751 | wxPyEndAllowThreads(__tstate); | |
8752 | if (PyErr_Occurred()) SWIG_fail; | |
8753 | } | |
2f4c0a16 | 8754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8755 | return resultobj; |
8756 | fail: | |
8757 | return NULL; | |
8758 | } | |
8759 | ||
8760 | ||
2f4c0a16 | 8761 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8762 | PyObject *resultobj; |
8763 | wxImage *arg1 = (wxImage *) 0 ; | |
8764 | int arg2 ; | |
8765 | int arg3 ; | |
8766 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8767 | PyObject * obj1 = 0 ; |
8768 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8769 | char *kwnames[] = { |
8770 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8771 | }; | |
8772 | ||
8edf1c75 | 8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8776 | arg2 = (int) SWIG_AsInt(obj1); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
8778 | arg3 = (int) SWIG_AsInt(obj2); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8780 | { |
8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8782 | (arg1)->Create(arg2,arg3); | |
8783 | ||
8784 | wxPyEndAllowThreads(__tstate); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | Py_INCREF(Py_None); resultobj = Py_None; | |
8788 | return resultobj; | |
8789 | fail: | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
2f4c0a16 | 8794 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8795 | PyObject *resultobj; |
8796 | wxImage *arg1 = (wxImage *) 0 ; | |
8797 | PyObject * obj0 = 0 ; | |
8798 | char *kwnames[] = { | |
8799 | (char *) "self", NULL | |
8800 | }; | |
8801 | ||
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8805 | { |
8806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8807 | (arg1)->Destroy(); | |
8808 | ||
8809 | wxPyEndAllowThreads(__tstate); | |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
8811 | } | |
8812 | Py_INCREF(Py_None); resultobj = Py_None; | |
8813 | return resultobj; | |
8814 | fail: | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
2f4c0a16 | 8819 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8820 | PyObject *resultobj; |
8821 | wxImage *arg1 = (wxImage *) 0 ; | |
8822 | int arg2 ; | |
8823 | int arg3 ; | |
8824 | SwigValueWrapper< wxImage > result; | |
8825 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8826 | PyObject * obj1 = 0 ; |
8827 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8828 | char *kwnames[] = { |
8829 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8830 | }; | |
8831 | ||
8edf1c75 | 8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8835 | arg2 = (int) SWIG_AsInt(obj1); | |
8836 | if (PyErr_Occurred()) SWIG_fail; | |
8837 | arg3 = (int) SWIG_AsInt(obj2); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8839 | { |
8840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8841 | result = (arg1)->Scale(arg2,arg3); | |
8842 | ||
8843 | wxPyEndAllowThreads(__tstate); | |
8844 | if (PyErr_Occurred()) SWIG_fail; | |
8845 | } | |
8846 | { | |
8847 | wxImage * resultptr; | |
8848 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8850 | } |
8851 | return resultobj; | |
8852 | fail: | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
2f4c0a16 | 8857 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8858 | PyObject *resultobj; |
8859 | wxImage *arg1 = (wxImage *) 0 ; | |
8860 | int arg2 ; | |
8861 | int arg3 ; | |
8862 | SwigValueWrapper< wxImage > result; | |
8863 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8864 | PyObject * obj1 = 0 ; |
8865 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8866 | char *kwnames[] = { |
8867 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8868 | }; | |
8869 | ||
8edf1c75 | 8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8873 | arg2 = (int) SWIG_AsInt(obj1); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
8875 | arg3 = (int) SWIG_AsInt(obj2); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8877 | { |
8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8879 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8880 | ||
8881 | wxPyEndAllowThreads(__tstate); | |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
8883 | } | |
8884 | { | |
8885 | wxImage * resultptr; | |
8886 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8887 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8888 | } |
8889 | return resultobj; | |
8890 | fail: | |
8891 | return NULL; | |
8892 | } | |
8893 | ||
8894 | ||
2f4c0a16 | 8895 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8896 | PyObject *resultobj; |
8897 | wxImage *arg1 = (wxImage *) 0 ; | |
8898 | int arg2 ; | |
8899 | int arg3 ; | |
8900 | wxImage *result; | |
8901 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8902 | PyObject * obj1 = 0 ; |
8903 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8904 | char *kwnames[] = { |
8905 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8906 | }; | |
8907 | ||
8edf1c75 | 8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8911 | arg2 = (int) SWIG_AsInt(obj1); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | arg3 = (int) SWIG_AsInt(obj2); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8915 | { |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | { | |
8918 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8919 | result = (wxImage *) &_result_ref; | |
8920 | } | |
8921 | ||
8922 | wxPyEndAllowThreads(__tstate); | |
8923 | if (PyErr_Occurred()) SWIG_fail; | |
8924 | } | |
2f4c0a16 | 8925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
8926 | return resultobj; |
8927 | fail: | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
2f4c0a16 | 8932 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8933 | PyObject *resultobj; |
8934 | wxImage *arg1 = (wxImage *) 0 ; | |
8935 | int arg2 ; | |
8936 | int arg3 ; | |
8937 | unsigned char arg4 ; | |
8938 | unsigned char arg5 ; | |
8939 | unsigned char arg6 ; | |
8940 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8941 | PyObject * obj1 = 0 ; |
8942 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8943 | PyObject * obj3 = 0 ; |
8944 | PyObject * obj4 = 0 ; | |
8945 | PyObject * obj5 = 0 ; | |
8946 | char *kwnames[] = { | |
8947 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8948 | }; | |
8949 | ||
8edf1c75 | 8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8953 | arg2 = (int) SWIG_AsInt(obj1); | |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | arg3 = (int) SWIG_AsInt(obj2); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8963 | { |
8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8965 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8966 | ||
8967 | wxPyEndAllowThreads(__tstate); | |
8968 | if (PyErr_Occurred()) SWIG_fail; | |
8969 | } | |
8970 | Py_INCREF(Py_None); resultobj = Py_None; | |
8971 | return resultobj; | |
8972 | fail: | |
8973 | return NULL; | |
8974 | } | |
8975 | ||
8976 | ||
2f4c0a16 | 8977 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8978 | PyObject *resultobj; |
8979 | wxImage *arg1 = (wxImage *) 0 ; | |
8980 | int arg2 ; | |
8981 | int arg3 ; | |
8982 | unsigned char result; | |
8983 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8984 | PyObject * obj1 = 0 ; |
8985 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8986 | char *kwnames[] = { |
8987 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8988 | }; | |
8989 | ||
8edf1c75 | 8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8993 | arg2 = (int) SWIG_AsInt(obj1); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | arg3 = (int) SWIG_AsInt(obj2); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8997 | { |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9000 | ||
9001 | wxPyEndAllowThreads(__tstate); | |
9002 | if (PyErr_Occurred()) SWIG_fail; | |
9003 | } | |
2f4c0a16 | 9004 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9005 | return resultobj; |
9006 | fail: | |
9007 | return NULL; | |
9008 | } | |
9009 | ||
9010 | ||
2f4c0a16 | 9011 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9012 | PyObject *resultobj; |
9013 | wxImage *arg1 = (wxImage *) 0 ; | |
9014 | int arg2 ; | |
9015 | int arg3 ; | |
9016 | unsigned char result; | |
9017 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9018 | PyObject * obj1 = 0 ; |
9019 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9020 | char *kwnames[] = { |
9021 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9022 | }; | |
9023 | ||
8edf1c75 | 9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9027 | arg2 = (int) SWIG_AsInt(obj1); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
9029 | arg3 = (int) SWIG_AsInt(obj2); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9031 | { |
9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9033 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9034 | ||
9035 | wxPyEndAllowThreads(__tstate); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | } | |
2f4c0a16 | 9038 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9039 | return resultobj; |
9040 | fail: | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
2f4c0a16 | 9045 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9046 | PyObject *resultobj; |
9047 | wxImage *arg1 = (wxImage *) 0 ; | |
9048 | int arg2 ; | |
9049 | int arg3 ; | |
9050 | unsigned char result; | |
9051 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9052 | PyObject * obj1 = 0 ; |
9053 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9054 | char *kwnames[] = { |
9055 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9056 | }; | |
9057 | ||
8edf1c75 | 9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9061 | arg2 = (int) SWIG_AsInt(obj1); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | arg3 = (int) SWIG_AsInt(obj2); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9065 | { |
9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9067 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9068 | ||
9069 | wxPyEndAllowThreads(__tstate); | |
9070 | if (PyErr_Occurred()) SWIG_fail; | |
9071 | } | |
2f4c0a16 | 9072 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9073 | return resultobj; |
9074 | fail: | |
9075 | return NULL; | |
9076 | } | |
9077 | ||
9078 | ||
2f4c0a16 | 9079 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9080 | PyObject *resultobj; |
9081 | wxImage *arg1 = (wxImage *) 0 ; | |
9082 | int arg2 ; | |
9083 | int arg3 ; | |
9084 | unsigned char arg4 ; | |
9085 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9086 | PyObject * obj1 = 0 ; |
9087 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9088 | PyObject * obj3 = 0 ; |
9089 | char *kwnames[] = { | |
9090 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9091 | }; | |
9092 | ||
8edf1c75 | 9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9096 | arg2 = (int) SWIG_AsInt(obj1); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | arg3 = (int) SWIG_AsInt(obj2); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9102 | { |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
9109 | Py_INCREF(Py_None); resultobj = Py_None; | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
2f4c0a16 | 9116 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9117 | PyObject *resultobj; |
9118 | wxImage *arg1 = (wxImage *) 0 ; | |
9119 | int arg2 ; | |
9120 | int arg3 ; | |
9121 | unsigned char result; | |
9122 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9123 | PyObject * obj1 = 0 ; |
9124 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9125 | char *kwnames[] = { |
9126 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9127 | }; | |
9128 | ||
8edf1c75 | 9129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9132 | arg2 = (int) SWIG_AsInt(obj1); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | arg3 = (int) SWIG_AsInt(obj2); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9136 | { |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9139 | ||
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
2f4c0a16 | 9143 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9144 | return resultobj; |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
2f4c0a16 | 9150 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9151 | PyObject *resultobj; |
9152 | wxImage *arg1 = (wxImage *) 0 ; | |
9153 | bool result; | |
9154 | PyObject * obj0 = 0 ; | |
9155 | char *kwnames[] = { | |
9156 | (char *) "self", NULL | |
9157 | }; | |
9158 | ||
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9162 | { |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (bool)(arg1)->HasAlpha(); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
02a34c4c | 9169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9170 | return resultobj; |
9171 | fail: | |
9172 | return NULL; | |
9173 | } | |
9174 | ||
9175 | ||
2f4c0a16 | 9176 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9177 | PyObject *resultobj; |
9178 | wxImage *arg1 = (wxImage *) 0 ; | |
9179 | byte *arg2 = (byte *) 0 ; | |
9180 | byte *arg3 = (byte *) 0 ; | |
9181 | byte *arg4 = (byte *) 0 ; | |
9182 | byte arg5 = (byte) 0 ; | |
9183 | byte arg6 = (byte) 0 ; | |
9184 | byte arg7 = (byte) 0 ; | |
9185 | bool result; | |
9186 | byte temp2 ; | |
9187 | byte temp3 ; | |
9188 | byte temp4 ; | |
9189 | PyObject * obj0 = 0 ; | |
9190 | PyObject * obj1 = 0 ; | |
9191 | PyObject * obj2 = 0 ; | |
9192 | PyObject * obj3 = 0 ; | |
9193 | char *kwnames[] = { | |
9194 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9195 | }; | |
9196 | ||
9197 | arg2 = &temp2; | |
9198 | arg3 = &temp3; | |
9199 | arg4 = &temp4; | |
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9203 | if (obj1) { |
2f4c0a16 RD |
9204 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9206 | } |
9207 | if (obj2) { | |
2f4c0a16 RD |
9208 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9210 | } |
9211 | if (obj3) { | |
2f4c0a16 RD |
9212 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9214 | } |
9215 | { | |
9216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9217 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9218 | ||
9219 | wxPyEndAllowThreads(__tstate); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
02a34c4c | 9222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9223 | { |
9224 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9225 | resultobj = t_output_helper(resultobj,o); | |
9226 | } | |
9227 | { | |
9228 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9229 | resultobj = t_output_helper(resultobj,o); | |
9230 | } | |
9231 | { | |
9232 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9233 | resultobj = t_output_helper(resultobj,o); | |
9234 | } | |
9235 | return resultobj; | |
9236 | fail: | |
9237 | return NULL; | |
9238 | } | |
9239 | ||
9240 | ||
2f4c0a16 | 9241 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9242 | PyObject *resultobj; |
9243 | wxImage *arg1 = (wxImage *) 0 ; | |
9244 | wxImage *arg2 = 0 ; | |
9245 | byte arg3 ; | |
9246 | byte arg4 ; | |
9247 | byte arg5 ; | |
9248 | bool result; | |
9249 | PyObject * obj0 = 0 ; | |
9250 | PyObject * obj1 = 0 ; | |
9251 | PyObject * obj2 = 0 ; | |
9252 | PyObject * obj3 = 0 ; | |
9253 | PyObject * obj4 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9256 | }; | |
9257 | ||
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
9259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9262 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9263 | SWIG_fail; | |
d14a1e28 | 9264 | if (arg2 == NULL) { |
2f4c0a16 RD |
9265 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9266 | SWIG_fail; | |
2dbef272 | 9267 | } |
2f4c0a16 RD |
9268 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
9272 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9274 | { |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
02a34c4c | 9281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9282 | return resultobj; |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
2f4c0a16 | 9288 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9289 | PyObject *resultobj; |
9290 | wxString *arg1 = 0 ; | |
9291 | bool result; | |
423f194a | 9292 | bool temp1 = False ; |
d14a1e28 RD |
9293 | PyObject * obj0 = 0 ; |
9294 | char *kwnames[] = { | |
9295 | (char *) "name", NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9299 | { | |
9300 | arg1 = wxString_in_helper(obj0); | |
9301 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9302 | temp1 = True; |
d14a1e28 RD |
9303 | } |
9304 | { | |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | } | |
02a34c4c | 9311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9312 | { |
9313 | if (temp1) | |
9314 | delete arg1; | |
9315 | } | |
9316 | return resultobj; | |
9317 | fail: | |
9318 | { | |
9319 | if (temp1) | |
9320 | delete arg1; | |
9321 | } | |
9322 | return NULL; | |
9323 | } | |
9324 | ||
9325 | ||
2f4c0a16 | 9326 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9327 | PyObject *resultobj; |
9328 | wxString *arg1 = 0 ; | |
9329 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9330 | int result; | |
423f194a | 9331 | bool temp1 = False ; |
d14a1e28 | 9332 | PyObject * obj0 = 0 ; |
8edf1c75 | 9333 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9334 | char *kwnames[] = { |
9335 | (char *) "name",(char *) "type", NULL | |
9336 | }; | |
9337 | ||
8edf1c75 | 9338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9339 | { |
9340 | arg1 = wxString_in_helper(obj0); | |
9341 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9342 | temp1 = True; |
d14a1e28 | 9343 | } |
8edf1c75 | 9344 | if (obj1) { |
2f4c0a16 RD |
9345 | arg2 = (long) SWIG_AsLong(obj1); |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9347 | } |
d14a1e28 RD |
9348 | { |
9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9350 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9351 | ||
9352 | wxPyEndAllowThreads(__tstate); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | } | |
2f4c0a16 | 9355 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9356 | { |
9357 | if (temp1) | |
9358 | delete arg1; | |
9359 | } | |
9360 | return resultobj; | |
9361 | fail: | |
9362 | { | |
9363 | if (temp1) | |
9364 | delete arg1; | |
9365 | } | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
2f4c0a16 | 9370 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9371 | PyObject *resultobj; |
9372 | wxImage *arg1 = (wxImage *) 0 ; | |
9373 | wxString *arg2 = 0 ; | |
9374 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9375 | int arg4 = (int) -1 ; | |
9376 | bool result; | |
423f194a | 9377 | bool temp2 = False ; |
d14a1e28 RD |
9378 | PyObject * obj0 = 0 ; |
9379 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9380 | PyObject * obj2 = 0 ; |
9381 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9382 | char *kwnames[] = { |
9383 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9384 | }; | |
9385 | ||
8edf1c75 | 9386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9389 | { |
9390 | arg2 = wxString_in_helper(obj1); | |
9391 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9392 | temp2 = True; |
d14a1e28 | 9393 | } |
8edf1c75 | 9394 | if (obj2) { |
2f4c0a16 RD |
9395 | arg3 = (long) SWIG_AsLong(obj2); |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9397 | } |
9398 | if (obj3) { | |
2f4c0a16 RD |
9399 | arg4 = (int) SWIG_AsInt(obj3); |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9401 | } |
d14a1e28 RD |
9402 | { |
9403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9404 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9405 | ||
9406 | wxPyEndAllowThreads(__tstate); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | } | |
02a34c4c | 9409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9410 | { |
9411 | if (temp2) | |
9412 | delete arg2; | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | { | |
9417 | if (temp2) | |
9418 | delete arg2; | |
9419 | } | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
2f4c0a16 | 9424 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9425 | PyObject *resultobj; |
9426 | wxImage *arg1 = (wxImage *) 0 ; | |
9427 | wxString *arg2 = 0 ; | |
9428 | wxString *arg3 = 0 ; | |
9429 | int arg4 = (int) -1 ; | |
9430 | bool result; | |
423f194a RD |
9431 | bool temp2 = False ; |
9432 | bool temp3 = False ; | |
d14a1e28 RD |
9433 | PyObject * obj0 = 0 ; |
9434 | PyObject * obj1 = 0 ; | |
9435 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9436 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9437 | char *kwnames[] = { |
9438 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9439 | }; | |
9440 | ||
8edf1c75 | 9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9444 | { |
9445 | arg2 = wxString_in_helper(obj1); | |
9446 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9447 | temp2 = True; |
d14a1e28 RD |
9448 | } |
9449 | { | |
9450 | arg3 = wxString_in_helper(obj2); | |
9451 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9452 | temp3 = True; |
d14a1e28 | 9453 | } |
8edf1c75 | 9454 | if (obj3) { |
2f4c0a16 RD |
9455 | arg4 = (int) SWIG_AsInt(obj3); |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9457 | } |
d14a1e28 RD |
9458 | { |
9459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9460 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9461 | ||
9462 | wxPyEndAllowThreads(__tstate); | |
9463 | if (PyErr_Occurred()) SWIG_fail; | |
9464 | } | |
02a34c4c | 9465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9466 | { |
9467 | if (temp2) | |
9468 | delete arg2; | |
9469 | } | |
9470 | { | |
9471 | if (temp3) | |
9472 | delete arg3; | |
9473 | } | |
9474 | return resultobj; | |
9475 | fail: | |
9476 | { | |
9477 | if (temp2) | |
9478 | delete arg2; | |
9479 | } | |
9480 | { | |
9481 | if (temp3) | |
9482 | delete arg3; | |
9483 | } | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
2f4c0a16 | 9488 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9489 | PyObject *resultobj; |
9490 | wxImage *arg1 = (wxImage *) 0 ; | |
9491 | wxString *arg2 = 0 ; | |
9492 | int arg3 ; | |
9493 | bool result; | |
423f194a | 9494 | bool temp2 = False ; |
d14a1e28 RD |
9495 | PyObject * obj0 = 0 ; |
9496 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9497 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9498 | char *kwnames[] = { |
9499 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9500 | }; | |
9501 | ||
8edf1c75 | 9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9505 | { |
9506 | arg2 = wxString_in_helper(obj1); | |
9507 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9508 | temp2 = True; |
d14a1e28 | 9509 | } |
2f4c0a16 RD |
9510 | arg3 = (int) SWIG_AsInt(obj2); |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9512 | { |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
02a34c4c | 9519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9520 | { |
9521 | if (temp2) | |
9522 | delete arg2; | |
9523 | } | |
9524 | return resultobj; | |
9525 | fail: | |
9526 | { | |
9527 | if (temp2) | |
9528 | delete arg2; | |
9529 | } | |
9530 | return NULL; | |
9531 | } | |
9532 | ||
9533 | ||
2f4c0a16 | 9534 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9535 | PyObject *resultobj; |
9536 | wxImage *arg1 = (wxImage *) 0 ; | |
9537 | wxString *arg2 = 0 ; | |
9538 | wxString *arg3 = 0 ; | |
9539 | bool result; | |
423f194a RD |
9540 | bool temp2 = False ; |
9541 | bool temp3 = False ; | |
d14a1e28 RD |
9542 | PyObject * obj0 = 0 ; |
9543 | PyObject * obj1 = 0 ; | |
9544 | PyObject * obj2 = 0 ; | |
9545 | char *kwnames[] = { | |
9546 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9547 | }; | |
9548 | ||
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9552 | { |
9553 | arg2 = wxString_in_helper(obj1); | |
9554 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9555 | temp2 = True; |
d14a1e28 RD |
9556 | } |
9557 | { | |
9558 | arg3 = wxString_in_helper(obj2); | |
9559 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9560 | temp3 = True; |
d14a1e28 RD |
9561 | } |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
02a34c4c | 9569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9570 | { |
9571 | if (temp2) | |
9572 | delete arg2; | |
9573 | } | |
9574 | { | |
9575 | if (temp3) | |
9576 | delete arg3; | |
9577 | } | |
9578 | return resultobj; | |
9579 | fail: | |
9580 | { | |
9581 | if (temp2) | |
9582 | delete arg2; | |
9583 | } | |
9584 | { | |
9585 | if (temp3) | |
9586 | delete arg3; | |
9587 | } | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
2f4c0a16 | 9592 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9593 | PyObject *resultobj; |
9594 | wxInputStream *arg1 = 0 ; | |
9595 | bool result; | |
9596 | wxPyInputStream *temp1 ; | |
9597 | bool created1 ; | |
9598 | PyObject * obj0 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "stream", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9604 | { | |
9605 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9606 | arg1 = temp1->m_wxis; | |
423f194a | 9607 | created1 = False; |
d14a1e28 RD |
9608 | } else { |
9609 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9610 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9611 | if (arg1 == NULL) { |
9612 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9613 | SWIG_fail; | |
9614 | } | |
423f194a | 9615 | created1 = True; |
d14a1e28 RD |
9616 | } |
9617 | } | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (bool)wxImage::CanRead(*arg1); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
02a34c4c | 9625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9626 | { |
9627 | if (created1) | |
9628 | delete arg1; | |
9629 | } | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | { | |
9633 | if (created1) | |
9634 | delete arg1; | |
9635 | } | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
2f4c0a16 | 9640 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9641 | PyObject *resultobj; |
9642 | wxImage *arg1 = (wxImage *) 0 ; | |
9643 | wxInputStream *arg2 = 0 ; | |
9644 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9645 | int arg4 = (int) -1 ; | |
9646 | bool result; | |
9647 | wxPyInputStream *temp2 ; | |
9648 | bool created2 ; | |
9649 | PyObject * obj0 = 0 ; | |
9650 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9651 | PyObject * obj2 = 0 ; |
9652 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9653 | char *kwnames[] = { |
9654 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9655 | }; | |
9656 | ||
8edf1c75 | 9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9660 | { |
9661 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9662 | arg2 = temp2->m_wxis; | |
423f194a | 9663 | created2 = False; |
d14a1e28 RD |
9664 | } else { |
9665 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9666 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9667 | if (arg2 == NULL) { |
9668 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9669 | SWIG_fail; | |
9670 | } | |
423f194a | 9671 | created2 = True; |
d14a1e28 RD |
9672 | } |
9673 | } | |
8edf1c75 | 9674 | if (obj2) { |
2f4c0a16 RD |
9675 | arg3 = (long) SWIG_AsLong(obj2); |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9677 | } |
9678 | if (obj3) { | |
2f4c0a16 RD |
9679 | arg4 = (int) SWIG_AsInt(obj3); |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9681 | } |
d14a1e28 RD |
9682 | { |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9684 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9685 | ||
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) SWIG_fail; | |
9688 | } | |
02a34c4c | 9689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9690 | { |
9691 | if (created2) | |
9692 | delete arg2; | |
9693 | } | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | { | |
9697 | if (created2) | |
9698 | delete arg2; | |
9699 | } | |
9700 | return NULL; | |
9701 | } | |
9702 | ||
9703 | ||
2f4c0a16 | 9704 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9705 | PyObject *resultobj; |
9706 | wxImage *arg1 = (wxImage *) 0 ; | |
9707 | wxInputStream *arg2 = 0 ; | |
9708 | wxString *arg3 = 0 ; | |
9709 | int arg4 = (int) -1 ; | |
9710 | bool result; | |
9711 | wxPyInputStream *temp2 ; | |
9712 | bool created2 ; | |
423f194a | 9713 | bool temp3 = False ; |
d14a1e28 RD |
9714 | PyObject * obj0 = 0 ; |
9715 | PyObject * obj1 = 0 ; | |
9716 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9717 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9718 | char *kwnames[] = { |
9719 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9720 | }; | |
9721 | ||
8edf1c75 | 9722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9725 | { |
9726 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9727 | arg2 = temp2->m_wxis; | |
423f194a | 9728 | created2 = False; |
d14a1e28 RD |
9729 | } else { |
9730 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9731 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9732 | if (arg2 == NULL) { |
9733 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9734 | SWIG_fail; | |
9735 | } | |
423f194a | 9736 | created2 = True; |
d14a1e28 RD |
9737 | } |
9738 | } | |
9739 | { | |
9740 | arg3 = wxString_in_helper(obj2); | |
9741 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9742 | temp3 = True; |
d14a1e28 | 9743 | } |
8edf1c75 | 9744 | if (obj3) { |
2f4c0a16 RD |
9745 | arg4 = (int) SWIG_AsInt(obj3); |
9746 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9747 | } |
d14a1e28 RD |
9748 | { |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
02a34c4c | 9755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9756 | { |
9757 | if (created2) | |
9758 | delete arg2; | |
9759 | } | |
9760 | { | |
9761 | if (temp3) | |
9762 | delete arg3; | |
9763 | } | |
9764 | return resultobj; | |
9765 | fail: | |
9766 | { | |
9767 | if (created2) | |
9768 | delete arg2; | |
9769 | } | |
9770 | { | |
9771 | if (temp3) | |
9772 | delete arg3; | |
9773 | } | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
2f4c0a16 | 9778 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9779 | PyObject *resultobj; |
9780 | wxImage *arg1 = (wxImage *) 0 ; | |
9781 | bool result; | |
9782 | PyObject * obj0 = 0 ; | |
9783 | char *kwnames[] = { | |
9784 | (char *) "self", NULL | |
9785 | }; | |
9786 | ||
9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9790 | { |
9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9792 | result = (bool)(arg1)->Ok(); | |
9793 | ||
9794 | wxPyEndAllowThreads(__tstate); | |
9795 | if (PyErr_Occurred()) SWIG_fail; | |
9796 | } | |
02a34c4c | 9797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9798 | return resultobj; |
9799 | fail: | |
9800 | return NULL; | |
9801 | } | |
9802 | ||
9803 | ||
2f4c0a16 | 9804 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9805 | PyObject *resultobj; |
9806 | wxImage *arg1 = (wxImage *) 0 ; | |
9807 | int result; | |
9808 | PyObject * obj0 = 0 ; | |
9809 | char *kwnames[] = { | |
9810 | (char *) "self", NULL | |
9811 | }; | |
9812 | ||
9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9816 | { |
9817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9818 | result = (int)(arg1)->GetWidth(); | |
9819 | ||
9820 | wxPyEndAllowThreads(__tstate); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
2f4c0a16 | 9823 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9824 | return resultobj; |
9825 | fail: | |
9826 | return NULL; | |
9827 | } | |
9828 | ||
9829 | ||
2f4c0a16 | 9830 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9831 | PyObject *resultobj; |
9832 | wxImage *arg1 = (wxImage *) 0 ; | |
9833 | int result; | |
9834 | PyObject * obj0 = 0 ; | |
9835 | char *kwnames[] = { | |
9836 | (char *) "self", NULL | |
9837 | }; | |
9838 | ||
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9842 | { |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9844 | result = (int)(arg1)->GetHeight(); | |
9845 | ||
9846 | wxPyEndAllowThreads(__tstate); | |
9847 | if (PyErr_Occurred()) SWIG_fail; | |
9848 | } | |
2f4c0a16 | 9849 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9850 | return resultobj; |
9851 | fail: | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
2f4c0a16 | 9856 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9857 | PyObject *resultobj; |
9858 | wxImage *arg1 = (wxImage *) 0 ; | |
9859 | wxRect *arg2 = 0 ; | |
9860 | SwigValueWrapper< wxImage > result; | |
9861 | wxRect temp2 ; | |
9862 | PyObject * obj0 = 0 ; | |
9863 | PyObject * obj1 = 0 ; | |
9864 | char *kwnames[] = { | |
9865 | (char *) "self",(char *) "rect", NULL | |
9866 | }; | |
9867 | ||
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9871 | { |
9872 | arg2 = &temp2; | |
9873 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9874 | } | |
9875 | { | |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | wxImage * resultptr; | |
9884 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9886 | } |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
9890 | } | |
9891 | ||
9892 | ||
2f4c0a16 | 9893 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9894 | PyObject *resultobj; |
9895 | wxImage *arg1 = (wxImage *) 0 ; | |
9896 | SwigValueWrapper< wxImage > result; | |
9897 | PyObject * obj0 = 0 ; | |
9898 | char *kwnames[] = { | |
9899 | (char *) "self", NULL | |
9900 | }; | |
9901 | ||
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9905 | { |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9907 | result = (arg1)->Copy(); | |
9908 | ||
9909 | wxPyEndAllowThreads(__tstate); | |
9910 | if (PyErr_Occurred()) SWIG_fail; | |
9911 | } | |
9912 | { | |
9913 | wxImage * resultptr; | |
9914 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9916 | } |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
2f4c0a16 | 9923 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9924 | PyObject *resultobj; |
9925 | wxImage *arg1 = (wxImage *) 0 ; | |
9926 | wxImage *arg2 = 0 ; | |
9927 | int arg3 ; | |
9928 | int arg4 ; | |
9929 | PyObject * obj0 = 0 ; | |
9930 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9931 | PyObject * obj2 = 0 ; |
9932 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9933 | char *kwnames[] = { |
9934 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9935 | }; | |
9936 | ||
8edf1c75 | 9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9941 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9942 | SWIG_fail; | |
d14a1e28 | 9943 | if (arg2 == NULL) { |
2f4c0a16 RD |
9944 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9945 | SWIG_fail; | |
8edf1c75 | 9946 | } |
2f4c0a16 RD |
9947 | arg3 = (int) SWIG_AsInt(obj2); |
9948 | if (PyErr_Occurred()) SWIG_fail; | |
9949 | arg4 = (int) SWIG_AsInt(obj3); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9951 | { |
9952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9953 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9954 | ||
9955 | wxPyEndAllowThreads(__tstate); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
9958 | Py_INCREF(Py_None); resultobj = Py_None; | |
9959 | return resultobj; | |
9960 | fail: | |
9961 | return NULL; | |
9962 | } | |
9963 | ||
9964 | ||
2f4c0a16 | 9965 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9966 | PyObject *resultobj; |
9967 | wxImage *arg1 = (wxImage *) 0 ; | |
9968 | PyObject *result; | |
9969 | PyObject * obj0 = 0 ; | |
9970 | char *kwnames[] = { | |
9971 | (char *) "self", NULL | |
9972 | }; | |
9973 | ||
9974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9977 | { |
9978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9979 | result = (PyObject *)wxImage_GetData(arg1); | |
9980 | ||
9981 | wxPyEndAllowThreads(__tstate); | |
9982 | if (PyErr_Occurred()) SWIG_fail; | |
9983 | } | |
9984 | resultobj = result; | |
9985 | return resultobj; | |
9986 | fail: | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
2f4c0a16 | 9991 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9992 | PyObject *resultobj; |
9993 | wxImage *arg1 = (wxImage *) 0 ; | |
9994 | PyObject *arg2 = (PyObject *) 0 ; | |
9995 | PyObject * obj0 = 0 ; | |
9996 | PyObject * obj1 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self",(char *) "data", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10004 | arg2 = obj1; |
10005 | { | |
10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10007 | wxImage_SetData(arg1,arg2); | |
10008 | ||
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
10012 | Py_INCREF(Py_None); resultobj = Py_None; | |
10013 | return resultobj; | |
10014 | fail: | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
2f4c0a16 | 10019 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10020 | PyObject *resultobj; |
10021 | wxImage *arg1 = (wxImage *) 0 ; | |
10022 | PyObject *result; | |
10023 | PyObject * obj0 = 0 ; | |
10024 | char *kwnames[] = { | |
10025 | (char *) "self", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10031 | { |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10034 | ||
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
10038 | resultobj = result; | |
10039 | return resultobj; | |
10040 | fail: | |
10041 | return NULL; | |
10042 | } | |
10043 | ||
10044 | ||
2f4c0a16 | 10045 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10046 | PyObject *resultobj; |
10047 | wxImage *arg1 = (wxImage *) 0 ; | |
10048 | PyObject *arg2 = (PyObject *) 0 ; | |
10049 | PyObject * obj0 = 0 ; | |
10050 | PyObject * obj1 = 0 ; | |
10051 | char *kwnames[] = { | |
10052 | (char *) "self",(char *) "data", NULL | |
10053 | }; | |
10054 | ||
10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10058 | arg2 = obj1; |
10059 | { | |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | wxImage_SetDataBuffer(arg1,arg2); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
10066 | Py_INCREF(Py_None); resultobj = Py_None; | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
2f4c0a16 | 10073 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10074 | PyObject *resultobj; |
10075 | wxImage *arg1 = (wxImage *) 0 ; | |
10076 | PyObject *result; | |
10077 | PyObject * obj0 = 0 ; | |
10078 | char *kwnames[] = { | |
10079 | (char *) "self", NULL | |
10080 | }; | |
10081 | ||
10082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10085 | { |
10086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10087 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10088 | ||
10089 | wxPyEndAllowThreads(__tstate); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | resultobj = result; | |
10093 | return resultobj; | |
10094 | fail: | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
2f4c0a16 | 10099 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10100 | PyObject *resultobj; |
10101 | wxImage *arg1 = (wxImage *) 0 ; | |
10102 | PyObject *arg2 = (PyObject *) 0 ; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | PyObject * obj1 = 0 ; | |
10105 | char *kwnames[] = { | |
10106 | (char *) "self",(char *) "data", NULL | |
10107 | }; | |
10108 | ||
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10112 | arg2 = obj1; |
10113 | { | |
10114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10115 | wxImage_SetAlphaData(arg1,arg2); | |
10116 | ||
10117 | wxPyEndAllowThreads(__tstate); | |
10118 | if (PyErr_Occurred()) SWIG_fail; | |
10119 | } | |
10120 | Py_INCREF(Py_None); resultobj = Py_None; | |
10121 | return resultobj; | |
10122 | fail: | |
10123 | return NULL; | |
10124 | } | |
10125 | ||
10126 | ||
2f4c0a16 | 10127 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10128 | PyObject *resultobj; |
10129 | wxImage *arg1 = (wxImage *) 0 ; | |
10130 | PyObject *result; | |
10131 | PyObject * obj0 = 0 ; | |
10132 | char *kwnames[] = { | |
10133 | (char *) "self", NULL | |
10134 | }; | |
10135 | ||
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10139 | { |
10140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10141 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10142 | ||
10143 | wxPyEndAllowThreads(__tstate); | |
10144 | if (PyErr_Occurred()) SWIG_fail; | |
10145 | } | |
10146 | resultobj = result; | |
10147 | return resultobj; | |
10148 | fail: | |
10149 | return NULL; | |
10150 | } | |
10151 | ||
10152 | ||
2f4c0a16 | 10153 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10154 | PyObject *resultobj; |
10155 | wxImage *arg1 = (wxImage *) 0 ; | |
10156 | PyObject *arg2 = (PyObject *) 0 ; | |
10157 | PyObject * obj0 = 0 ; | |
10158 | PyObject * obj1 = 0 ; | |
10159 | char *kwnames[] = { | |
10160 | (char *) "self",(char *) "data", NULL | |
10161 | }; | |
10162 | ||
10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10166 | arg2 = obj1; |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10169 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10170 | ||
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) SWIG_fail; | |
10173 | } | |
10174 | Py_INCREF(Py_None); resultobj = Py_None; | |
10175 | return resultobj; | |
10176 | fail: | |
10177 | return NULL; | |
10178 | } | |
10179 | ||
10180 | ||
2f4c0a16 | 10181 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10182 | PyObject *resultobj; |
10183 | wxImage *arg1 = (wxImage *) 0 ; | |
10184 | unsigned char arg2 ; | |
10185 | unsigned char arg3 ; | |
10186 | unsigned char arg4 ; | |
10187 | PyObject * obj0 = 0 ; | |
10188 | PyObject * obj1 = 0 ; | |
10189 | PyObject * obj2 = 0 ; | |
10190 | PyObject * obj3 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10198 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
10202 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10204 | { |
10205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10206 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10207 | ||
10208 | wxPyEndAllowThreads(__tstate); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
10211 | Py_INCREF(Py_None); resultobj = Py_None; | |
10212 | return resultobj; | |
10213 | fail: | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
2f4c0a16 | 10218 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10219 | PyObject *resultobj; |
10220 | wxImage *arg1 = (wxImage *) 0 ; | |
10221 | unsigned char result; | |
10222 | PyObject * obj0 = 0 ; | |
10223 | char *kwnames[] = { | |
10224 | (char *) "self", NULL | |
10225 | }; | |
10226 | ||
10227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10230 | { |
10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10232 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10233 | ||
10234 | wxPyEndAllowThreads(__tstate); | |
10235 | if (PyErr_Occurred()) SWIG_fail; | |
10236 | } | |
2f4c0a16 | 10237 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10238 | return resultobj; |
10239 | fail: | |
10240 | return NULL; | |
10241 | } | |
10242 | ||
10243 | ||
2f4c0a16 | 10244 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10245 | PyObject *resultobj; |
10246 | wxImage *arg1 = (wxImage *) 0 ; | |
10247 | unsigned char result; | |
10248 | PyObject * obj0 = 0 ; | |
10249 | char *kwnames[] = { | |
10250 | (char *) "self", NULL | |
10251 | }; | |
10252 | ||
10253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10256 | { |
10257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10258 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10259 | ||
10260 | wxPyEndAllowThreads(__tstate); | |
10261 | if (PyErr_Occurred()) SWIG_fail; | |
10262 | } | |
2f4c0a16 | 10263 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10264 | return resultobj; |
10265 | fail: | |
10266 | return NULL; | |
10267 | } | |
10268 | ||
10269 | ||
2f4c0a16 | 10270 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10271 | PyObject *resultobj; |
10272 | wxImage *arg1 = (wxImage *) 0 ; | |
10273 | unsigned char result; | |
10274 | PyObject * obj0 = 0 ; | |
10275 | char *kwnames[] = { | |
10276 | (char *) "self", NULL | |
10277 | }; | |
10278 | ||
10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
2f4c0a16 | 10289 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10290 | return resultobj; |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
2f4c0a16 | 10296 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10297 | PyObject *resultobj; |
10298 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10299 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10300 | PyObject * obj0 = 0 ; |
10301 | PyObject * obj1 = 0 ; | |
10302 | char *kwnames[] = { | |
10303 | (char *) "self",(char *) "mask", NULL | |
10304 | }; | |
10305 | ||
10306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10309 | if (obj1) { |
2f4c0a16 RD |
10310 | arg2 = (bool) SWIG_AsBool(obj1); |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10312 | } |
10313 | { | |
10314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10315 | (arg1)->SetMask(arg2); | |
10316 | ||
10317 | wxPyEndAllowThreads(__tstate); | |
10318 | if (PyErr_Occurred()) SWIG_fail; | |
10319 | } | |
10320 | Py_INCREF(Py_None); resultobj = Py_None; | |
10321 | return resultobj; | |
10322 | fail: | |
10323 | return NULL; | |
10324 | } | |
10325 | ||
10326 | ||
2f4c0a16 | 10327 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10328 | PyObject *resultobj; |
10329 | wxImage *arg1 = (wxImage *) 0 ; | |
10330 | bool result; | |
10331 | PyObject * obj0 = 0 ; | |
10332 | char *kwnames[] = { | |
10333 | (char *) "self", NULL | |
10334 | }; | |
10335 | ||
10336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10339 | { |
10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10341 | result = (bool)(arg1)->HasMask(); | |
10342 | ||
10343 | wxPyEndAllowThreads(__tstate); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
10345 | } | |
02a34c4c | 10346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10347 | return resultobj; |
10348 | fail: | |
10349 | return NULL; | |
10350 | } | |
10351 | ||
10352 | ||
2f4c0a16 | 10353 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10354 | PyObject *resultobj; |
10355 | wxImage *arg1 = (wxImage *) 0 ; | |
10356 | double arg2 ; | |
10357 | wxPoint *arg3 = 0 ; | |
423f194a | 10358 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10359 | wxPoint *arg5 = (wxPoint *) NULL ; |
10360 | SwigValueWrapper< wxImage > result; | |
10361 | wxPoint temp3 ; | |
10362 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10364 | PyObject * obj2 = 0 ; |
10365 | PyObject * obj3 = 0 ; | |
10366 | PyObject * obj4 = 0 ; | |
10367 | char *kwnames[] = { | |
10368 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10369 | }; | |
10370 | ||
8edf1c75 | 10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10374 | arg2 = (double) SWIG_AsDouble(obj1); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10376 | { |
10377 | arg3 = &temp3; | |
10378 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10379 | } | |
10380 | if (obj3) { | |
2f4c0a16 RD |
10381 | arg4 = (bool) SWIG_AsBool(obj3); |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10383 | } |
10384 | if (obj4) { | |
2f4c0a16 RD |
10385 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10387 | } |
10388 | { | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10391 | ||
10392 | wxPyEndAllowThreads(__tstate); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | } | |
10395 | { | |
10396 | wxImage * resultptr; | |
10397 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10398 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10399 | } |
10400 | return resultobj; | |
10401 | fail: | |
10402 | return NULL; | |
10403 | } | |
10404 | ||
10405 | ||
2f4c0a16 | 10406 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10407 | PyObject *resultobj; |
10408 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10409 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10410 | SwigValueWrapper< wxImage > result; |
10411 | PyObject * obj0 = 0 ; | |
10412 | PyObject * obj1 = 0 ; | |
10413 | char *kwnames[] = { | |
10414 | (char *) "self",(char *) "clockwise", NULL | |
10415 | }; | |
10416 | ||
10417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10420 | if (obj1) { |
2f4c0a16 RD |
10421 | arg2 = (bool) SWIG_AsBool(obj1); |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10423 | } |
10424 | { | |
10425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10426 | result = (arg1)->Rotate90(arg2); | |
10427 | ||
10428 | wxPyEndAllowThreads(__tstate); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | { | |
10432 | wxImage * resultptr; | |
10433 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10434 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10435 | } |
10436 | return resultobj; | |
10437 | fail: | |
10438 | return NULL; | |
10439 | } | |
10440 | ||
10441 | ||
2f4c0a16 | 10442 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10443 | PyObject *resultobj; |
10444 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10445 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10446 | SwigValueWrapper< wxImage > result; |
10447 | PyObject * obj0 = 0 ; | |
10448 | PyObject * obj1 = 0 ; | |
10449 | char *kwnames[] = { | |
10450 | (char *) "self",(char *) "horizontally", NULL | |
10451 | }; | |
10452 | ||
10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10456 | if (obj1) { |
2f4c0a16 RD |
10457 | arg2 = (bool) SWIG_AsBool(obj1); |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10459 | } |
10460 | { | |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | result = (arg1)->Mirror(arg2); | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
10467 | { | |
10468 | wxImage * resultptr; | |
10469 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10471 | } |
10472 | return resultobj; | |
10473 | fail: | |
10474 | return NULL; | |
10475 | } | |
10476 | ||
10477 | ||
2f4c0a16 | 10478 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10479 | PyObject *resultobj; |
10480 | wxImage *arg1 = (wxImage *) 0 ; | |
10481 | unsigned char arg2 ; | |
10482 | unsigned char arg3 ; | |
10483 | unsigned char arg4 ; | |
10484 | unsigned char arg5 ; | |
10485 | unsigned char arg6 ; | |
10486 | unsigned char arg7 ; | |
10487 | PyObject * obj0 = 0 ; | |
10488 | PyObject * obj1 = 0 ; | |
10489 | PyObject * obj2 = 0 ; | |
10490 | PyObject * obj3 = 0 ; | |
10491 | PyObject * obj4 = 0 ; | |
10492 | PyObject * obj5 = 0 ; | |
10493 | PyObject * obj6 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2f4c0a16 RD |
10499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10501 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10502 | if (PyErr_Occurred()) SWIG_fail; | |
10503 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10513 | { |
10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10515 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10516 | ||
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
10520 | Py_INCREF(Py_None); resultobj = Py_None; | |
10521 | return resultobj; | |
10522 | fail: | |
10523 | return NULL; | |
10524 | } | |
10525 | ||
10526 | ||
2f4c0a16 | 10527 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10528 | PyObject *resultobj; |
10529 | wxImage *arg1 = (wxImage *) 0 ; | |
10530 | unsigned char arg2 ; | |
10531 | unsigned char arg3 ; | |
10532 | unsigned char arg4 ; | |
10533 | SwigValueWrapper< wxImage > result; | |
10534 | PyObject * obj0 = 0 ; | |
10535 | PyObject * obj1 = 0 ; | |
10536 | PyObject * obj2 = 0 ; | |
10537 | PyObject * obj3 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10540 | }; | |
10541 | ||
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10545 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10551 | { |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10553 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10554 | ||
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) SWIG_fail; | |
10557 | } | |
10558 | { | |
10559 | wxImage * resultptr; | |
10560 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10562 | } |
10563 | return resultobj; | |
10564 | fail: | |
10565 | return NULL; | |
10566 | } | |
10567 | ||
10568 | ||
2f4c0a16 | 10569 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10570 | PyObject *resultobj; |
10571 | wxImage *arg1 = (wxImage *) 0 ; | |
10572 | wxString *arg2 = 0 ; | |
10573 | wxString *arg3 = 0 ; | |
423f194a RD |
10574 | bool temp2 = False ; |
10575 | bool temp3 = False ; | |
d14a1e28 RD |
10576 | PyObject * obj0 = 0 ; |
10577 | PyObject * obj1 = 0 ; | |
10578 | PyObject * obj2 = 0 ; | |
10579 | char *kwnames[] = { | |
10580 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10581 | }; | |
10582 | ||
10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10586 | { |
10587 | arg2 = wxString_in_helper(obj1); | |
10588 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10589 | temp2 = True; |
d14a1e28 RD |
10590 | } |
10591 | { | |
10592 | arg3 = wxString_in_helper(obj2); | |
10593 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10594 | temp3 = True; |
d14a1e28 RD |
10595 | } |
10596 | { | |
10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10598 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10599 | ||
10600 | wxPyEndAllowThreads(__tstate); | |
10601 | if (PyErr_Occurred()) SWIG_fail; | |
10602 | } | |
10603 | Py_INCREF(Py_None); resultobj = Py_None; | |
10604 | { | |
10605 | if (temp2) | |
10606 | delete arg2; | |
10607 | } | |
10608 | { | |
10609 | if (temp3) | |
10610 | delete arg3; | |
10611 | } | |
10612 | return resultobj; | |
10613 | fail: | |
10614 | { | |
10615 | if (temp2) | |
10616 | delete arg2; | |
10617 | } | |
10618 | { | |
10619 | if (temp3) | |
10620 | delete arg3; | |
10621 | } | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
2f4c0a16 | 10626 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10627 | PyObject *resultobj; |
10628 | wxImage *arg1 = (wxImage *) 0 ; | |
10629 | wxString *arg2 = 0 ; | |
10630 | int arg3 ; | |
423f194a | 10631 | bool temp2 = False ; |
d14a1e28 RD |
10632 | PyObject * obj0 = 0 ; |
10633 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10634 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10635 | char *kwnames[] = { |
10636 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10637 | }; | |
10638 | ||
8edf1c75 | 10639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10642 | { |
10643 | arg2 = wxString_in_helper(obj1); | |
10644 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10645 | temp2 = True; |
d14a1e28 | 10646 | } |
2f4c0a16 RD |
10647 | arg3 = (int) SWIG_AsInt(obj2); |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10649 | { |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10652 | ||
10653 | wxPyEndAllowThreads(__tstate); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | Py_INCREF(Py_None); resultobj = Py_None; | |
10657 | { | |
10658 | if (temp2) | |
10659 | delete arg2; | |
10660 | } | |
10661 | return resultobj; | |
10662 | fail: | |
10663 | { | |
10664 | if (temp2) | |
10665 | delete arg2; | |
10666 | } | |
10667 | return NULL; | |
10668 | } | |
10669 | ||
10670 | ||
2f4c0a16 | 10671 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10672 | PyObject *resultobj; |
10673 | wxImage *arg1 = (wxImage *) 0 ; | |
10674 | wxString *arg2 = 0 ; | |
10675 | wxString result; | |
423f194a | 10676 | bool temp2 = False ; |
d14a1e28 RD |
10677 | PyObject * obj0 = 0 ; |
10678 | PyObject * obj1 = 0 ; | |
10679 | char *kwnames[] = { | |
10680 | (char *) "self",(char *) "name", NULL | |
10681 | }; | |
10682 | ||
10683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10686 | { |
10687 | arg2 = wxString_in_helper(obj1); | |
10688 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10689 | temp2 = True; |
d14a1e28 RD |
10690 | } |
10691 | { | |
10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10693 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10694 | ||
10695 | wxPyEndAllowThreads(__tstate); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
10698 | { | |
10699 | #if wxUSE_UNICODE | |
10700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10701 | #else | |
10702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10703 | #endif | |
10704 | } | |
10705 | { | |
10706 | if (temp2) | |
10707 | delete arg2; | |
10708 | } | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | { | |
10712 | if (temp2) | |
10713 | delete arg2; | |
10714 | } | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
2f4c0a16 | 10719 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10720 | PyObject *resultobj; |
10721 | wxImage *arg1 = (wxImage *) 0 ; | |
10722 | wxString *arg2 = 0 ; | |
10723 | int result; | |
423f194a | 10724 | bool temp2 = False ; |
d14a1e28 RD |
10725 | PyObject * obj0 = 0 ; |
10726 | PyObject * obj1 = 0 ; | |
10727 | char *kwnames[] = { | |
10728 | (char *) "self",(char *) "name", NULL | |
10729 | }; | |
10730 | ||
10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10734 | { |
10735 | arg2 = wxString_in_helper(obj1); | |
10736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10737 | temp2 = True; |
d14a1e28 RD |
10738 | } |
10739 | { | |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | } | |
2f4c0a16 | 10746 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10747 | { |
10748 | if (temp2) | |
10749 | delete arg2; | |
10750 | } | |
10751 | return resultobj; | |
10752 | fail: | |
10753 | { | |
10754 | if (temp2) | |
10755 | delete arg2; | |
10756 | } | |
10757 | return NULL; | |
10758 | } | |
10759 | ||
10760 | ||
2f4c0a16 | 10761 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10762 | PyObject *resultobj; |
10763 | wxImage *arg1 = (wxImage *) 0 ; | |
10764 | wxString *arg2 = 0 ; | |
10765 | bool result; | |
423f194a | 10766 | bool temp2 = False ; |
d14a1e28 RD |
10767 | PyObject * obj0 = 0 ; |
10768 | PyObject * obj1 = 0 ; | |
10769 | char *kwnames[] = { | |
10770 | (char *) "self",(char *) "name", NULL | |
10771 | }; | |
10772 | ||
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10776 | { |
10777 | arg2 = wxString_in_helper(obj1); | |
10778 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10779 | temp2 = True; |
d14a1e28 RD |
10780 | } |
10781 | { | |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
02a34c4c | 10788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10789 | { |
10790 | if (temp2) | |
10791 | delete arg2; | |
10792 | } | |
10793 | return resultobj; | |
10794 | fail: | |
10795 | { | |
10796 | if (temp2) | |
10797 | delete arg2; | |
10798 | } | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
2f4c0a16 | 10803 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10804 | PyObject *resultobj; |
10805 | wxImage *arg1 = (wxImage *) 0 ; | |
10806 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10807 | unsigned long result; | |
10808 | PyObject * obj0 = 0 ; | |
10809 | PyObject * obj1 = 0 ; | |
10810 | char *kwnames[] = { | |
10811 | (char *) "self",(char *) "stopafter", NULL | |
10812 | }; | |
10813 | ||
10814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10817 | if (obj1) { |
2f4c0a16 RD |
10818 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10820 | } |
10821 | { | |
10822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10823 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10824 | ||
10825 | wxPyEndAllowThreads(__tstate); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | } | |
2f4c0a16 | 10828 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10829 | return resultobj; |
10830 | fail: | |
10831 | return NULL; | |
10832 | } | |
10833 | ||
10834 | ||
2f4c0a16 | 10835 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10836 | PyObject *resultobj; |
10837 | wxImage *arg1 = (wxImage *) 0 ; | |
10838 | wxImageHistogram *arg2 = 0 ; | |
10839 | unsigned long result; | |
10840 | PyObject * obj0 = 0 ; | |
10841 | PyObject * obj1 = 0 ; | |
10842 | char *kwnames[] = { | |
10843 | (char *) "self",(char *) "h", NULL | |
10844 | }; | |
10845 | ||
10846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
10850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10851 | SWIG_fail; | |
d14a1e28 | 10852 | if (arg2 == NULL) { |
2f4c0a16 RD |
10853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10854 | SWIG_fail; | |
d14a1e28 RD |
10855 | } |
10856 | { | |
10857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10858 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10859 | ||
10860 | wxPyEndAllowThreads(__tstate); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | } | |
2f4c0a16 | 10863 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10864 | return resultobj; |
10865 | fail: | |
10866 | return NULL; | |
10867 | } | |
10868 | ||
10869 | ||
2f4c0a16 | 10870 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10871 | PyObject *resultobj; |
10872 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10873 | PyObject * obj0 = 0 ; | |
10874 | char *kwnames[] = { | |
10875 | (char *) "handler", NULL | |
10876 | }; | |
10877 | ||
10878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10881 | { |
10882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10883 | wxImage::AddHandler(arg1); | |
10884 | ||
10885 | wxPyEndAllowThreads(__tstate); | |
10886 | if (PyErr_Occurred()) SWIG_fail; | |
10887 | } | |
10888 | Py_INCREF(Py_None); resultobj = Py_None; | |
10889 | return resultobj; | |
10890 | fail: | |
10891 | return NULL; | |
10892 | } | |
10893 | ||
10894 | ||
2f4c0a16 | 10895 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10896 | PyObject *resultobj; |
10897 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10898 | PyObject * obj0 = 0 ; | |
10899 | char *kwnames[] = { | |
10900 | (char *) "handler", NULL | |
10901 | }; | |
10902 | ||
10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10906 | { |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | wxImage::InsertHandler(arg1); | |
10909 | ||
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
10913 | Py_INCREF(Py_None); resultobj = Py_None; | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
2f4c0a16 | 10920 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10921 | PyObject *resultobj; |
10922 | wxString *arg1 = 0 ; | |
10923 | bool result; | |
423f194a | 10924 | bool temp1 = False ; |
d14a1e28 RD |
10925 | PyObject * obj0 = 0 ; |
10926 | char *kwnames[] = { | |
10927 | (char *) "name", NULL | |
10928 | }; | |
10929 | ||
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10931 | { | |
10932 | arg1 = wxString_in_helper(obj0); | |
10933 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10934 | temp1 = True; |
d14a1e28 RD |
10935 | } |
10936 | { | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10939 | ||
10940 | wxPyEndAllowThreads(__tstate); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
02a34c4c | 10943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10944 | { |
10945 | if (temp1) | |
10946 | delete arg1; | |
10947 | } | |
10948 | return resultobj; | |
10949 | fail: | |
10950 | { | |
10951 | if (temp1) | |
10952 | delete arg1; | |
10953 | } | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
2f4c0a16 | 10958 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10959 | PyObject *resultobj; |
10960 | wxString result; | |
10961 | char *kwnames[] = { | |
10962 | NULL | |
10963 | }; | |
10964 | ||
10965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10966 | { | |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10968 | result = wxImage::GetImageExtWildcard(); | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
10972 | } | |
10973 | { | |
10974 | #if wxUSE_UNICODE | |
10975 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10976 | #else | |
10977 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10978 | #endif | |
10979 | } | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
2f4c0a16 | 10986 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10987 | PyObject *resultobj; |
10988 | wxImage *arg1 = (wxImage *) 0 ; | |
10989 | wxBitmap result; | |
10990 | PyObject * obj0 = 0 ; | |
10991 | char *kwnames[] = { | |
10992 | (char *) "self", NULL | |
10993 | }; | |
10994 | ||
10995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10998 | { |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11000 | result = wxImage_ConvertToBitmap(arg1); | |
11001 | ||
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
11005 | { | |
11006 | wxBitmap * resultptr; | |
11007 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11009 | } |
11010 | return resultobj; | |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
2f4c0a16 | 11016 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11017 | PyObject *resultobj; |
11018 | wxImage *arg1 = (wxImage *) 0 ; | |
11019 | unsigned char arg2 ; | |
11020 | unsigned char arg3 ; | |
11021 | unsigned char arg4 ; | |
11022 | wxBitmap result; | |
11023 | PyObject * obj0 = 0 ; | |
11024 | PyObject * obj1 = 0 ; | |
11025 | PyObject * obj2 = 0 ; | |
11026 | PyObject * obj3 = 0 ; | |
11027 | char *kwnames[] = { | |
11028 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11029 | }; | |
11030 | ||
11031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11034 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
11038 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11039 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11040 | { |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | { | |
11048 | wxBitmap * resultptr; | |
11049 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11051 | } |
11052 | return resultobj; | |
11053 | fail: | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
2f4c0a16 | 11058 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11059 | PyObject *obj; |
11060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11061 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11062 | Py_INCREF(obj); | |
11063 | return Py_BuildValue((char *)""); | |
11064 | } | |
2f4c0a16 | 11065 | static PyObject *_wrap_InitAllImageHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11066 | PyObject *resultobj; |
11067 | char *kwnames[] = { | |
11068 | NULL | |
11069 | }; | |
11070 | ||
11071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11072 | { | |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11074 | wxInitAllImageHandlers(); | |
11075 | ||
11076 | wxPyEndAllowThreads(__tstate); | |
11077 | if (PyErr_Occurred()) SWIG_fail; | |
11078 | } | |
11079 | Py_INCREF(Py_None); resultobj = Py_None; | |
11080 | return resultobj; | |
11081 | fail: | |
11082 | return NULL; | |
11083 | } | |
11084 | ||
11085 | ||
8edf1c75 | 11086 | static int _wrap_NullImage_set(PyObject *) { |
d14a1e28 RD |
11087 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11088 | return 1; | |
11089 | } | |
11090 | ||
11091 | ||
11092 | static PyObject *_wrap_NullImage_get() { | |
11093 | PyObject *pyobj; | |
11094 | ||
2f4c0a16 | 11095 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11096 | return pyobj; |
11097 | } | |
11098 | ||
11099 | ||
8edf1c75 | 11100 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d14a1e28 RD |
11101 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11102 | return 1; | |
11103 | } | |
11104 | ||
11105 | ||
11106 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11107 | PyObject *pyobj; | |
11108 | ||
11109 | { | |
11110 | #if wxUSE_UNICODE | |
11111 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11112 | #else | |
11113 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11114 | #endif | |
11115 | } | |
11116 | return pyobj; | |
11117 | } | |
11118 | ||
11119 | ||
8edf1c75 | 11120 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d14a1e28 RD |
11121 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11122 | return 1; | |
11123 | } | |
11124 | ||
11125 | ||
11126 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11127 | PyObject *pyobj; | |
11128 | ||
11129 | { | |
11130 | #if wxUSE_UNICODE | |
11131 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11132 | #else | |
11133 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11134 | #endif | |
11135 | } | |
11136 | return pyobj; | |
11137 | } | |
11138 | ||
11139 | ||
8edf1c75 | 11140 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d14a1e28 RD |
11141 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11142 | return 1; | |
11143 | } | |
11144 | ||
11145 | ||
11146 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11147 | PyObject *pyobj; | |
11148 | ||
11149 | { | |
11150 | #if wxUSE_UNICODE | |
11151 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11152 | #else | |
11153 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11154 | #endif | |
11155 | } | |
11156 | return pyobj; | |
11157 | } | |
11158 | ||
11159 | ||
8edf1c75 | 11160 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d14a1e28 RD |
11161 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11162 | return 1; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11167 | PyObject *pyobj; | |
11168 | ||
11169 | { | |
11170 | #if wxUSE_UNICODE | |
11171 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11172 | #else | |
11173 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11174 | #endif | |
11175 | } | |
11176 | return pyobj; | |
11177 | } | |
11178 | ||
11179 | ||
8edf1c75 | 11180 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d14a1e28 RD |
11181 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11182 | return 1; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11187 | PyObject *pyobj; | |
11188 | ||
11189 | { | |
11190 | #if wxUSE_UNICODE | |
11191 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11192 | #else | |
11193 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11194 | #endif | |
11195 | } | |
11196 | return pyobj; | |
11197 | } | |
11198 | ||
11199 | ||
2f4c0a16 | 11200 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11201 | PyObject *resultobj; |
11202 | wxBMPHandler *result; | |
11203 | char *kwnames[] = { | |
11204 | NULL | |
11205 | }; | |
11206 | ||
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11208 | { | |
11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11210 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11211 | ||
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
2f4c0a16 | 11215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11216 | return resultobj; |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
2f4c0a16 | 11222 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11223 | PyObject *obj; |
11224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11225 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11226 | Py_INCREF(obj); | |
11227 | return Py_BuildValue((char *)""); | |
11228 | } | |
2f4c0a16 | 11229 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11230 | PyObject *resultobj; |
11231 | wxICOHandler *result; | |
11232 | char *kwnames[] = { | |
11233 | NULL | |
11234 | }; | |
11235 | ||
11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = (wxICOHandler *)new wxICOHandler(); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
2f4c0a16 | 11244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11245 | return resultobj; |
11246 | fail: | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
2f4c0a16 | 11251 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11252 | PyObject *obj; |
11253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11254 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11255 | Py_INCREF(obj); | |
11256 | return Py_BuildValue((char *)""); | |
11257 | } | |
2f4c0a16 | 11258 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11259 | PyObject *resultobj; |
11260 | wxCURHandler *result; | |
11261 | char *kwnames[] = { | |
11262 | NULL | |
11263 | }; | |
11264 | ||
11265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11266 | { | |
11267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11268 | result = (wxCURHandler *)new wxCURHandler(); | |
11269 | ||
11270 | wxPyEndAllowThreads(__tstate); | |
11271 | if (PyErr_Occurred()) SWIG_fail; | |
11272 | } | |
2f4c0a16 | 11273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11274 | return resultobj; |
11275 | fail: | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
2f4c0a16 | 11280 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11281 | PyObject *obj; |
11282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11283 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11284 | Py_INCREF(obj); | |
11285 | return Py_BuildValue((char *)""); | |
11286 | } | |
2f4c0a16 | 11287 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11288 | PyObject *resultobj; |
11289 | wxANIHandler *result; | |
11290 | char *kwnames[] = { | |
11291 | NULL | |
11292 | }; | |
11293 | ||
11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11295 | { | |
11296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11297 | result = (wxANIHandler *)new wxANIHandler(); | |
11298 | ||
11299 | wxPyEndAllowThreads(__tstate); | |
11300 | if (PyErr_Occurred()) SWIG_fail; | |
11301 | } | |
2f4c0a16 | 11302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11303 | return resultobj; |
11304 | fail: | |
11305 | return NULL; | |
11306 | } | |
11307 | ||
11308 | ||
2f4c0a16 | 11309 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11310 | PyObject *obj; |
11311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11312 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11313 | Py_INCREF(obj); | |
11314 | return Py_BuildValue((char *)""); | |
11315 | } | |
2f4c0a16 | 11316 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11317 | PyObject *resultobj; |
11318 | wxPNGHandler *result; | |
11319 | char *kwnames[] = { | |
11320 | NULL | |
11321 | }; | |
11322 | ||
11323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11324 | { | |
11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11326 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11327 | ||
11328 | wxPyEndAllowThreads(__tstate); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | } | |
2f4c0a16 | 11331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11332 | return resultobj; |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
2f4c0a16 | 11338 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11339 | PyObject *obj; |
11340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11341 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11342 | Py_INCREF(obj); | |
11343 | return Py_BuildValue((char *)""); | |
11344 | } | |
2f4c0a16 | 11345 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11346 | PyObject *resultobj; |
11347 | wxGIFHandler *result; | |
11348 | char *kwnames[] = { | |
11349 | NULL | |
11350 | }; | |
11351 | ||
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
2f4c0a16 | 11360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11361 | return resultobj; |
11362 | fail: | |
11363 | return NULL; | |
11364 | } | |
11365 | ||
11366 | ||
2f4c0a16 | 11367 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11368 | PyObject *obj; |
11369 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11370 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11371 | Py_INCREF(obj); | |
11372 | return Py_BuildValue((char *)""); | |
11373 | } | |
2f4c0a16 | 11374 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11375 | PyObject *resultobj; |
11376 | wxPCXHandler *result; | |
11377 | char *kwnames[] = { | |
11378 | NULL | |
11379 | }; | |
11380 | ||
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11382 | { | |
11383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11384 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11385 | ||
11386 | wxPyEndAllowThreads(__tstate); | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | } | |
2f4c0a16 | 11389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11390 | return resultobj; |
11391 | fail: | |
11392 | return NULL; | |
11393 | } | |
11394 | ||
11395 | ||
2f4c0a16 | 11396 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11397 | PyObject *obj; |
11398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11399 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11400 | Py_INCREF(obj); | |
11401 | return Py_BuildValue((char *)""); | |
11402 | } | |
2f4c0a16 | 11403 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11404 | PyObject *resultobj; |
11405 | wxJPEGHandler *result; | |
11406 | char *kwnames[] = { | |
11407 | NULL | |
11408 | }; | |
11409 | ||
11410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11411 | { | |
11412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11413 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11414 | ||
11415 | wxPyEndAllowThreads(__tstate); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
2f4c0a16 | 11418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11419 | return resultobj; |
11420 | fail: | |
11421 | return NULL; | |
11422 | } | |
11423 | ||
11424 | ||
2f4c0a16 | 11425 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11426 | PyObject *obj; |
11427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11428 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11429 | Py_INCREF(obj); | |
11430 | return Py_BuildValue((char *)""); | |
11431 | } | |
2f4c0a16 | 11432 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11433 | PyObject *resultobj; |
11434 | wxPNMHandler *result; | |
11435 | char *kwnames[] = { | |
11436 | NULL | |
11437 | }; | |
11438 | ||
11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
2f4c0a16 | 11447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11448 | return resultobj; |
11449 | fail: | |
11450 | return NULL; | |
11451 | } | |
11452 | ||
11453 | ||
2f4c0a16 | 11454 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11455 | PyObject *obj; |
11456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11457 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11458 | Py_INCREF(obj); | |
11459 | return Py_BuildValue((char *)""); | |
11460 | } | |
2f4c0a16 | 11461 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11462 | PyObject *resultobj; |
11463 | wxXPMHandler *result; | |
11464 | char *kwnames[] = { | |
11465 | NULL | |
11466 | }; | |
11467 | ||
11468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11469 | { | |
11470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11471 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11472 | ||
11473 | wxPyEndAllowThreads(__tstate); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
2f4c0a16 | 11476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11477 | return resultobj; |
11478 | fail: | |
11479 | return NULL; | |
11480 | } | |
11481 | ||
11482 | ||
2f4c0a16 | 11483 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11484 | PyObject *obj; |
11485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11486 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11487 | Py_INCREF(obj); | |
11488 | return Py_BuildValue((char *)""); | |
11489 | } | |
2f4c0a16 | 11490 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11491 | PyObject *resultobj; |
11492 | wxTIFFHandler *result; | |
11493 | char *kwnames[] = { | |
11494 | NULL | |
11495 | }; | |
11496 | ||
11497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
2f4c0a16 | 11505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11506 | return resultobj; |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
2f4c0a16 | 11512 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11513 | PyObject *obj; |
11514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11515 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11516 | Py_INCREF(obj); | |
11517 | return Py_BuildValue((char *)""); | |
11518 | } | |
2f4c0a16 | 11519 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11520 | PyObject *resultobj; |
11521 | wxEvtHandler *result; | |
11522 | char *kwnames[] = { | |
11523 | NULL | |
11524 | }; | |
11525 | ||
11526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | { | |
11535 | resultobj = wxPyMake_wxObject(result); | |
11536 | } | |
11537 | return resultobj; | |
11538 | fail: | |
11539 | return NULL; | |
11540 | } | |
11541 | ||
11542 | ||
2f4c0a16 | 11543 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11544 | PyObject *resultobj; |
11545 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11546 | wxEvtHandler *result; | |
11547 | PyObject * obj0 = 0 ; | |
11548 | char *kwnames[] = { | |
11549 | (char *) "self", NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11555 | { |
11556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11557 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11558 | ||
11559 | wxPyEndAllowThreads(__tstate); | |
11560 | if (PyErr_Occurred()) SWIG_fail; | |
11561 | } | |
11562 | { | |
11563 | resultobj = wxPyMake_wxObject(result); | |
11564 | } | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | return NULL; | |
11568 | } | |
11569 | ||
11570 | ||
2f4c0a16 | 11571 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11572 | PyObject *resultobj; |
11573 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11574 | wxEvtHandler *result; | |
11575 | PyObject * obj0 = 0 ; | |
11576 | char *kwnames[] = { | |
11577 | (char *) "self", NULL | |
11578 | }; | |
11579 | ||
11580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11583 | { |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | { | |
11591 | resultobj = wxPyMake_wxObject(result); | |
11592 | } | |
11593 | return resultobj; | |
11594 | fail: | |
11595 | return NULL; | |
11596 | } | |
11597 | ||
11598 | ||
2f4c0a16 | 11599 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11600 | PyObject *resultobj; |
11601 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11602 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11603 | PyObject * obj0 = 0 ; | |
11604 | PyObject * obj1 = 0 ; | |
11605 | char *kwnames[] = { | |
11606 | (char *) "self",(char *) "handler", NULL | |
11607 | }; | |
11608 | ||
11609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11614 | { |
11615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11616 | (arg1)->SetNextHandler(arg2); | |
11617 | ||
11618 | wxPyEndAllowThreads(__tstate); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
11621 | Py_INCREF(Py_None); resultobj = Py_None; | |
11622 | return resultobj; | |
11623 | fail: | |
11624 | return NULL; | |
11625 | } | |
11626 | ||
11627 | ||
2f4c0a16 | 11628 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11629 | PyObject *resultobj; |
11630 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11631 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11632 | PyObject * obj0 = 0 ; | |
11633 | PyObject * obj1 = 0 ; | |
11634 | char *kwnames[] = { | |
11635 | (char *) "self",(char *) "handler", NULL | |
11636 | }; | |
11637 | ||
11638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11643 | { |
11644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11645 | (arg1)->SetPreviousHandler(arg2); | |
11646 | ||
11647 | wxPyEndAllowThreads(__tstate); | |
11648 | if (PyErr_Occurred()) SWIG_fail; | |
11649 | } | |
11650 | Py_INCREF(Py_None); resultobj = Py_None; | |
11651 | return resultobj; | |
11652 | fail: | |
11653 | return NULL; | |
11654 | } | |
11655 | ||
11656 | ||
2f4c0a16 | 11657 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11658 | PyObject *resultobj; |
11659 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11660 | bool result; | |
11661 | PyObject * obj0 = 0 ; | |
11662 | char *kwnames[] = { | |
11663 | (char *) "self", NULL | |
11664 | }; | |
11665 | ||
11666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11669 | { |
11670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11671 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11672 | ||
11673 | wxPyEndAllowThreads(__tstate); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
02a34c4c | 11676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11677 | return resultobj; |
11678 | fail: | |
11679 | return NULL; | |
11680 | } | |
11681 | ||
11682 | ||
2f4c0a16 | 11683 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11684 | PyObject *resultobj; |
11685 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11686 | bool arg2 ; | |
11687 | PyObject * obj0 = 0 ; | |
11688 | PyObject * obj1 = 0 ; | |
11689 | char *kwnames[] = { | |
11690 | (char *) "self",(char *) "enabled", NULL | |
11691 | }; | |
11692 | ||
11693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11696 | arg2 = (bool) SWIG_AsBool(obj1); | |
11697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11698 | { |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11701 | ||
11702 | wxPyEndAllowThreads(__tstate); | |
11703 | if (PyErr_Occurred()) SWIG_fail; | |
11704 | } | |
11705 | Py_INCREF(Py_None); resultobj = Py_None; | |
11706 | return resultobj; | |
11707 | fail: | |
11708 | return NULL; | |
11709 | } | |
11710 | ||
11711 | ||
2f4c0a16 | 11712 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11713 | PyObject *resultobj; |
11714 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11715 | wxEvent *arg2 = 0 ; | |
11716 | bool result; | |
11717 | PyObject * obj0 = 0 ; | |
11718 | PyObject * obj1 = 0 ; | |
11719 | char *kwnames[] = { | |
11720 | (char *) "self",(char *) "event", NULL | |
11721 | }; | |
11722 | ||
11723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11728 | SWIG_fail; | |
d14a1e28 | 11729 | if (arg2 == NULL) { |
2f4c0a16 RD |
11730 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11731 | SWIG_fail; | |
d14a1e28 RD |
11732 | } |
11733 | { | |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | } | |
02a34c4c | 11740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11741 | return resultobj; |
11742 | fail: | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
2f4c0a16 | 11747 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11748 | PyObject *resultobj; |
11749 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11750 | wxEvent *arg2 = 0 ; | |
11751 | PyObject * obj0 = 0 ; | |
11752 | PyObject * obj1 = 0 ; | |
11753 | char *kwnames[] = { | |
11754 | (char *) "self",(char *) "event", NULL | |
11755 | }; | |
11756 | ||
11757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11761 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11762 | SWIG_fail; | |
d14a1e28 | 11763 | if (arg2 == NULL) { |
2f4c0a16 RD |
11764 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11765 | SWIG_fail; | |
d14a1e28 RD |
11766 | } |
11767 | { | |
11768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11769 | (arg1)->AddPendingEvent(*arg2); | |
11770 | ||
11771 | wxPyEndAllowThreads(__tstate); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
11774 | Py_INCREF(Py_None); resultobj = Py_None; | |
11775 | return resultobj; | |
11776 | fail: | |
11777 | return NULL; | |
11778 | } | |
11779 | ||
11780 | ||
2f4c0a16 | 11781 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11782 | PyObject *resultobj; |
11783 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11784 | PyObject * obj0 = 0 ; | |
11785 | char *kwnames[] = { | |
11786 | (char *) "self", NULL | |
11787 | }; | |
11788 | ||
11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11792 | { |
11793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11794 | (arg1)->ProcessPendingEvents(); | |
11795 | ||
11796 | wxPyEndAllowThreads(__tstate); | |
11797 | if (PyErr_Occurred()) SWIG_fail; | |
11798 | } | |
11799 | Py_INCREF(Py_None); resultobj = Py_None; | |
11800 | return resultobj; | |
11801 | fail: | |
11802 | return NULL; | |
11803 | } | |
11804 | ||
11805 | ||
2f4c0a16 | 11806 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11807 | PyObject *resultobj; |
11808 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11809 | int arg2 ; | |
11810 | int arg3 ; | |
11811 | int arg4 ; | |
11812 | PyObject *arg5 = (PyObject *) 0 ; | |
11813 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11814 | PyObject * obj1 = 0 ; |
11815 | PyObject * obj2 = 0 ; | |
11816 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11817 | PyObject * obj4 = 0 ; |
11818 | char *kwnames[] = { | |
11819 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11820 | }; | |
11821 | ||
8edf1c75 | 11822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11825 | arg2 = (int) SWIG_AsInt(obj1); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | arg3 = (int) SWIG_AsInt(obj2); | |
11828 | if (PyErr_Occurred()) SWIG_fail; | |
11829 | arg4 = (int) SWIG_AsInt(obj3); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11831 | arg5 = obj4; |
11832 | { | |
11833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11834 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11835 | ||
11836 | wxPyEndAllowThreads(__tstate); | |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
11838 | } | |
11839 | Py_INCREF(Py_None); resultobj = Py_None; | |
11840 | return resultobj; | |
11841 | fail: | |
11842 | return NULL; | |
11843 | } | |
11844 | ||
11845 | ||
2f4c0a16 | 11846 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11847 | PyObject *resultobj; |
11848 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11849 | int arg2 ; | |
11850 | int arg3 = (int) -1 ; | |
11851 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11852 | bool result; | |
11853 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11854 | PyObject * obj1 = 0 ; |
11855 | PyObject * obj2 = 0 ; | |
11856 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11857 | char *kwnames[] = { |
11858 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11859 | }; | |
11860 | ||
8edf1c75 | 11861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11864 | arg2 = (int) SWIG_AsInt(obj1); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11866 | if (obj2) { |
2f4c0a16 RD |
11867 | arg3 = (int) SWIG_AsInt(obj2); |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11869 | } |
11870 | if (obj3) { | |
2f4c0a16 RD |
11871 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11873 | } |
d14a1e28 RD |
11874 | { |
11875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11876 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11877 | ||
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
02a34c4c | 11881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11882 | return resultobj; |
11883 | fail: | |
11884 | return NULL; | |
11885 | } | |
11886 | ||
11887 | ||
2f4c0a16 | 11888 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11889 | PyObject *resultobj; |
11890 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11891 | PyObject *arg2 = (PyObject *) 0 ; | |
11892 | PyObject * obj0 = 0 ; | |
11893 | PyObject * obj1 = 0 ; | |
11894 | char *kwnames[] = { | |
11895 | (char *) "self",(char *) "_self", NULL | |
11896 | }; | |
11897 | ||
11898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11901 | arg2 = obj1; |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | Py_INCREF(Py_None); resultobj = Py_None; | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
2f4c0a16 | 11916 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11917 | PyObject *obj; |
11918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11919 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11920 | Py_INCREF(obj); | |
11921 | return Py_BuildValue((char *)""); | |
11922 | } | |
2f4c0a16 | 11923 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11924 | PyObject *resultobj; |
11925 | wxEventType result; | |
11926 | char *kwnames[] = { | |
11927 | NULL | |
11928 | }; | |
11929 | ||
11930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | result = (wxEventType)wxNewEventType(); | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
2f4c0a16 | 11938 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11939 | return resultobj; |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
2f4c0a16 | 11945 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11946 | PyObject *resultobj; |
11947 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11948 | PyObject * obj0 = 0 ; | |
11949 | char *kwnames[] = { | |
11950 | (char *) "self", NULL | |
11951 | }; | |
11952 | ||
11953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
11955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11956 | { |
11957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11958 | delete arg1; | |
11959 | ||
11960 | wxPyEndAllowThreads(__tstate); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | Py_INCREF(Py_None); resultobj = Py_None; | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
2f4c0a16 | 11970 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11971 | PyObject *resultobj; |
11972 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11973 | wxEventType arg2 ; | |
11974 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11976 | char *kwnames[] = { |
11977 | (char *) "self",(char *) "typ", NULL | |
11978 | }; | |
11979 | ||
8edf1c75 | 11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
11982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11983 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
11984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11985 | { |
11986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11987 | (arg1)->SetEventType(arg2); | |
11988 | ||
11989 | wxPyEndAllowThreads(__tstate); | |
11990 | if (PyErr_Occurred()) SWIG_fail; | |
11991 | } | |
11992 | Py_INCREF(Py_None); resultobj = Py_None; | |
11993 | return resultobj; | |
11994 | fail: | |
11995 | return NULL; | |
11996 | } | |
11997 | ||
11998 | ||
2f4c0a16 | 11999 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12000 | PyObject *resultobj; |
12001 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12002 | wxEventType result; | |
12003 | PyObject * obj0 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12011 | { |
12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12013 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12014 | ||
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
2f4c0a16 | 12018 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12019 | return resultobj; |
12020 | fail: | |
12021 | return NULL; | |
12022 | } | |
12023 | ||
12024 | ||
2f4c0a16 | 12025 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12026 | PyObject *resultobj; |
12027 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12028 | wxObject *result; | |
12029 | PyObject * obj0 = 0 ; | |
12030 | char *kwnames[] = { | |
12031 | (char *) "self", NULL | |
12032 | }; | |
12033 | ||
12034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12037 | { |
12038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12039 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12040 | ||
12041 | wxPyEndAllowThreads(__tstate); | |
12042 | if (PyErr_Occurred()) SWIG_fail; | |
12043 | } | |
12044 | { | |
12045 | resultobj = wxPyMake_wxObject(result); | |
12046 | } | |
12047 | return resultobj; | |
12048 | fail: | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
2f4c0a16 | 12053 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12054 | PyObject *resultobj; |
12055 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12056 | wxObject *arg2 = (wxObject *) 0 ; | |
12057 | PyObject * obj0 = 0 ; | |
12058 | PyObject * obj1 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self",(char *) "obj", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12068 | { |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | (arg1)->SetEventObject(arg2); | |
12071 | ||
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | Py_INCREF(Py_None); resultobj = Py_None; | |
12076 | return resultobj; | |
12077 | fail: | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
2f4c0a16 | 12082 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12083 | PyObject *resultobj; |
12084 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12085 | long result; | |
12086 | PyObject * obj0 = 0 ; | |
12087 | char *kwnames[] = { | |
12088 | (char *) "self", NULL | |
12089 | }; | |
12090 | ||
12091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12094 | { |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12096 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12097 | ||
12098 | wxPyEndAllowThreads(__tstate); | |
12099 | if (PyErr_Occurred()) SWIG_fail; | |
12100 | } | |
2f4c0a16 | 12101 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12102 | return resultobj; |
12103 | fail: | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
2f4c0a16 | 12108 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12109 | PyObject *resultobj; |
12110 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12111 | long arg2 = (long) 0 ; | |
12112 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12114 | char *kwnames[] = { |
12115 | (char *) "self",(char *) "ts", NULL | |
12116 | }; | |
12117 | ||
8edf1c75 | 12118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 12121 | if (obj1) { |
2f4c0a16 RD |
12122 | arg2 = (long) SWIG_AsLong(obj1); |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12124 | } |
d14a1e28 RD |
12125 | { |
12126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12127 | (arg1)->SetTimestamp(arg2); | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
12132 | Py_INCREF(Py_None); resultobj = Py_None; | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
2f4c0a16 | 12139 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12140 | PyObject *resultobj; |
12141 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12142 | int result; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12151 | { |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
2f4c0a16 | 12158 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12159 | return resultobj; |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
2f4c0a16 | 12165 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12166 | PyObject *resultobj; |
12167 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12168 | int arg2 ; | |
12169 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12171 | char *kwnames[] = { |
12172 | (char *) "self",(char *) "Id", NULL | |
12173 | }; | |
12174 | ||
8edf1c75 | 12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12178 | arg2 = (int) SWIG_AsInt(obj1); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12180 | { |
12181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12182 | (arg1)->SetId(arg2); | |
12183 | ||
12184 | wxPyEndAllowThreads(__tstate); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | } | |
12187 | Py_INCREF(Py_None); resultobj = Py_None; | |
12188 | return resultobj; | |
12189 | fail: | |
12190 | return NULL; | |
12191 | } | |
12192 | ||
12193 | ||
2f4c0a16 | 12194 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12195 | PyObject *resultobj; |
12196 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12197 | bool result; | |
12198 | PyObject * obj0 = 0 ; | |
12199 | char *kwnames[] = { | |
12200 | (char *) "self", NULL | |
12201 | }; | |
12202 | ||
12203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12206 | { |
12207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12208 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12209 | ||
12210 | wxPyEndAllowThreads(__tstate); | |
12211 | if (PyErr_Occurred()) SWIG_fail; | |
12212 | } | |
02a34c4c | 12213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12214 | return resultobj; |
12215 | fail: | |
12216 | return NULL; | |
12217 | } | |
12218 | ||
12219 | ||
2f4c0a16 | 12220 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12221 | PyObject *resultobj; |
12222 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 12223 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12224 | PyObject * obj0 = 0 ; |
12225 | PyObject * obj1 = 0 ; | |
12226 | char *kwnames[] = { | |
12227 | (char *) "self",(char *) "skip", NULL | |
12228 | }; | |
12229 | ||
12230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12233 | if (obj1) { |
2f4c0a16 RD |
12234 | arg2 = (bool) SWIG_AsBool(obj1); |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12236 | } |
12237 | { | |
12238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12239 | (arg1)->Skip(arg2); | |
12240 | ||
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
12244 | Py_INCREF(Py_None); resultobj = Py_None; | |
12245 | return resultobj; | |
12246 | fail: | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
2f4c0a16 | 12251 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12252 | PyObject *resultobj; |
12253 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12254 | bool result; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12263 | { |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
02a34c4c | 12270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12271 | return resultobj; |
12272 | fail: | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
2f4c0a16 | 12277 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12278 | PyObject *resultobj; |
12279 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12280 | bool result; | |
12281 | PyObject * obj0 = 0 ; | |
12282 | char *kwnames[] = { | |
12283 | (char *) "self", NULL | |
12284 | }; | |
12285 | ||
12286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12289 | { |
12290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12291 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12292 | ||
12293 | wxPyEndAllowThreads(__tstate); | |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
12295 | } | |
02a34c4c | 12296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12297 | return resultobj; |
12298 | fail: | |
12299 | return NULL; | |
12300 | } | |
12301 | ||
12302 | ||
2f4c0a16 | 12303 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12304 | PyObject *resultobj; |
12305 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12306 | int result; | |
12307 | PyObject * obj0 = 0 ; | |
12308 | char *kwnames[] = { | |
12309 | (char *) "self", NULL | |
12310 | }; | |
12311 | ||
12312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12315 | { |
12316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12317 | result = (int)(arg1)->StopPropagation(); | |
12318 | ||
12319 | wxPyEndAllowThreads(__tstate); | |
12320 | if (PyErr_Occurred()) SWIG_fail; | |
12321 | } | |
2f4c0a16 | 12322 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12323 | return resultobj; |
12324 | fail: | |
12325 | return NULL; | |
12326 | } | |
12327 | ||
12328 | ||
2f4c0a16 | 12329 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12330 | PyObject *resultobj; |
12331 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12332 | int arg2 ; | |
12333 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12334 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12335 | char *kwnames[] = { |
12336 | (char *) "self",(char *) "propagationLevel", NULL | |
12337 | }; | |
12338 | ||
8edf1c75 | 12339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12342 | arg2 = (int) SWIG_AsInt(obj1); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12344 | { |
12345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12346 | (arg1)->ResumePropagation(arg2); | |
12347 | ||
12348 | wxPyEndAllowThreads(__tstate); | |
12349 | if (PyErr_Occurred()) SWIG_fail; | |
12350 | } | |
12351 | Py_INCREF(Py_None); resultobj = Py_None; | |
12352 | return resultobj; | |
12353 | fail: | |
12354 | return NULL; | |
12355 | } | |
12356 | ||
12357 | ||
2f4c0a16 | 12358 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12359 | PyObject *resultobj; |
12360 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12361 | wxEvent *result; | |
12362 | PyObject * obj0 = 0 ; | |
12363 | char *kwnames[] = { | |
12364 | (char *) "self", NULL | |
12365 | }; | |
12366 | ||
12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12370 | { |
12371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12372 | result = (wxEvent *)(arg1)->Clone(); | |
12373 | ||
12374 | wxPyEndAllowThreads(__tstate); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
2f4c0a16 | 12377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12378 | return resultobj; |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
2f4c0a16 | 12384 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12385 | PyObject *obj; |
12386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12387 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12388 | Py_INCREF(obj); | |
12389 | return Py_BuildValue((char *)""); | |
12390 | } | |
2f4c0a16 | 12391 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12392 | PyObject *resultobj; |
12393 | wxEvent *arg1 = 0 ; | |
12394 | wxPropagationDisabler *result; | |
12395 | PyObject * obj0 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "event", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12403 | SWIG_fail; | |
d14a1e28 | 12404 | if (arg1 == NULL) { |
2f4c0a16 RD |
12405 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12406 | SWIG_fail; | |
d14a1e28 RD |
12407 | } |
12408 | { | |
12409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12410 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12411 | ||
12412 | wxPyEndAllowThreads(__tstate); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
2f4c0a16 | 12415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12416 | return resultobj; |
12417 | fail: | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
2f4c0a16 | 12422 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12423 | PyObject *resultobj; |
12424 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12425 | PyObject * obj0 = 0 ; | |
12426 | char *kwnames[] = { | |
12427 | (char *) "self", NULL | |
12428 | }; | |
12429 | ||
12430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12433 | { |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12435 | delete arg1; | |
12436 | ||
12437 | wxPyEndAllowThreads(__tstate); | |
12438 | if (PyErr_Occurred()) SWIG_fail; | |
12439 | } | |
12440 | Py_INCREF(Py_None); resultobj = Py_None; | |
12441 | return resultobj; | |
12442 | fail: | |
12443 | return NULL; | |
12444 | } | |
12445 | ||
12446 | ||
2f4c0a16 | 12447 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12448 | PyObject *obj; |
12449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12450 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12451 | Py_INCREF(obj); | |
12452 | return Py_BuildValue((char *)""); | |
12453 | } | |
2f4c0a16 | 12454 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12455 | PyObject *resultobj; |
12456 | wxEvent *arg1 = 0 ; | |
12457 | wxPropagateOnce *result; | |
12458 | PyObject * obj0 = 0 ; | |
12459 | char *kwnames[] = { | |
12460 | (char *) "event", NULL | |
12461 | }; | |
12462 | ||
12463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12466 | SWIG_fail; | |
d14a1e28 | 12467 | if (arg1 == NULL) { |
2f4c0a16 RD |
12468 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12469 | SWIG_fail; | |
d14a1e28 RD |
12470 | } |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
2f4c0a16 | 12478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12479 | return resultobj; |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
2f4c0a16 | 12485 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12486 | PyObject *resultobj; |
12487 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12488 | PyObject * obj0 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12496 | { |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | delete arg1; | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | Py_INCREF(Py_None); resultobj = Py_None; | |
12504 | return resultobj; | |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
2f4c0a16 | 12510 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12511 | PyObject *obj; |
12512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12513 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12514 | Py_INCREF(obj); | |
12515 | return Py_BuildValue((char *)""); | |
12516 | } | |
2f4c0a16 | 12517 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12518 | PyObject *resultobj; |
12519 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12520 | int arg2 = (int) 0 ; | |
12521 | wxCommandEvent *result; | |
8edf1c75 RD |
12522 | PyObject * obj0 = 0 ; |
12523 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12524 | char *kwnames[] = { |
12525 | (char *) "commandType",(char *) "winid", NULL | |
12526 | }; | |
12527 | ||
8edf1c75 RD |
12528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12529 | if (obj0) { | |
2f4c0a16 RD |
12530 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12532 | } |
12533 | if (obj1) { | |
2f4c0a16 RD |
12534 | arg2 = (int) SWIG_AsInt(obj1); |
12535 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12536 | } |
d14a1e28 RD |
12537 | { |
12538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12539 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12540 | ||
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
2f4c0a16 | 12544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12545 | return resultobj; |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
2f4c0a16 | 12551 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12552 | PyObject *resultobj; |
12553 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12554 | int result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12563 | { |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
2f4c0a16 | 12570 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12571 | return resultobj; |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
2f4c0a16 | 12577 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12578 | PyObject *resultobj; |
12579 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12580 | wxString *arg2 = 0 ; | |
423f194a | 12581 | bool temp2 = False ; |
d14a1e28 RD |
12582 | PyObject * obj0 = 0 ; |
12583 | PyObject * obj1 = 0 ; | |
12584 | char *kwnames[] = { | |
12585 | (char *) "self",(char *) "s", NULL | |
12586 | }; | |
12587 | ||
12588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12591 | { |
12592 | arg2 = wxString_in_helper(obj1); | |
12593 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12594 | temp2 = True; |
d14a1e28 RD |
12595 | } |
12596 | { | |
12597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12598 | (arg1)->SetString((wxString const &)*arg2); | |
12599 | ||
12600 | wxPyEndAllowThreads(__tstate); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | } | |
12603 | Py_INCREF(Py_None); resultobj = Py_None; | |
12604 | { | |
12605 | if (temp2) | |
12606 | delete arg2; | |
12607 | } | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | { | |
12611 | if (temp2) | |
12612 | delete arg2; | |
12613 | } | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
2f4c0a16 | 12618 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12619 | PyObject *resultobj; |
12620 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12621 | wxString result; | |
12622 | PyObject * obj0 = 0 ; | |
12623 | char *kwnames[] = { | |
12624 | (char *) "self", NULL | |
12625 | }; | |
12626 | ||
12627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12630 | { |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | { | |
12638 | #if wxUSE_UNICODE | |
12639 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12640 | #else | |
12641 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12642 | #endif | |
12643 | } | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
2f4c0a16 | 12650 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12651 | PyObject *resultobj; |
12652 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12653 | bool result; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | char *kwnames[] = { | |
12656 | (char *) "self", NULL | |
12657 | }; | |
12658 | ||
12659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12662 | { |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12665 | ||
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
02a34c4c | 12669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12670 | return resultobj; |
12671 | fail: | |
12672 | return NULL; | |
12673 | } | |
12674 | ||
12675 | ||
2f4c0a16 | 12676 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12677 | PyObject *resultobj; |
12678 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12679 | bool result; | |
12680 | PyObject * obj0 = 0 ; | |
12681 | char *kwnames[] = { | |
12682 | (char *) "self", NULL | |
12683 | }; | |
12684 | ||
12685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12688 | { |
12689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12690 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12691 | ||
12692 | wxPyEndAllowThreads(__tstate); | |
12693 | if (PyErr_Occurred()) SWIG_fail; | |
12694 | } | |
02a34c4c | 12695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12696 | return resultobj; |
12697 | fail: | |
12698 | return NULL; | |
12699 | } | |
12700 | ||
12701 | ||
2f4c0a16 | 12702 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12703 | PyObject *resultobj; |
12704 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12705 | long arg2 ; | |
12706 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12707 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12708 | char *kwnames[] = { |
12709 | (char *) "self",(char *) "extraLong", NULL | |
12710 | }; | |
12711 | ||
8edf1c75 | 12712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12715 | arg2 = (long) SWIG_AsLong(obj1); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12717 | { |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | (arg1)->SetExtraLong(arg2); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | Py_INCREF(Py_None); resultobj = Py_None; | |
12725 | return resultobj; | |
12726 | fail: | |
12727 | return NULL; | |
12728 | } | |
12729 | ||
12730 | ||
2f4c0a16 | 12731 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12732 | PyObject *resultobj; |
12733 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12734 | long result; | |
12735 | PyObject * obj0 = 0 ; | |
12736 | char *kwnames[] = { | |
12737 | (char *) "self", NULL | |
12738 | }; | |
12739 | ||
12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12743 | { |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
2f4c0a16 | 12750 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12751 | return resultobj; |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
2f4c0a16 | 12757 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12758 | PyObject *resultobj; |
12759 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12760 | int arg2 ; | |
12761 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12763 | char *kwnames[] = { |
12764 | (char *) "self",(char *) "i", NULL | |
12765 | }; | |
12766 | ||
8edf1c75 | 12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12770 | arg2 = (int) SWIG_AsInt(obj1); | |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12772 | { |
12773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12774 | (arg1)->SetInt(arg2); | |
12775 | ||
12776 | wxPyEndAllowThreads(__tstate); | |
12777 | if (PyErr_Occurred()) SWIG_fail; | |
12778 | } | |
12779 | Py_INCREF(Py_None); resultobj = Py_None; | |
12780 | return resultobj; | |
12781 | fail: | |
12782 | return NULL; | |
12783 | } | |
12784 | ||
12785 | ||
2f4c0a16 | 12786 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12787 | PyObject *resultobj; |
12788 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12789 | long result; | |
12790 | PyObject * obj0 = 0 ; | |
12791 | char *kwnames[] = { | |
12792 | (char *) "self", NULL | |
12793 | }; | |
12794 | ||
12795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12798 | { |
12799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12800 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12801 | ||
12802 | wxPyEndAllowThreads(__tstate); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | } | |
2f4c0a16 | 12805 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12806 | return resultobj; |
12807 | fail: | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
2f4c0a16 | 12812 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12813 | PyObject *resultobj; |
12814 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12815 | wxEvent *result; | |
12816 | PyObject * obj0 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "self", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12824 | { |
12825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12826 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12827 | ||
12828 | wxPyEndAllowThreads(__tstate); | |
12829 | if (PyErr_Occurred()) SWIG_fail; | |
12830 | } | |
2f4c0a16 | 12831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12832 | return resultobj; |
12833 | fail: | |
12834 | return NULL; | |
12835 | } | |
12836 | ||
12837 | ||
2f4c0a16 | 12838 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12839 | PyObject *obj; |
12840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12841 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12842 | Py_INCREF(obj); | |
12843 | return Py_BuildValue((char *)""); | |
12844 | } | |
2f4c0a16 | 12845 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12846 | PyObject *resultobj; |
12847 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12848 | int arg2 = (int) 0 ; | |
12849 | wxNotifyEvent *result; | |
8edf1c75 RD |
12850 | PyObject * obj0 = 0 ; |
12851 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12852 | char *kwnames[] = { |
12853 | (char *) "commandType",(char *) "winid", NULL | |
12854 | }; | |
12855 | ||
8edf1c75 RD |
12856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12857 | if (obj0) { | |
2f4c0a16 RD |
12858 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12859 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12860 | } |
12861 | if (obj1) { | |
2f4c0a16 RD |
12862 | arg2 = (int) SWIG_AsInt(obj1); |
12863 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12864 | } |
d14a1e28 RD |
12865 | { |
12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12867 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12868 | ||
12869 | wxPyEndAllowThreads(__tstate); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
2f4c0a16 | 12872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
12873 | return resultobj; |
12874 | fail: | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
2f4c0a16 | 12879 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12880 | PyObject *resultobj; |
12881 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12882 | PyObject * obj0 = 0 ; | |
12883 | char *kwnames[] = { | |
12884 | (char *) "self", NULL | |
12885 | }; | |
12886 | ||
12887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12890 | { |
12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12892 | (arg1)->Veto(); | |
12893 | ||
12894 | wxPyEndAllowThreads(__tstate); | |
12895 | if (PyErr_Occurred()) SWIG_fail; | |
12896 | } | |
12897 | Py_INCREF(Py_None); resultobj = Py_None; | |
12898 | return resultobj; | |
12899 | fail: | |
12900 | return NULL; | |
12901 | } | |
12902 | ||
12903 | ||
2f4c0a16 | 12904 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12905 | PyObject *resultobj; |
12906 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | char *kwnames[] = { | |
12909 | (char *) "self", NULL | |
12910 | }; | |
12911 | ||
12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12915 | { |
12916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12917 | (arg1)->Allow(); | |
12918 | ||
12919 | wxPyEndAllowThreads(__tstate); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | } | |
12922 | Py_INCREF(Py_None); resultobj = Py_None; | |
12923 | return resultobj; | |
12924 | fail: | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
2f4c0a16 | 12929 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12930 | PyObject *resultobj; |
12931 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12932 | bool result; | |
12933 | PyObject * obj0 = 0 ; | |
12934 | char *kwnames[] = { | |
12935 | (char *) "self", NULL | |
12936 | }; | |
12937 | ||
12938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12941 | { |
12942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12943 | result = (bool)(arg1)->IsAllowed(); | |
12944 | ||
12945 | wxPyEndAllowThreads(__tstate); | |
12946 | if (PyErr_Occurred()) SWIG_fail; | |
12947 | } | |
02a34c4c | 12948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12949 | return resultobj; |
12950 | fail: | |
12951 | return NULL; | |
12952 | } | |
12953 | ||
12954 | ||
2f4c0a16 | 12955 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12956 | PyObject *obj; |
12957 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12958 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
12959 | Py_INCREF(obj); | |
12960 | return Py_BuildValue((char *)""); | |
12961 | } | |
2f4c0a16 | 12962 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12963 | PyObject *resultobj; |
12964 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12965 | int arg2 = (int) 0 ; | |
12966 | int arg3 = (int) 0 ; | |
12967 | int arg4 = (int) 0 ; | |
12968 | wxScrollEvent *result; | |
8edf1c75 RD |
12969 | PyObject * obj0 = 0 ; |
12970 | PyObject * obj1 = 0 ; | |
12971 | PyObject * obj2 = 0 ; | |
12972 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12973 | char *kwnames[] = { |
12974 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
12975 | }; | |
12976 | ||
8edf1c75 RD |
12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12978 | if (obj0) { | |
2f4c0a16 RD |
12979 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12981 | } |
12982 | if (obj1) { | |
2f4c0a16 RD |
12983 | arg2 = (int) SWIG_AsInt(obj1); |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12985 | } |
12986 | if (obj2) { | |
2f4c0a16 RD |
12987 | arg3 = (int) SWIG_AsInt(obj2); |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12989 | } |
12990 | if (obj3) { | |
2f4c0a16 RD |
12991 | arg4 = (int) SWIG_AsInt(obj3); |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12993 | } |
d14a1e28 RD |
12994 | { |
12995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12996 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12997 | ||
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
2f4c0a16 | 13001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13002 | return resultobj; |
13003 | fail: | |
13004 | return NULL; | |
13005 | } | |
13006 | ||
13007 | ||
2f4c0a16 | 13008 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13009 | PyObject *resultobj; |
13010 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13011 | int result; | |
13012 | PyObject * obj0 = 0 ; | |
13013 | char *kwnames[] = { | |
13014 | (char *) "self", NULL | |
13015 | }; | |
13016 | ||
13017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13020 | { |
13021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13022 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13023 | ||
13024 | wxPyEndAllowThreads(__tstate); | |
13025 | if (PyErr_Occurred()) SWIG_fail; | |
13026 | } | |
2f4c0a16 | 13027 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13028 | return resultobj; |
13029 | fail: | |
13030 | return NULL; | |
13031 | } | |
13032 | ||
13033 | ||
2f4c0a16 | 13034 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13035 | PyObject *resultobj; |
13036 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13037 | int result; | |
13038 | PyObject * obj0 = 0 ; | |
13039 | char *kwnames[] = { | |
13040 | (char *) "self", NULL | |
13041 | }; | |
13042 | ||
13043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13046 | { |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
2f4c0a16 | 13053 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13054 | return resultobj; |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
2f4c0a16 | 13060 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13061 | PyObject *resultobj; |
13062 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13063 | int arg2 ; | |
13064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13066 | char *kwnames[] = { |
13067 | (char *) "self",(char *) "orient", NULL | |
13068 | }; | |
13069 | ||
8edf1c75 | 13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13073 | arg2 = (int) SWIG_AsInt(obj1); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13075 | { |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | (arg1)->SetOrientation(arg2); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | Py_INCREF(Py_None); resultobj = Py_None; | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
13086 | } | |
13087 | ||
13088 | ||
2f4c0a16 | 13089 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13090 | PyObject *resultobj; |
13091 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13092 | int arg2 ; | |
13093 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13094 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13095 | char *kwnames[] = { |
13096 | (char *) "self",(char *) "pos", NULL | |
13097 | }; | |
13098 | ||
8edf1c75 | 13099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13102 | arg2 = (int) SWIG_AsInt(obj1); | |
13103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13104 | { |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | (arg1)->SetPosition(arg2); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
13111 | Py_INCREF(Py_None); resultobj = Py_None; | |
13112 | return resultobj; | |
13113 | fail: | |
13114 | return NULL; | |
13115 | } | |
13116 | ||
13117 | ||
2f4c0a16 | 13118 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13119 | PyObject *obj; |
13120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13121 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13122 | Py_INCREF(obj); | |
13123 | return Py_BuildValue((char *)""); | |
13124 | } | |
2f4c0a16 | 13125 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13126 | PyObject *resultobj; |
13127 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13128 | int arg2 = (int) 0 ; | |
13129 | int arg3 = (int) 0 ; | |
13130 | wxScrollWinEvent *result; | |
8edf1c75 RD |
13131 | PyObject * obj0 = 0 ; |
13132 | PyObject * obj1 = 0 ; | |
13133 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13134 | char *kwnames[] = { |
13135 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13136 | }; | |
13137 | ||
8edf1c75 RD |
13138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13139 | if (obj0) { | |
2f4c0a16 RD |
13140 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13142 | } |
13143 | if (obj1) { | |
2f4c0a16 RD |
13144 | arg2 = (int) SWIG_AsInt(obj1); |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13146 | } |
13147 | if (obj2) { | |
2f4c0a16 RD |
13148 | arg3 = (int) SWIG_AsInt(obj2); |
13149 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13150 | } |
d14a1e28 RD |
13151 | { |
13152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13153 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13154 | ||
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
2f4c0a16 | 13158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13159 | return resultobj; |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
2f4c0a16 | 13165 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13166 | PyObject *resultobj; |
13167 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13168 | int result; | |
13169 | PyObject * obj0 = 0 ; | |
13170 | char *kwnames[] = { | |
13171 | (char *) "self", NULL | |
13172 | }; | |
13173 | ||
13174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13177 | { |
13178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13179 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13180 | ||
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
2f4c0a16 | 13184 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13185 | return resultobj; |
13186 | fail: | |
13187 | return NULL; | |
13188 | } | |
13189 | ||
13190 | ||
2f4c0a16 | 13191 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13192 | PyObject *resultobj; |
13193 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13194 | int result; | |
13195 | PyObject * obj0 = 0 ; | |
13196 | char *kwnames[] = { | |
13197 | (char *) "self", NULL | |
13198 | }; | |
13199 | ||
13200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13203 | { |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13205 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13206 | ||
13207 | wxPyEndAllowThreads(__tstate); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
2f4c0a16 | 13210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13211 | return resultobj; |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
2f4c0a16 | 13217 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13218 | PyObject *resultobj; |
13219 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13220 | int arg2 ; | |
13221 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13223 | char *kwnames[] = { |
13224 | (char *) "self",(char *) "orient", NULL | |
13225 | }; | |
13226 | ||
8edf1c75 | 13227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13230 | arg2 = (int) SWIG_AsInt(obj1); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13232 | { |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | (arg1)->SetOrientation(arg2); | |
13235 | ||
13236 | wxPyEndAllowThreads(__tstate); | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
13239 | Py_INCREF(Py_None); resultobj = Py_None; | |
13240 | return resultobj; | |
13241 | fail: | |
13242 | return NULL; | |
13243 | } | |
13244 | ||
13245 | ||
2f4c0a16 | 13246 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13247 | PyObject *resultobj; |
13248 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13249 | int arg2 ; | |
13250 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13252 | char *kwnames[] = { |
13253 | (char *) "self",(char *) "pos", NULL | |
13254 | }; | |
13255 | ||
8edf1c75 | 13256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13259 | arg2 = (int) SWIG_AsInt(obj1); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13261 | { |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | (arg1)->SetPosition(arg2); | |
13264 | ||
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
13268 | Py_INCREF(Py_None); resultobj = Py_None; | |
13269 | return resultobj; | |
13270 | fail: | |
13271 | return NULL; | |
13272 | } | |
13273 | ||
13274 | ||
2f4c0a16 | 13275 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13276 | PyObject *obj; |
13277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13278 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13279 | Py_INCREF(obj); | |
13280 | return Py_BuildValue((char *)""); | |
13281 | } | |
2f4c0a16 | 13282 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13283 | PyObject *resultobj; |
13284 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13285 | wxMouseEvent *result; | |
8edf1c75 | 13286 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13287 | char *kwnames[] = { |
13288 | (char *) "mouseType", NULL | |
13289 | }; | |
13290 | ||
8edf1c75 RD |
13291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13292 | if (obj0) { | |
2f4c0a16 RD |
13293 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13295 | } |
d14a1e28 RD |
13296 | { |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | { | |
13304 | resultobj = wxPyMake_wxObject(result); | |
13305 | } | |
13306 | return resultobj; | |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
2f4c0a16 | 13312 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13313 | PyObject *resultobj; |
13314 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13315 | bool result; | |
13316 | PyObject * obj0 = 0 ; | |
13317 | char *kwnames[] = { | |
13318 | (char *) "self", NULL | |
13319 | }; | |
13320 | ||
13321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13324 | { |
13325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13326 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13327 | ||
13328 | wxPyEndAllowThreads(__tstate); | |
13329 | if (PyErr_Occurred()) SWIG_fail; | |
13330 | } | |
02a34c4c | 13331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13332 | return resultobj; |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
2f4c0a16 | 13338 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13339 | PyObject *resultobj; |
13340 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13341 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13342 | bool result; | |
13343 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13345 | char *kwnames[] = { |
13346 | (char *) "self",(char *) "but", NULL | |
13347 | }; | |
13348 | ||
8edf1c75 | 13349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13352 | if (obj1) { |
2f4c0a16 RD |
13353 | arg2 = (int) SWIG_AsInt(obj1); |
13354 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13355 | } |
d14a1e28 RD |
13356 | { |
13357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13358 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13359 | ||
13360 | wxPyEndAllowThreads(__tstate); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
02a34c4c | 13363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13364 | return resultobj; |
13365 | fail: | |
13366 | return NULL; | |
13367 | } | |
13368 | ||
13369 | ||
2f4c0a16 | 13370 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13371 | PyObject *resultobj; |
13372 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13373 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13374 | bool result; | |
13375 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13376 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13377 | char *kwnames[] = { |
13378 | (char *) "self",(char *) "but", NULL | |
13379 | }; | |
13380 | ||
8edf1c75 | 13381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13384 | if (obj1) { |
2f4c0a16 RD |
13385 | arg2 = (int) SWIG_AsInt(obj1); |
13386 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13387 | } |
d14a1e28 RD |
13388 | { |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13391 | ||
13392 | wxPyEndAllowThreads(__tstate); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | } | |
02a34c4c | 13395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13396 | return resultobj; |
13397 | fail: | |
13398 | return NULL; | |
13399 | } | |
13400 | ||
13401 | ||
2f4c0a16 | 13402 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13403 | PyObject *resultobj; |
13404 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13405 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13406 | bool result; | |
13407 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13409 | char *kwnames[] = { |
13410 | (char *) "self",(char *) "but", NULL | |
13411 | }; | |
13412 | ||
8edf1c75 | 13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13416 | if (obj1) { |
2f4c0a16 RD |
13417 | arg2 = (int) SWIG_AsInt(obj1); |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13419 | } |
d14a1e28 RD |
13420 | { |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
02a34c4c | 13427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13428 | return resultobj; |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
2f4c0a16 | 13434 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13435 | PyObject *resultobj; |
13436 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13437 | int arg2 ; | |
13438 | bool result; | |
13439 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13441 | char *kwnames[] = { |
13442 | (char *) "self",(char *) "but", NULL | |
13443 | }; | |
13444 | ||
8edf1c75 | 13445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13448 | arg2 = (int) SWIG_AsInt(obj1); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13450 | { |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13452 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13453 | ||
13454 | wxPyEndAllowThreads(__tstate); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
13456 | } | |
02a34c4c | 13457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13458 | return resultobj; |
13459 | fail: | |
13460 | return NULL; | |
13461 | } | |
13462 | ||
13463 | ||
2f4c0a16 | 13464 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13465 | PyObject *resultobj; |
13466 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13467 | int arg2 ; | |
13468 | bool result; | |
13469 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13471 | char *kwnames[] = { |
13472 | (char *) "self",(char *) "but", NULL | |
13473 | }; | |
13474 | ||
8edf1c75 | 13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13478 | arg2 = (int) SWIG_AsInt(obj1); | |
13479 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13480 | { |
13481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13482 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13483 | ||
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
02a34c4c | 13487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13488 | return resultobj; |
13489 | fail: | |
13490 | return NULL; | |
13491 | } | |
13492 | ||
13493 | ||
2f4c0a16 | 13494 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13495 | PyObject *resultobj; |
13496 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13497 | int result; | |
13498 | PyObject * obj0 = 0 ; | |
13499 | char *kwnames[] = { | |
13500 | (char *) "self", NULL | |
13501 | }; | |
13502 | ||
13503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13506 | { |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13509 | ||
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
2f4c0a16 | 13513 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13514 | return resultobj; |
13515 | fail: | |
13516 | return NULL; | |
13517 | } | |
13518 | ||
13519 | ||
2f4c0a16 | 13520 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13521 | PyObject *resultobj; |
13522 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13523 | bool result; | |
13524 | PyObject * obj0 = 0 ; | |
13525 | char *kwnames[] = { | |
13526 | (char *) "self", NULL | |
13527 | }; | |
13528 | ||
13529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13532 | { |
13533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13534 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13535 | ||
13536 | wxPyEndAllowThreads(__tstate); | |
13537 | if (PyErr_Occurred()) SWIG_fail; | |
13538 | } | |
02a34c4c | 13539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13540 | return resultobj; |
13541 | fail: | |
13542 | return NULL; | |
13543 | } | |
13544 | ||
13545 | ||
2f4c0a16 | 13546 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13547 | PyObject *resultobj; |
13548 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13549 | bool result; | |
13550 | PyObject * obj0 = 0 ; | |
13551 | char *kwnames[] = { | |
13552 | (char *) "self", NULL | |
13553 | }; | |
13554 | ||
13555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13558 | { |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13561 | ||
13562 | wxPyEndAllowThreads(__tstate); | |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
13564 | } | |
02a34c4c | 13565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13566 | return resultobj; |
13567 | fail: | |
13568 | return NULL; | |
13569 | } | |
13570 | ||
13571 | ||
2f4c0a16 | 13572 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13573 | PyObject *resultobj; |
13574 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13575 | bool result; | |
13576 | PyObject * obj0 = 0 ; | |
13577 | char *kwnames[] = { | |
13578 | (char *) "self", NULL | |
13579 | }; | |
13580 | ||
13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13584 | { |
13585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13586 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13587 | ||
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
02a34c4c | 13591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13592 | return resultobj; |
13593 | fail: | |
13594 | return NULL; | |
13595 | } | |
13596 | ||
13597 | ||
2f4c0a16 | 13598 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13599 | PyObject *resultobj; |
13600 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13601 | bool result; | |
13602 | PyObject * obj0 = 0 ; | |
13603 | char *kwnames[] = { | |
13604 | (char *) "self", NULL | |
13605 | }; | |
13606 | ||
13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13610 | { |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
02a34c4c | 13617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13618 | return resultobj; |
13619 | fail: | |
13620 | return NULL; | |
13621 | } | |
13622 | ||
13623 | ||
2f4c0a16 | 13624 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13625 | PyObject *resultobj; |
13626 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13627 | bool result; | |
13628 | PyObject * obj0 = 0 ; | |
13629 | char *kwnames[] = { | |
13630 | (char *) "self", NULL | |
13631 | }; | |
13632 | ||
13633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13636 | { |
13637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13638 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13639 | ||
13640 | wxPyEndAllowThreads(__tstate); | |
13641 | if (PyErr_Occurred()) SWIG_fail; | |
13642 | } | |
02a34c4c | 13643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13644 | return resultobj; |
13645 | fail: | |
13646 | return NULL; | |
13647 | } | |
13648 | ||
13649 | ||
2f4c0a16 | 13650 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13651 | PyObject *resultobj; |
13652 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13653 | bool result; | |
13654 | PyObject * obj0 = 0 ; | |
13655 | char *kwnames[] = { | |
13656 | (char *) "self", NULL | |
13657 | }; | |
13658 | ||
13659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13662 | { |
13663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13664 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13665 | ||
13666 | wxPyEndAllowThreads(__tstate); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
02a34c4c | 13669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13670 | return resultobj; |
13671 | fail: | |
13672 | return NULL; | |
13673 | } | |
13674 | ||
13675 | ||
2f4c0a16 | 13676 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13677 | PyObject *resultobj; |
13678 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13679 | bool result; | |
13680 | PyObject * obj0 = 0 ; | |
13681 | char *kwnames[] = { | |
13682 | (char *) "self", NULL | |
13683 | }; | |
13684 | ||
13685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13688 | { |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13691 | ||
13692 | wxPyEndAllowThreads(__tstate); | |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
13694 | } | |
02a34c4c | 13695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13696 | return resultobj; |
13697 | fail: | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
2f4c0a16 | 13702 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13703 | PyObject *resultobj; |
13704 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13705 | bool result; | |
13706 | PyObject * obj0 = 0 ; | |
13707 | char *kwnames[] = { | |
13708 | (char *) "self", NULL | |
13709 | }; | |
13710 | ||
13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13714 | { |
13715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13716 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13717 | ||
13718 | wxPyEndAllowThreads(__tstate); | |
13719 | if (PyErr_Occurred()) SWIG_fail; | |
13720 | } | |
02a34c4c | 13721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13722 | return resultobj; |
13723 | fail: | |
13724 | return NULL; | |
13725 | } | |
13726 | ||
13727 | ||
2f4c0a16 | 13728 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13729 | PyObject *resultobj; |
13730 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13731 | bool result; | |
13732 | PyObject * obj0 = 0 ; | |
13733 | char *kwnames[] = { | |
13734 | (char *) "self", NULL | |
13735 | }; | |
13736 | ||
13737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13740 | { |
13741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13742 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13743 | ||
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
02a34c4c | 13747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13748 | return resultobj; |
13749 | fail: | |
13750 | return NULL; | |
13751 | } | |
13752 | ||
13753 | ||
2f4c0a16 | 13754 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13755 | PyObject *resultobj; |
13756 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13757 | bool result; | |
13758 | PyObject * obj0 = 0 ; | |
13759 | char *kwnames[] = { | |
13760 | (char *) "self", NULL | |
13761 | }; | |
13762 | ||
13763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13766 | { |
13767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13768 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13769 | ||
13770 | wxPyEndAllowThreads(__tstate); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
02a34c4c | 13773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13774 | return resultobj; |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
2f4c0a16 | 13780 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13781 | PyObject *resultobj; |
13782 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13783 | bool result; | |
13784 | PyObject * obj0 = 0 ; | |
13785 | char *kwnames[] = { | |
13786 | (char *) "self", NULL | |
13787 | }; | |
13788 | ||
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13792 | { |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
02a34c4c | 13799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13800 | return resultobj; |
13801 | fail: | |
13802 | return NULL; | |
13803 | } | |
13804 | ||
13805 | ||
2f4c0a16 | 13806 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13807 | PyObject *resultobj; |
13808 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13809 | bool result; | |
13810 | PyObject * obj0 = 0 ; | |
13811 | char *kwnames[] = { | |
13812 | (char *) "self", NULL | |
13813 | }; | |
13814 | ||
13815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13818 | { |
13819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13820 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13821 | ||
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
02a34c4c | 13825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13826 | return resultobj; |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
2f4c0a16 | 13832 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13833 | PyObject *resultobj; |
13834 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13835 | bool result; | |
13836 | PyObject * obj0 = 0 ; | |
13837 | char *kwnames[] = { | |
13838 | (char *) "self", NULL | |
13839 | }; | |
13840 | ||
13841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13844 | { |
13845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13846 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13847 | ||
13848 | wxPyEndAllowThreads(__tstate); | |
13849 | if (PyErr_Occurred()) SWIG_fail; | |
13850 | } | |
02a34c4c | 13851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13852 | return resultobj; |
13853 | fail: | |
13854 | return NULL; | |
13855 | } | |
13856 | ||
13857 | ||
2f4c0a16 | 13858 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13859 | PyObject *resultobj; |
13860 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13861 | bool result; | |
13862 | PyObject * obj0 = 0 ; | |
13863 | char *kwnames[] = { | |
13864 | (char *) "self", NULL | |
13865 | }; | |
13866 | ||
13867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13870 | { |
13871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13872 | result = (bool)(arg1)->LeftIsDown(); | |
13873 | ||
13874 | wxPyEndAllowThreads(__tstate); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | } | |
02a34c4c | 13877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13878 | return resultobj; |
13879 | fail: | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
2f4c0a16 | 13884 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13885 | PyObject *resultobj; |
13886 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13887 | bool result; | |
13888 | PyObject * obj0 = 0 ; | |
13889 | char *kwnames[] = { | |
13890 | (char *) "self", NULL | |
13891 | }; | |
13892 | ||
13893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13896 | { |
13897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13898 | result = (bool)(arg1)->MiddleIsDown(); | |
13899 | ||
13900 | wxPyEndAllowThreads(__tstate); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
02a34c4c | 13903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13904 | return resultobj; |
13905 | fail: | |
13906 | return NULL; | |
13907 | } | |
13908 | ||
13909 | ||
2f4c0a16 | 13910 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13911 | PyObject *resultobj; |
13912 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13913 | bool result; | |
13914 | PyObject * obj0 = 0 ; | |
13915 | char *kwnames[] = { | |
13916 | (char *) "self", NULL | |
13917 | }; | |
13918 | ||
13919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13922 | { |
13923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13924 | result = (bool)(arg1)->RightIsDown(); | |
13925 | ||
13926 | wxPyEndAllowThreads(__tstate); | |
13927 | if (PyErr_Occurred()) SWIG_fail; | |
13928 | } | |
02a34c4c | 13929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13930 | return resultobj; |
13931 | fail: | |
13932 | return NULL; | |
13933 | } | |
13934 | ||
13935 | ||
2f4c0a16 | 13936 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13937 | PyObject *resultobj; |
13938 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13939 | bool result; | |
13940 | PyObject * obj0 = 0 ; | |
13941 | char *kwnames[] = { | |
13942 | (char *) "self", NULL | |
13943 | }; | |
13944 | ||
13945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13948 | { |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13950 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
02a34c4c | 13955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13956 | return resultobj; |
13957 | fail: | |
13958 | return NULL; | |
13959 | } | |
13960 | ||
13961 | ||
2f4c0a16 | 13962 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13963 | PyObject *resultobj; |
13964 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13965 | bool result; | |
13966 | PyObject * obj0 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13974 | { |
13975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13976 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
13977 | ||
13978 | wxPyEndAllowThreads(__tstate); | |
13979 | if (PyErr_Occurred()) SWIG_fail; | |
13980 | } | |
02a34c4c | 13981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13982 | return resultobj; |
13983 | fail: | |
13984 | return NULL; | |
13985 | } | |
13986 | ||
13987 | ||
2f4c0a16 | 13988 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13989 | PyObject *resultobj; |
13990 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13991 | bool result; | |
13992 | PyObject * obj0 = 0 ; | |
13993 | char *kwnames[] = { | |
13994 | (char *) "self", NULL | |
13995 | }; | |
13996 | ||
13997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14000 | { |
14001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14002 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14003 | ||
14004 | wxPyEndAllowThreads(__tstate); | |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
14006 | } | |
02a34c4c | 14007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14008 | return resultobj; |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
2f4c0a16 | 14014 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14015 | PyObject *resultobj; |
14016 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14017 | bool result; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | char *kwnames[] = { | |
14020 | (char *) "self", NULL | |
14021 | }; | |
14022 | ||
14023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14026 | { |
14027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14028 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14029 | ||
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
02a34c4c | 14033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14034 | return resultobj; |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
2f4c0a16 | 14040 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14041 | PyObject *resultobj; |
14042 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14043 | wxPoint result; | |
14044 | PyObject * obj0 = 0 ; | |
14045 | char *kwnames[] = { | |
14046 | (char *) "self", NULL | |
14047 | }; | |
14048 | ||
14049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14052 | { |
14053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14054 | result = (arg1)->GetPosition(); | |
14055 | ||
14056 | wxPyEndAllowThreads(__tstate); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
14059 | { | |
14060 | wxPoint * resultptr; | |
14061 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14063 | } |
14064 | return resultobj; | |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
2f4c0a16 | 14070 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14071 | PyObject *resultobj; |
14072 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14073 | long *arg2 = (long *) 0 ; | |
14074 | long *arg3 = (long *) 0 ; | |
14075 | long temp2 ; | |
14076 | long temp3 ; | |
14077 | PyObject * obj0 = 0 ; | |
14078 | char *kwnames[] = { | |
14079 | (char *) "self", NULL | |
14080 | }; | |
14081 | ||
14082 | arg2 = &temp2; | |
14083 | arg3 = &temp3; | |
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14087 | { |
14088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14089 | (arg1)->GetPosition(arg2,arg3); | |
14090 | ||
14091 | wxPyEndAllowThreads(__tstate); | |
14092 | if (PyErr_Occurred()) SWIG_fail; | |
14093 | } | |
14094 | Py_INCREF(Py_None); resultobj = Py_None; | |
14095 | { | |
14096 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14097 | resultobj = t_output_helper(resultobj,o); | |
14098 | } | |
14099 | { | |
14100 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14101 | resultobj = t_output_helper(resultobj,o); | |
14102 | } | |
14103 | return resultobj; | |
14104 | fail: | |
14105 | return NULL; | |
14106 | } | |
14107 | ||
14108 | ||
2f4c0a16 | 14109 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14110 | PyObject *resultobj; |
14111 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14112 | wxDC *arg2 = 0 ; | |
14113 | wxPoint result; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | PyObject * obj1 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self",(char *) "dc", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14124 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14125 | SWIG_fail; | |
d14a1e28 | 14126 | if (arg2 == NULL) { |
2f4c0a16 RD |
14127 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14128 | SWIG_fail; | |
d14a1e28 RD |
14129 | } |
14130 | { | |
14131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14132 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14133 | ||
14134 | wxPyEndAllowThreads(__tstate); | |
14135 | if (PyErr_Occurred()) SWIG_fail; | |
14136 | } | |
14137 | { | |
14138 | wxPoint * resultptr; | |
14139 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14141 | } |
14142 | return resultobj; | |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
2f4c0a16 | 14148 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14149 | PyObject *resultobj; |
14150 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14151 | int result; |
d14a1e28 RD |
14152 | PyObject * obj0 = 0 ; |
14153 | char *kwnames[] = { | |
14154 | (char *) "self", NULL | |
14155 | }; | |
14156 | ||
14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14160 | { |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14162 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14163 | |
14164 | wxPyEndAllowThreads(__tstate); | |
14165 | if (PyErr_Occurred()) SWIG_fail; | |
14166 | } | |
2f4c0a16 | 14167 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14168 | return resultobj; |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
2f4c0a16 | 14174 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14175 | PyObject *resultobj; |
14176 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14177 | int result; |
d14a1e28 RD |
14178 | PyObject * obj0 = 0 ; |
14179 | char *kwnames[] = { | |
14180 | (char *) "self", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14186 | { |
14187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14188 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14189 | |
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
2f4c0a16 | 14193 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14194 | return resultobj; |
14195 | fail: | |
14196 | return NULL; | |
14197 | } | |
14198 | ||
14199 | ||
2f4c0a16 | 14200 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14201 | PyObject *resultobj; |
14202 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14203 | int result; | |
14204 | PyObject * obj0 = 0 ; | |
14205 | char *kwnames[] = { | |
14206 | (char *) "self", NULL | |
14207 | }; | |
14208 | ||
14209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14212 | { |
14213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14214 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14215 | ||
14216 | wxPyEndAllowThreads(__tstate); | |
14217 | if (PyErr_Occurred()) SWIG_fail; | |
14218 | } | |
2f4c0a16 | 14219 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14220 | return resultobj; |
14221 | fail: | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
2f4c0a16 | 14226 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14227 | PyObject *resultobj; |
14228 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14229 | int result; | |
14230 | PyObject * obj0 = 0 ; | |
14231 | char *kwnames[] = { | |
14232 | (char *) "self", NULL | |
14233 | }; | |
14234 | ||
14235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14238 | { |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
2f4c0a16 | 14245 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14246 | return resultobj; |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
2f4c0a16 | 14252 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14253 | PyObject *resultobj; |
14254 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14255 | int result; | |
14256 | PyObject * obj0 = 0 ; | |
14257 | char *kwnames[] = { | |
14258 | (char *) "self", NULL | |
14259 | }; | |
14260 | ||
14261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14264 | { |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14267 | ||
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
2f4c0a16 | 14271 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14272 | return resultobj; |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
2f4c0a16 | 14278 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14279 | PyObject *resultobj; |
14280 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14281 | bool result; | |
14282 | PyObject * obj0 = 0 ; | |
14283 | char *kwnames[] = { | |
14284 | (char *) "self", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14290 | { |
14291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14292 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14293 | ||
14294 | wxPyEndAllowThreads(__tstate); | |
14295 | if (PyErr_Occurred()) SWIG_fail; | |
14296 | } | |
02a34c4c | 14297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14298 | return resultobj; |
14299 | fail: | |
14300 | return NULL; | |
14301 | } | |
14302 | ||
14303 | ||
2f4c0a16 | 14304 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14305 | PyObject *resultobj; |
14306 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14307 | int arg2 ; |
d14a1e28 | 14308 | PyObject * obj0 = 0 ; |
8edf1c75 | 14309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14310 | char *kwnames[] = { |
14311 | (char *) "self",(char *) "m_x", NULL | |
14312 | }; | |
14313 | ||
8edf1c75 | 14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14317 | arg2 = (int) SWIG_AsInt(obj1); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14319 | if (arg1) (arg1)->m_x = arg2; |
14320 | ||
14321 | Py_INCREF(Py_None); resultobj = Py_None; | |
14322 | return resultobj; | |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
2f4c0a16 | 14328 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14329 | PyObject *resultobj; |
14330 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14331 | int result; |
d14a1e28 RD |
14332 | PyObject * obj0 = 0 ; |
14333 | char *kwnames[] = { | |
14334 | (char *) "self", NULL | |
14335 | }; | |
14336 | ||
14337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14340 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14341 | |
2f4c0a16 | 14342 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14343 | return resultobj; |
14344 | fail: | |
14345 | return NULL; | |
14346 | } | |
14347 | ||
14348 | ||
2f4c0a16 | 14349 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14350 | PyObject *resultobj; |
14351 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14352 | int arg2 ; |
d14a1e28 | 14353 | PyObject * obj0 = 0 ; |
8edf1c75 | 14354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14355 | char *kwnames[] = { |
14356 | (char *) "self",(char *) "m_y", NULL | |
14357 | }; | |
14358 | ||
8edf1c75 | 14359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14362 | arg2 = (int) SWIG_AsInt(obj1); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14364 | if (arg1) (arg1)->m_y = arg2; |
14365 | ||
14366 | Py_INCREF(Py_None); resultobj = Py_None; | |
14367 | return resultobj; | |
14368 | fail: | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
2f4c0a16 | 14373 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14374 | PyObject *resultobj; |
14375 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14376 | int result; |
d14a1e28 RD |
14377 | PyObject * obj0 = 0 ; |
14378 | char *kwnames[] = { | |
14379 | (char *) "self", NULL | |
14380 | }; | |
14381 | ||
14382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14385 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14386 | |
2f4c0a16 | 14387 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14388 | return resultobj; |
14389 | fail: | |
14390 | return NULL; | |
14391 | } | |
14392 | ||
14393 | ||
2f4c0a16 | 14394 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14395 | PyObject *resultobj; |
14396 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14397 | bool arg2 ; | |
14398 | PyObject * obj0 = 0 ; | |
14399 | PyObject * obj1 = 0 ; | |
14400 | char *kwnames[] = { | |
14401 | (char *) "self",(char *) "m_leftDown", NULL | |
14402 | }; | |
14403 | ||
14404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14407 | arg2 = (bool) SWIG_AsBool(obj1); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14409 | if (arg1) (arg1)->m_leftDown = arg2; |
14410 | ||
14411 | Py_INCREF(Py_None); resultobj = Py_None; | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
2f4c0a16 | 14418 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14419 | PyObject *resultobj; |
14420 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14421 | bool result; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "self", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14430 | result = (bool) ((arg1)->m_leftDown); |
14431 | ||
02a34c4c | 14432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14433 | return resultobj; |
14434 | fail: | |
14435 | return NULL; | |
14436 | } | |
14437 | ||
14438 | ||
2f4c0a16 | 14439 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14440 | PyObject *resultobj; |
14441 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14442 | bool arg2 ; | |
14443 | PyObject * obj0 = 0 ; | |
14444 | PyObject * obj1 = 0 ; | |
14445 | char *kwnames[] = { | |
14446 | (char *) "self",(char *) "m_middleDown", NULL | |
14447 | }; | |
14448 | ||
14449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14452 | arg2 = (bool) SWIG_AsBool(obj1); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14454 | if (arg1) (arg1)->m_middleDown = arg2; |
14455 | ||
14456 | Py_INCREF(Py_None); resultobj = Py_None; | |
14457 | return resultobj; | |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
2f4c0a16 | 14463 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14464 | PyObject *resultobj; |
14465 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14466 | bool result; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | char *kwnames[] = { | |
14469 | (char *) "self", NULL | |
14470 | }; | |
14471 | ||
14472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14475 | result = (bool) ((arg1)->m_middleDown); |
14476 | ||
02a34c4c | 14477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14478 | return resultobj; |
14479 | fail: | |
14480 | return NULL; | |
14481 | } | |
14482 | ||
14483 | ||
2f4c0a16 | 14484 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14485 | PyObject *resultobj; |
14486 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14487 | bool arg2 ; | |
14488 | PyObject * obj0 = 0 ; | |
14489 | PyObject * obj1 = 0 ; | |
14490 | char *kwnames[] = { | |
14491 | (char *) "self",(char *) "m_rightDown", NULL | |
14492 | }; | |
14493 | ||
14494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14497 | arg2 = (bool) SWIG_AsBool(obj1); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14499 | if (arg1) (arg1)->m_rightDown = arg2; |
14500 | ||
14501 | Py_INCREF(Py_None); resultobj = Py_None; | |
14502 | return resultobj; | |
14503 | fail: | |
14504 | return NULL; | |
14505 | } | |
14506 | ||
14507 | ||
2f4c0a16 | 14508 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14509 | PyObject *resultobj; |
14510 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14511 | bool result; | |
14512 | PyObject * obj0 = 0 ; | |
14513 | char *kwnames[] = { | |
14514 | (char *) "self", NULL | |
14515 | }; | |
14516 | ||
14517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14520 | result = (bool) ((arg1)->m_rightDown); |
14521 | ||
02a34c4c | 14522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14523 | return resultobj; |
14524 | fail: | |
14525 | return NULL; | |
14526 | } | |
14527 | ||
14528 | ||
2f4c0a16 | 14529 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14530 | PyObject *resultobj; |
14531 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14532 | bool arg2 ; | |
14533 | PyObject * obj0 = 0 ; | |
14534 | PyObject * obj1 = 0 ; | |
14535 | char *kwnames[] = { | |
14536 | (char *) "self",(char *) "m_controlDown", NULL | |
14537 | }; | |
14538 | ||
14539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14542 | arg2 = (bool) SWIG_AsBool(obj1); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14544 | if (arg1) (arg1)->m_controlDown = arg2; |
14545 | ||
14546 | Py_INCREF(Py_None); resultobj = Py_None; | |
14547 | return resultobj; | |
14548 | fail: | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
2f4c0a16 | 14553 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14554 | PyObject *resultobj; |
14555 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14556 | bool result; | |
14557 | PyObject * obj0 = 0 ; | |
14558 | char *kwnames[] = { | |
14559 | (char *) "self", NULL | |
14560 | }; | |
14561 | ||
14562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14565 | result = (bool) ((arg1)->m_controlDown); |
14566 | ||
02a34c4c | 14567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14568 | return resultobj; |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
2f4c0a16 | 14574 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14575 | PyObject *resultobj; |
14576 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14577 | bool arg2 ; | |
14578 | PyObject * obj0 = 0 ; | |
14579 | PyObject * obj1 = 0 ; | |
14580 | char *kwnames[] = { | |
14581 | (char *) "self",(char *) "m_shiftDown", NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14587 | arg2 = (bool) SWIG_AsBool(obj1); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14589 | if (arg1) (arg1)->m_shiftDown = arg2; |
14590 | ||
14591 | Py_INCREF(Py_None); resultobj = Py_None; | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
2f4c0a16 | 14598 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14599 | PyObject *resultobj; |
14600 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14601 | bool result; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14610 | result = (bool) ((arg1)->m_shiftDown); |
14611 | ||
02a34c4c | 14612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14613 | return resultobj; |
14614 | fail: | |
14615 | return NULL; | |
14616 | } | |
14617 | ||
14618 | ||
2f4c0a16 | 14619 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14620 | PyObject *resultobj; |
14621 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14622 | bool arg2 ; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "m_altDown", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14632 | arg2 = (bool) SWIG_AsBool(obj1); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14634 | if (arg1) (arg1)->m_altDown = arg2; |
14635 | ||
14636 | Py_INCREF(Py_None); resultobj = Py_None; | |
14637 | return resultobj; | |
14638 | fail: | |
14639 | return NULL; | |
14640 | } | |
14641 | ||
14642 | ||
2f4c0a16 | 14643 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14644 | PyObject *resultobj; |
14645 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14646 | bool result; | |
14647 | PyObject * obj0 = 0 ; | |
14648 | char *kwnames[] = { | |
14649 | (char *) "self", NULL | |
14650 | }; | |
14651 | ||
14652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14655 | result = (bool) ((arg1)->m_altDown); |
14656 | ||
02a34c4c | 14657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14658 | return resultobj; |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
2f4c0a16 | 14664 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14665 | PyObject *resultobj; |
14666 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14667 | bool arg2 ; | |
14668 | PyObject * obj0 = 0 ; | |
14669 | PyObject * obj1 = 0 ; | |
14670 | char *kwnames[] = { | |
14671 | (char *) "self",(char *) "m_metaDown", NULL | |
14672 | }; | |
14673 | ||
14674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14677 | arg2 = (bool) SWIG_AsBool(obj1); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14679 | if (arg1) (arg1)->m_metaDown = arg2; |
14680 | ||
14681 | Py_INCREF(Py_None); resultobj = Py_None; | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
2f4c0a16 | 14688 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14689 | PyObject *resultobj; |
14690 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14691 | bool result; | |
14692 | PyObject * obj0 = 0 ; | |
14693 | char *kwnames[] = { | |
14694 | (char *) "self", NULL | |
14695 | }; | |
14696 | ||
14697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14700 | result = (bool) ((arg1)->m_metaDown); |
14701 | ||
02a34c4c | 14702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14703 | return resultobj; |
14704 | fail: | |
14705 | return NULL; | |
14706 | } | |
14707 | ||
14708 | ||
2f4c0a16 | 14709 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14710 | PyObject *resultobj; |
14711 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14712 | int arg2 ; | |
14713 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14714 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14715 | char *kwnames[] = { |
14716 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14717 | }; | |
14718 | ||
8edf1c75 | 14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14722 | arg2 = (int) SWIG_AsInt(obj1); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14724 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14725 | ||
14726 | Py_INCREF(Py_None); resultobj = Py_None; | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | return NULL; | |
14730 | } | |
14731 | ||
14732 | ||
2f4c0a16 | 14733 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14734 | PyObject *resultobj; |
14735 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14736 | int result; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | char *kwnames[] = { | |
14739 | (char *) "self", NULL | |
14740 | }; | |
14741 | ||
14742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14745 | result = (int) ((arg1)->m_wheelRotation); |
14746 | ||
2f4c0a16 | 14747 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14748 | return resultobj; |
14749 | fail: | |
14750 | return NULL; | |
14751 | } | |
14752 | ||
14753 | ||
2f4c0a16 | 14754 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14755 | PyObject *resultobj; |
14756 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14757 | int arg2 ; | |
14758 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14760 | char *kwnames[] = { |
14761 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14762 | }; | |
14763 | ||
8edf1c75 | 14764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14767 | arg2 = (int) SWIG_AsInt(obj1); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14769 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14770 | ||
14771 | Py_INCREF(Py_None); resultobj = Py_None; | |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
2f4c0a16 | 14778 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14779 | PyObject *resultobj; |
14780 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14781 | int result; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14790 | result = (int) ((arg1)->m_wheelDelta); |
14791 | ||
2f4c0a16 | 14792 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14793 | return resultobj; |
14794 | fail: | |
14795 | return NULL; | |
14796 | } | |
14797 | ||
14798 | ||
2f4c0a16 | 14799 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14800 | PyObject *resultobj; |
14801 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14802 | int arg2 ; | |
14803 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14804 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14805 | char *kwnames[] = { |
14806 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14807 | }; | |
14808 | ||
8edf1c75 | 14809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14812 | arg2 = (int) SWIG_AsInt(obj1); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14814 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14815 | ||
14816 | Py_INCREF(Py_None); resultobj = Py_None; | |
14817 | return resultobj; | |
14818 | fail: | |
14819 | return NULL; | |
14820 | } | |
14821 | ||
14822 | ||
2f4c0a16 | 14823 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14824 | PyObject *resultobj; |
14825 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14826 | int result; | |
14827 | PyObject * obj0 = 0 ; | |
14828 | char *kwnames[] = { | |
14829 | (char *) "self", NULL | |
14830 | }; | |
14831 | ||
14832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14835 | result = (int) ((arg1)->m_linesPerAction); |
14836 | ||
2f4c0a16 | 14837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14838 | return resultobj; |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
2f4c0a16 | 14844 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14845 | PyObject *obj; |
14846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14847 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
14848 | Py_INCREF(obj); | |
14849 | return Py_BuildValue((char *)""); | |
14850 | } | |
2f4c0a16 | 14851 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14852 | PyObject *resultobj; |
423f194a RD |
14853 | int arg1 = (int) 0 ; |
14854 | int arg2 = (int) 0 ; | |
d14a1e28 | 14855 | wxSetCursorEvent *result; |
8edf1c75 RD |
14856 | PyObject * obj0 = 0 ; |
14857 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14858 | char *kwnames[] = { |
14859 | (char *) "x",(char *) "y", NULL | |
14860 | }; | |
14861 | ||
8edf1c75 RD |
14862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
14863 | if (obj0) { | |
2f4c0a16 RD |
14864 | arg1 = (int) SWIG_AsInt(obj0); |
14865 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14866 | } |
14867 | if (obj1) { | |
2f4c0a16 RD |
14868 | arg2 = (int) SWIG_AsInt(obj1); |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14870 | } |
d14a1e28 RD |
14871 | { |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
2f4c0a16 | 14878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
14879 | return resultobj; |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
2f4c0a16 | 14885 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14886 | PyObject *resultobj; |
14887 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14888 | int result; |
d14a1e28 RD |
14889 | PyObject * obj0 = 0 ; |
14890 | char *kwnames[] = { | |
14891 | (char *) "self", NULL | |
14892 | }; | |
14893 | ||
14894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14897 | { |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14899 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14900 | |
14901 | wxPyEndAllowThreads(__tstate); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
14903 | } | |
2f4c0a16 | 14904 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14905 | return resultobj; |
14906 | fail: | |
14907 | return NULL; | |
14908 | } | |
14909 | ||
14910 | ||
2f4c0a16 | 14911 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14912 | PyObject *resultobj; |
14913 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14914 | int result; |
d14a1e28 RD |
14915 | PyObject * obj0 = 0 ; |
14916 | char *kwnames[] = { | |
14917 | (char *) "self", NULL | |
14918 | }; | |
14919 | ||
14920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14923 | { |
14924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14925 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14926 | |
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
2f4c0a16 | 14930 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14931 | return resultobj; |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
2f4c0a16 | 14937 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14938 | PyObject *resultobj; |
14939 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14940 | wxCursor *arg2 = 0 ; | |
14941 | PyObject * obj0 = 0 ; | |
14942 | PyObject * obj1 = 0 ; | |
14943 | char *kwnames[] = { | |
14944 | (char *) "self",(char *) "cursor", NULL | |
14945 | }; | |
14946 | ||
14947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
14951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14952 | SWIG_fail; | |
d14a1e28 | 14953 | if (arg2 == NULL) { |
2f4c0a16 RD |
14954 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14955 | SWIG_fail; | |
d14a1e28 RD |
14956 | } |
14957 | { | |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
14964 | Py_INCREF(Py_None); resultobj = Py_None; | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
2f4c0a16 | 14971 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14972 | PyObject *resultobj; |
14973 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14974 | wxCursor *result; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14983 | { |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | { | |
14986 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
14987 | result = (wxCursor *) &_result_ref; | |
14988 | } | |
14989 | ||
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
2f4c0a16 | 14993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
14994 | return resultobj; |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
2f4c0a16 | 15000 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15001 | PyObject *resultobj; |
15002 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15003 | bool result; | |
15004 | PyObject * obj0 = 0 ; | |
15005 | char *kwnames[] = { | |
15006 | (char *) "self", NULL | |
15007 | }; | |
15008 | ||
15009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15012 | { |
15013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15014 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15015 | ||
15016 | wxPyEndAllowThreads(__tstate); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | } | |
02a34c4c | 15019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15020 | return resultobj; |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
2f4c0a16 | 15026 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15027 | PyObject *obj; |
15028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15029 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15030 | Py_INCREF(obj); | |
15031 | return Py_BuildValue((char *)""); | |
15032 | } | |
2f4c0a16 | 15033 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15034 | PyObject *resultobj; |
15035 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15036 | wxKeyEvent *result; | |
8edf1c75 | 15037 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15038 | char *kwnames[] = { |
15039 | (char *) "keyType", NULL | |
15040 | }; | |
15041 | ||
8edf1c75 RD |
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15043 | if (obj0) { | |
2f4c0a16 RD |
15044 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15046 | } |
d14a1e28 RD |
15047 | { |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15050 | ||
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
2f4c0a16 | 15054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15055 | return resultobj; |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
2f4c0a16 | 15061 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15062 | PyObject *resultobj; |
15063 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15064 | bool result; | |
15065 | PyObject * obj0 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "self", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15073 | { |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15076 | ||
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
02a34c4c | 15080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15081 | return resultobj; |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
2f4c0a16 | 15087 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15088 | PyObject *resultobj; |
15089 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15090 | bool result; | |
15091 | PyObject * obj0 = 0 ; | |
15092 | char *kwnames[] = { | |
15093 | (char *) "self", NULL | |
15094 | }; | |
15095 | ||
15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15099 | { |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
02a34c4c | 15106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15107 | return resultobj; |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
2f4c0a16 | 15113 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15114 | PyObject *resultobj; |
15115 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15116 | bool result; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | char *kwnames[] = { | |
15119 | (char *) "self", NULL | |
15120 | }; | |
15121 | ||
15122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15125 | { |
15126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15127 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15128 | ||
15129 | wxPyEndAllowThreads(__tstate); | |
15130 | if (PyErr_Occurred()) SWIG_fail; | |
15131 | } | |
02a34c4c | 15132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15133 | return resultobj; |
15134 | fail: | |
15135 | return NULL; | |
15136 | } | |
15137 | ||
15138 | ||
2f4c0a16 | 15139 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15140 | PyObject *resultobj; |
15141 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15142 | bool result; | |
15143 | PyObject * obj0 = 0 ; | |
15144 | char *kwnames[] = { | |
15145 | (char *) "self", NULL | |
15146 | }; | |
15147 | ||
15148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15151 | { |
15152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15153 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15154 | ||
15155 | wxPyEndAllowThreads(__tstate); | |
15156 | if (PyErr_Occurred()) SWIG_fail; | |
15157 | } | |
02a34c4c | 15158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15159 | return resultobj; |
15160 | fail: | |
15161 | return NULL; | |
15162 | } | |
15163 | ||
15164 | ||
2f4c0a16 | 15165 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15166 | PyObject *resultobj; |
15167 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15168 | bool result; | |
15169 | PyObject * obj0 = 0 ; | |
15170 | char *kwnames[] = { | |
15171 | (char *) "self", NULL | |
15172 | }; | |
15173 | ||
15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
02a34c4c | 15184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15185 | return resultobj; |
15186 | fail: | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
2f4c0a16 | 15191 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15192 | PyObject *resultobj; |
15193 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15194 | int result; | |
15195 | PyObject * obj0 = 0 ; | |
15196 | char *kwnames[] = { | |
15197 | (char *) "self", NULL | |
15198 | }; | |
15199 | ||
15200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15203 | { |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15206 | ||
15207 | wxPyEndAllowThreads(__tstate); | |
15208 | if (PyErr_Occurred()) SWIG_fail; | |
15209 | } | |
2f4c0a16 | 15210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15211 | return resultobj; |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
2f4c0a16 | 15217 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15218 | PyObject *resultobj; |
15219 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15220 | int result; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "self", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15229 | { |
15230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15231 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15232 | ||
15233 | wxPyEndAllowThreads(__tstate); | |
15234 | if (PyErr_Occurred()) SWIG_fail; | |
15235 | } | |
2f4c0a16 | 15236 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15237 | return resultobj; |
15238 | fail: | |
15239 | return NULL; | |
15240 | } | |
15241 | ||
15242 | ||
2f4c0a16 | 15243 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15244 | PyObject *resultobj; |
15245 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15246 | unsigned int result; |
d14a1e28 RD |
15247 | PyObject * obj0 = 0 ; |
15248 | char *kwnames[] = { | |
15249 | (char *) "self", NULL | |
15250 | }; | |
15251 | ||
15252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15255 | { |
15256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15257 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15258 | |
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
2f4c0a16 | 15262 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15263 | return resultobj; |
15264 | fail: | |
15265 | return NULL; | |
15266 | } | |
15267 | ||
15268 | ||
2f4c0a16 | 15269 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15270 | PyObject *resultobj; |
15271 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15272 | unsigned int result; |
d14a1e28 RD |
15273 | PyObject * obj0 = 0 ; |
15274 | char *kwnames[] = { | |
15275 | (char *) "self", NULL | |
15276 | }; | |
15277 | ||
15278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15281 | { |
15282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15283 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15284 | |
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
2f4c0a16 | 15288 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15289 | return resultobj; |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
2f4c0a16 | 15295 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15296 | PyObject *resultobj; |
15297 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15298 | wxPoint result; | |
15299 | PyObject * obj0 = 0 ; | |
15300 | char *kwnames[] = { | |
15301 | (char *) "self", NULL | |
15302 | }; | |
15303 | ||
15304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15307 | { |
15308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15309 | result = (arg1)->GetPosition(); | |
15310 | ||
15311 | wxPyEndAllowThreads(__tstate); | |
15312 | if (PyErr_Occurred()) SWIG_fail; | |
15313 | } | |
15314 | { | |
15315 | wxPoint * resultptr; | |
15316 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15318 | } |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
15322 | } | |
15323 | ||
15324 | ||
2f4c0a16 | 15325 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15326 | PyObject *resultobj; |
15327 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15328 | long *arg2 = (long *) 0 ; | |
15329 | long *arg3 = (long *) 0 ; | |
15330 | long temp2 ; | |
15331 | long temp3 ; | |
15332 | PyObject * obj0 = 0 ; | |
15333 | char *kwnames[] = { | |
15334 | (char *) "self", NULL | |
15335 | }; | |
15336 | ||
15337 | arg2 = &temp2; | |
15338 | arg3 = &temp3; | |
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15342 | { |
15343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15344 | (arg1)->GetPosition(arg2,arg3); | |
15345 | ||
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15349 | Py_INCREF(Py_None); resultobj = Py_None; | |
15350 | { | |
15351 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15352 | resultobj = t_output_helper(resultobj,o); | |
15353 | } | |
15354 | { | |
15355 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15356 | resultobj = t_output_helper(resultobj,o); | |
15357 | } | |
15358 | return resultobj; | |
15359 | fail: | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
2f4c0a16 | 15364 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15365 | PyObject *resultobj; |
15366 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15367 | int result; |
d14a1e28 RD |
15368 | PyObject * obj0 = 0 ; |
15369 | char *kwnames[] = { | |
15370 | (char *) "self", NULL | |
15371 | }; | |
15372 | ||
15373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15376 | { |
15377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15378 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15379 | |
15380 | wxPyEndAllowThreads(__tstate); | |
15381 | if (PyErr_Occurred()) SWIG_fail; | |
15382 | } | |
2f4c0a16 | 15383 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15384 | return resultobj; |
15385 | fail: | |
15386 | return NULL; | |
15387 | } | |
15388 | ||
15389 | ||
2f4c0a16 | 15390 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15391 | PyObject *resultobj; |
15392 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15393 | int result; |
d14a1e28 RD |
15394 | PyObject * obj0 = 0 ; |
15395 | char *kwnames[] = { | |
15396 | (char *) "self", NULL | |
15397 | }; | |
15398 | ||
15399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15402 | { |
15403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15404 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15405 | |
15406 | wxPyEndAllowThreads(__tstate); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
2f4c0a16 | 15409 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15410 | return resultobj; |
15411 | fail: | |
15412 | return NULL; | |
15413 | } | |
15414 | ||
15415 | ||
2f4c0a16 | 15416 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15417 | PyObject *resultobj; |
15418 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15419 | int arg2 ; |
d14a1e28 | 15420 | PyObject * obj0 = 0 ; |
8edf1c75 | 15421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15422 | char *kwnames[] = { |
15423 | (char *) "self",(char *) "m_x", NULL | |
15424 | }; | |
15425 | ||
8edf1c75 | 15426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15429 | arg2 = (int) SWIG_AsInt(obj1); | |
15430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15431 | if (arg1) (arg1)->m_x = arg2; |
15432 | ||
15433 | Py_INCREF(Py_None); resultobj = Py_None; | |
15434 | return resultobj; | |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
2f4c0a16 | 15440 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15441 | PyObject *resultobj; |
15442 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15443 | int result; |
d14a1e28 RD |
15444 | PyObject * obj0 = 0 ; |
15445 | char *kwnames[] = { | |
15446 | (char *) "self", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15452 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15453 | |
2f4c0a16 | 15454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15455 | return resultobj; |
15456 | fail: | |
15457 | return NULL; | |
15458 | } | |
15459 | ||
15460 | ||
2f4c0a16 | 15461 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15462 | PyObject *resultobj; |
15463 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15464 | int arg2 ; |
d14a1e28 | 15465 | PyObject * obj0 = 0 ; |
8edf1c75 | 15466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15467 | char *kwnames[] = { |
15468 | (char *) "self",(char *) "m_y", NULL | |
15469 | }; | |
15470 | ||
8edf1c75 | 15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15474 | arg2 = (int) SWIG_AsInt(obj1); | |
15475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15476 | if (arg1) (arg1)->m_y = arg2; |
15477 | ||
15478 | Py_INCREF(Py_None); resultobj = Py_None; | |
15479 | return resultobj; | |
15480 | fail: | |
15481 | return NULL; | |
15482 | } | |
15483 | ||
15484 | ||
2f4c0a16 | 15485 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15486 | PyObject *resultobj; |
15487 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15488 | int result; |
d14a1e28 RD |
15489 | PyObject * obj0 = 0 ; |
15490 | char *kwnames[] = { | |
15491 | (char *) "self", NULL | |
15492 | }; | |
15493 | ||
15494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15497 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15498 | |
2f4c0a16 | 15499 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15500 | return resultobj; |
15501 | fail: | |
15502 | return NULL; | |
15503 | } | |
15504 | ||
15505 | ||
2f4c0a16 | 15506 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15507 | PyObject *resultobj; |
15508 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15509 | long arg2 ; | |
15510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15512 | char *kwnames[] = { |
15513 | (char *) "self",(char *) "m_keyCode", NULL | |
15514 | }; | |
15515 | ||
8edf1c75 | 15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15519 | arg2 = (long) SWIG_AsLong(obj1); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15521 | if (arg1) (arg1)->m_keyCode = arg2; |
15522 | ||
15523 | Py_INCREF(Py_None); resultobj = Py_None; | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
2f4c0a16 | 15530 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15531 | PyObject *resultobj; |
15532 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15533 | long result; | |
15534 | PyObject * obj0 = 0 ; | |
15535 | char *kwnames[] = { | |
15536 | (char *) "self", NULL | |
15537 | }; | |
15538 | ||
15539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15542 | result = (long) ((arg1)->m_keyCode); |
15543 | ||
2f4c0a16 | 15544 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15545 | return resultobj; |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
2f4c0a16 | 15551 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15552 | PyObject *resultobj; |
15553 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15554 | bool arg2 ; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | PyObject * obj1 = 0 ; | |
15557 | char *kwnames[] = { | |
15558 | (char *) "self",(char *) "m_controlDown", NULL | |
15559 | }; | |
15560 | ||
15561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15564 | arg2 = (bool) SWIG_AsBool(obj1); | |
15565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15566 | if (arg1) (arg1)->m_controlDown = arg2; |
15567 | ||
15568 | Py_INCREF(Py_None); resultobj = Py_None; | |
15569 | return resultobj; | |
15570 | fail: | |
15571 | return NULL; | |
15572 | } | |
15573 | ||
15574 | ||
2f4c0a16 | 15575 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15576 | PyObject *resultobj; |
15577 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15578 | bool result; | |
15579 | PyObject * obj0 = 0 ; | |
15580 | char *kwnames[] = { | |
15581 | (char *) "self", NULL | |
15582 | }; | |
15583 | ||
15584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15587 | result = (bool) ((arg1)->m_controlDown); |
15588 | ||
02a34c4c | 15589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15590 | return resultobj; |
15591 | fail: | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
2f4c0a16 | 15596 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15597 | PyObject *resultobj; |
15598 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15599 | bool arg2 ; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | PyObject * obj1 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self",(char *) "m_shiftDown", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15609 | arg2 = (bool) SWIG_AsBool(obj1); | |
15610 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15611 | if (arg1) (arg1)->m_shiftDown = arg2; |
15612 | ||
15613 | Py_INCREF(Py_None); resultobj = Py_None; | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
2f4c0a16 | 15620 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15621 | PyObject *resultobj; |
15622 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15623 | bool result; | |
15624 | PyObject * obj0 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15632 | result = (bool) ((arg1)->m_shiftDown); |
15633 | ||
02a34c4c | 15634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15635 | return resultobj; |
15636 | fail: | |
15637 | return NULL; | |
15638 | } | |
15639 | ||
15640 | ||
2f4c0a16 | 15641 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15642 | PyObject *resultobj; |
15643 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15644 | bool arg2 ; | |
15645 | PyObject * obj0 = 0 ; | |
15646 | PyObject * obj1 = 0 ; | |
15647 | char *kwnames[] = { | |
15648 | (char *) "self",(char *) "m_altDown", NULL | |
15649 | }; | |
15650 | ||
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15654 | arg2 = (bool) SWIG_AsBool(obj1); | |
15655 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15656 | if (arg1) (arg1)->m_altDown = arg2; |
15657 | ||
15658 | Py_INCREF(Py_None); resultobj = Py_None; | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
15662 | } | |
15663 | ||
15664 | ||
2f4c0a16 | 15665 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15666 | PyObject *resultobj; |
15667 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15668 | bool result; | |
15669 | PyObject * obj0 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15677 | result = (bool) ((arg1)->m_altDown); |
15678 | ||
02a34c4c | 15679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15680 | return resultobj; |
15681 | fail: | |
15682 | return NULL; | |
15683 | } | |
15684 | ||
15685 | ||
2f4c0a16 | 15686 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15687 | PyObject *resultobj; |
15688 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15689 | bool arg2 ; | |
15690 | PyObject * obj0 = 0 ; | |
15691 | PyObject * obj1 = 0 ; | |
15692 | char *kwnames[] = { | |
15693 | (char *) "self",(char *) "m_metaDown", NULL | |
15694 | }; | |
15695 | ||
15696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15699 | arg2 = (bool) SWIG_AsBool(obj1); | |
15700 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15701 | if (arg1) (arg1)->m_metaDown = arg2; |
15702 | ||
15703 | Py_INCREF(Py_None); resultobj = Py_None; | |
15704 | return resultobj; | |
15705 | fail: | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
2f4c0a16 | 15710 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15711 | PyObject *resultobj; |
15712 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15713 | bool result; | |
15714 | PyObject * obj0 = 0 ; | |
15715 | char *kwnames[] = { | |
15716 | (char *) "self", NULL | |
15717 | }; | |
15718 | ||
15719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15722 | result = (bool) ((arg1)->m_metaDown); |
15723 | ||
02a34c4c | 15724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15725 | return resultobj; |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
2f4c0a16 | 15731 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15732 | PyObject *resultobj; |
15733 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15734 | bool arg2 ; | |
15735 | PyObject * obj0 = 0 ; | |
15736 | PyObject * obj1 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "self",(char *) "m_scanCode", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15744 | arg2 = (bool) SWIG_AsBool(obj1); | |
15745 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15746 | if (arg1) (arg1)->m_scanCode = arg2; |
15747 | ||
15748 | Py_INCREF(Py_None); resultobj = Py_None; | |
15749 | return resultobj; | |
15750 | fail: | |
15751 | return NULL; | |
15752 | } | |
15753 | ||
15754 | ||
2f4c0a16 | 15755 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15756 | PyObject *resultobj; |
15757 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15758 | bool result; | |
15759 | PyObject * obj0 = 0 ; | |
15760 | char *kwnames[] = { | |
15761 | (char *) "self", NULL | |
15762 | }; | |
15763 | ||
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15767 | result = (bool) ((arg1)->m_scanCode); |
15768 | ||
02a34c4c | 15769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15770 | return resultobj; |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
2f4c0a16 | 15776 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15777 | PyObject *resultobj; |
15778 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15779 | unsigned int arg2 ; |
d14a1e28 RD |
15780 | PyObject * obj0 = 0 ; |
15781 | PyObject * obj1 = 0 ; | |
15782 | char *kwnames[] = { | |
15783 | (char *) "self",(char *) "m_rawCode", NULL | |
15784 | }; | |
15785 | ||
15786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15789 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15791 | if (arg1) (arg1)->m_rawCode = arg2; |
15792 | ||
15793 | Py_INCREF(Py_None); resultobj = Py_None; | |
15794 | return resultobj; | |
15795 | fail: | |
15796 | return NULL; | |
15797 | } | |
15798 | ||
15799 | ||
2f4c0a16 | 15800 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15801 | PyObject *resultobj; |
15802 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15803 | unsigned int result; |
d14a1e28 RD |
15804 | PyObject * obj0 = 0 ; |
15805 | char *kwnames[] = { | |
15806 | (char *) "self", NULL | |
15807 | }; | |
15808 | ||
15809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15812 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 15813 | |
2f4c0a16 | 15814 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15815 | return resultobj; |
15816 | fail: | |
15817 | return NULL; | |
15818 | } | |
15819 | ||
15820 | ||
2f4c0a16 | 15821 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15822 | PyObject *resultobj; |
15823 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15824 | unsigned int arg2 ; |
d14a1e28 RD |
15825 | PyObject * obj0 = 0 ; |
15826 | PyObject * obj1 = 0 ; | |
15827 | char *kwnames[] = { | |
15828 | (char *) "self",(char *) "m_rawFlags", NULL | |
15829 | }; | |
15830 | ||
15831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15834 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15836 | if (arg1) (arg1)->m_rawFlags = arg2; |
15837 | ||
15838 | Py_INCREF(Py_None); resultobj = Py_None; | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
15842 | } | |
15843 | ||
15844 | ||
2f4c0a16 | 15845 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15846 | PyObject *resultobj; |
15847 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15848 | unsigned int result; |
d14a1e28 RD |
15849 | PyObject * obj0 = 0 ; |
15850 | char *kwnames[] = { | |
15851 | (char *) "self", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15857 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 15858 | |
2f4c0a16 | 15859 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15860 | return resultobj; |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
2f4c0a16 | 15866 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15867 | PyObject *obj; |
15868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15869 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
15870 | Py_INCREF(obj); | |
15871 | return Py_BuildValue((char *)""); | |
15872 | } | |
2f4c0a16 | 15873 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15874 | PyObject *resultobj; |
15875 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
15876 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
15877 | int arg2 = (int) 0 ; | |
15878 | wxSizeEvent *result; | |
15879 | wxSize temp1 ; | |
15880 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15882 | char *kwnames[] = { |
15883 | (char *) "sz",(char *) "winid", NULL | |
15884 | }; | |
15885 | ||
8edf1c75 | 15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15887 | if (obj0) { |
15888 | { | |
15889 | arg1 = &temp1; | |
15890 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
15891 | } | |
15892 | } | |
8edf1c75 | 15893 | if (obj1) { |
2f4c0a16 RD |
15894 | arg2 = (int) SWIG_AsInt(obj1); |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15896 | } |
d14a1e28 RD |
15897 | { |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15899 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
15900 | ||
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
2f4c0a16 | 15904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
15905 | return resultobj; |
15906 | fail: | |
15907 | return NULL; | |
15908 | } | |
15909 | ||
15910 | ||
2f4c0a16 | 15911 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15912 | PyObject *resultobj; |
15913 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15914 | wxSize result; | |
15915 | PyObject * obj0 = 0 ; | |
15916 | char *kwnames[] = { | |
15917 | (char *) "self", NULL | |
15918 | }; | |
15919 | ||
15920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15923 | { |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15925 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
15929 | } | |
15930 | { | |
15931 | wxSize * resultptr; | |
15932 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 15933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15934 | } |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
2f4c0a16 | 15941 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15942 | PyObject *resultobj; |
15943 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15944 | wxRect result; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15953 | { |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
15956 | ||
15957 | wxPyEndAllowThreads(__tstate); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | { | |
15961 | wxRect * resultptr; | |
15962 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 15963 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
15964 | } |
15965 | return resultobj; | |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
2f4c0a16 | 15971 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15972 | PyObject *resultobj; |
15973 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15974 | wxRect arg2 ; | |
15975 | wxRect *argp2 ; | |
15976 | PyObject * obj0 = 0 ; | |
15977 | PyObject * obj1 = 0 ; | |
15978 | char *kwnames[] = { | |
15979 | (char *) "self",(char *) "rect", NULL | |
15980 | }; | |
15981 | ||
15982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15985 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
15986 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15987 | arg2 = *argp2; | |
d14a1e28 RD |
15988 | { |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | (arg1)->SetRect(arg2); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | Py_INCREF(Py_None); resultobj = Py_None; | |
15996 | return resultobj; | |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
2f4c0a16 | 16002 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16003 | PyObject *resultobj; |
16004 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16005 | wxSize arg2 ; | |
16006 | wxSize *argp2 ; | |
16007 | PyObject * obj0 = 0 ; | |
16008 | PyObject * obj1 = 0 ; | |
16009 | char *kwnames[] = { | |
16010 | (char *) "self",(char *) "size", NULL | |
16011 | }; | |
16012 | ||
16013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16016 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16017 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16018 | arg2 = *argp2; | |
d14a1e28 RD |
16019 | { |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16021 | wxSizeEvent_SetSize(arg1,arg2); | |
16022 | ||
16023 | wxPyEndAllowThreads(__tstate); | |
16024 | if (PyErr_Occurred()) SWIG_fail; | |
16025 | } | |
16026 | Py_INCREF(Py_None); resultobj = Py_None; | |
16027 | return resultobj; | |
16028 | fail: | |
16029 | return NULL; | |
16030 | } | |
16031 | ||
16032 | ||
2f4c0a16 | 16033 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16034 | PyObject *resultobj; |
16035 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16036 | wxSize *arg2 = (wxSize *) 0 ; | |
16037 | PyObject * obj0 = 0 ; | |
16038 | PyObject * obj1 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self",(char *) "m_size", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16048 | if (arg1) (arg1)->m_size = *arg2; |
16049 | ||
16050 | Py_INCREF(Py_None); resultobj = Py_None; | |
16051 | return resultobj; | |
16052 | fail: | |
16053 | return NULL; | |
16054 | } | |
16055 | ||
16056 | ||
2f4c0a16 | 16057 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16058 | PyObject *resultobj; |
16059 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16060 | wxSize *result; | |
16061 | PyObject * obj0 = 0 ; | |
16062 | char *kwnames[] = { | |
16063 | (char *) "self", NULL | |
16064 | }; | |
16065 | ||
16066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16069 | result = (wxSize *)& ((arg1)->m_size); |
16070 | ||
2f4c0a16 | 16071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16072 | return resultobj; |
16073 | fail: | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
2f4c0a16 | 16078 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16079 | PyObject *resultobj; |
16080 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16081 | wxRect *arg2 = (wxRect *) 0 ; | |
16082 | PyObject * obj0 = 0 ; | |
16083 | PyObject * obj1 = 0 ; | |
16084 | char *kwnames[] = { | |
16085 | (char *) "self",(char *) "m_rect", NULL | |
16086 | }; | |
16087 | ||
16088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16093 | if (arg1) (arg1)->m_rect = *arg2; |
16094 | ||
16095 | Py_INCREF(Py_None); resultobj = Py_None; | |
16096 | return resultobj; | |
16097 | fail: | |
16098 | return NULL; | |
16099 | } | |
16100 | ||
16101 | ||
2f4c0a16 | 16102 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16103 | PyObject *resultobj; |
16104 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16105 | wxRect *result; | |
16106 | PyObject * obj0 = 0 ; | |
16107 | char *kwnames[] = { | |
16108 | (char *) "self", NULL | |
16109 | }; | |
16110 | ||
16111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16114 | result = (wxRect *)& ((arg1)->m_rect); |
16115 | ||
2f4c0a16 | 16116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16117 | return resultobj; |
16118 | fail: | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
2f4c0a16 | 16123 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16124 | PyObject *obj; |
16125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16126 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16127 | Py_INCREF(obj); | |
16128 | return Py_BuildValue((char *)""); | |
16129 | } | |
2f4c0a16 | 16130 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16131 | PyObject *resultobj; |
16132 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16133 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16134 | int arg2 = (int) 0 ; | |
16135 | wxMoveEvent *result; | |
16136 | wxPoint temp1 ; | |
16137 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16138 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16139 | char *kwnames[] = { |
16140 | (char *) "pos",(char *) "winid", NULL | |
16141 | }; | |
16142 | ||
8edf1c75 | 16143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16144 | if (obj0) { |
16145 | { | |
16146 | arg1 = &temp1; | |
16147 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16148 | } | |
16149 | } | |
8edf1c75 | 16150 | if (obj1) { |
2f4c0a16 RD |
16151 | arg2 = (int) SWIG_AsInt(obj1); |
16152 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16153 | } |
d14a1e28 RD |
16154 | { |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
2f4c0a16 | 16161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16162 | return resultobj; |
16163 | fail: | |
16164 | return NULL; | |
16165 | } | |
16166 | ||
16167 | ||
2f4c0a16 | 16168 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16169 | PyObject *resultobj; |
16170 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16171 | wxPoint result; | |
16172 | PyObject * obj0 = 0 ; | |
16173 | char *kwnames[] = { | |
16174 | (char *) "self", NULL | |
16175 | }; | |
16176 | ||
16177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16180 | { |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | { | |
16188 | wxPoint * resultptr; | |
16189 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 16190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16191 | } |
16192 | return resultobj; | |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
2f4c0a16 | 16198 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16199 | PyObject *resultobj; |
16200 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16201 | wxRect result; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "self", NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16210 | { |
16211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16212 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16213 | ||
16214 | wxPyEndAllowThreads(__tstate); | |
16215 | if (PyErr_Occurred()) SWIG_fail; | |
16216 | } | |
16217 | { | |
16218 | wxRect * resultptr; | |
16219 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16221 | } |
16222 | return resultobj; | |
16223 | fail: | |
16224 | return NULL; | |
16225 | } | |
16226 | ||
16227 | ||
2f4c0a16 | 16228 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16229 | PyObject *resultobj; |
16230 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16231 | wxRect arg2 ; | |
16232 | wxRect *argp2 ; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | PyObject * obj1 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "self",(char *) "rect", NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16242 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16243 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16244 | arg2 = *argp2; | |
d14a1e28 RD |
16245 | { |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16247 | (arg1)->SetRect(arg2); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
16252 | Py_INCREF(Py_None); resultobj = Py_None; | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
2f4c0a16 | 16259 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16260 | PyObject *resultobj; |
16261 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16262 | wxPoint arg2 ; | |
16263 | wxPoint *argp2 ; | |
16264 | PyObject * obj0 = 0 ; | |
16265 | PyObject * obj1 = 0 ; | |
16266 | char *kwnames[] = { | |
16267 | (char *) "self",(char *) "pos", NULL | |
16268 | }; | |
16269 | ||
16270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16273 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16274 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16275 | arg2 = *argp2; | |
d14a1e28 RD |
16276 | { |
16277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16278 | wxMoveEvent_SetPosition(arg1,arg2); | |
16279 | ||
16280 | wxPyEndAllowThreads(__tstate); | |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | Py_INCREF(Py_None); resultobj = Py_None; | |
16284 | return resultobj; | |
16285 | fail: | |
16286 | return NULL; | |
16287 | } | |
16288 | ||
16289 | ||
2f4c0a16 | 16290 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16291 | PyObject *resultobj; |
16292 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16293 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16294 | PyObject * obj0 = 0 ; | |
16295 | PyObject * obj1 = 0 ; | |
16296 | char *kwnames[] = { | |
16297 | (char *) "self",(char *) "m_pos", NULL | |
16298 | }; | |
16299 | ||
16300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16303 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16305 | if (arg1) (arg1)->m_pos = *arg2; |
16306 | ||
16307 | Py_INCREF(Py_None); resultobj = Py_None; | |
16308 | return resultobj; | |
16309 | fail: | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
2f4c0a16 | 16314 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16315 | PyObject *resultobj; |
16316 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16317 | wxPoint *result; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self", NULL | |
16321 | }; | |
16322 | ||
16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16326 | result = (wxPoint *)& ((arg1)->m_pos); |
16327 | ||
2f4c0a16 | 16328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16329 | return resultobj; |
16330 | fail: | |
16331 | return NULL; | |
16332 | } | |
16333 | ||
16334 | ||
2f4c0a16 | 16335 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16336 | PyObject *resultobj; |
16337 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16338 | wxRect *arg2 = (wxRect *) 0 ; | |
16339 | PyObject * obj0 = 0 ; | |
16340 | PyObject * obj1 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self",(char *) "m_rect", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16350 | if (arg1) (arg1)->m_rect = *arg2; |
16351 | ||
16352 | Py_INCREF(Py_None); resultobj = Py_None; | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
2f4c0a16 | 16359 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16360 | PyObject *resultobj; |
16361 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16362 | wxRect *result; | |
16363 | PyObject * obj0 = 0 ; | |
16364 | char *kwnames[] = { | |
16365 | (char *) "self", NULL | |
16366 | }; | |
16367 | ||
16368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16371 | result = (wxRect *)& ((arg1)->m_rect); |
16372 | ||
2f4c0a16 | 16373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16374 | return resultobj; |
16375 | fail: | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
2f4c0a16 | 16380 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16381 | PyObject *obj; |
16382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16383 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16384 | Py_INCREF(obj); | |
16385 | return Py_BuildValue((char *)""); | |
16386 | } | |
2f4c0a16 | 16387 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16388 | PyObject *resultobj; |
16389 | int arg1 = (int) 0 ; | |
16390 | wxPaintEvent *result; | |
8edf1c75 | 16391 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16392 | char *kwnames[] = { |
16393 | (char *) "Id", NULL | |
16394 | }; | |
16395 | ||
8edf1c75 RD |
16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16397 | if (obj0) { | |
2f4c0a16 RD |
16398 | arg1 = (int) SWIG_AsInt(obj0); |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16400 | } |
d14a1e28 RD |
16401 | { |
16402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16403 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16404 | ||
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
2f4c0a16 | 16408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16409 | return resultobj; |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
2f4c0a16 | 16415 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16416 | PyObject *obj; |
16417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16418 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16419 | Py_INCREF(obj); | |
16420 | return Py_BuildValue((char *)""); | |
16421 | } | |
2f4c0a16 | 16422 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16423 | PyObject *resultobj; |
16424 | int arg1 = (int) 0 ; | |
16425 | wxNcPaintEvent *result; | |
8edf1c75 | 16426 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16427 | char *kwnames[] = { |
16428 | (char *) "winid", NULL | |
16429 | }; | |
16430 | ||
8edf1c75 RD |
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16432 | if (obj0) { | |
2f4c0a16 RD |
16433 | arg1 = (int) SWIG_AsInt(obj0); |
16434 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16435 | } |
d14a1e28 RD |
16436 | { |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
2f4c0a16 | 16443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16444 | return resultobj; |
16445 | fail: | |
16446 | return NULL; | |
16447 | } | |
16448 | ||
16449 | ||
2f4c0a16 | 16450 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16451 | PyObject *obj; |
16452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16453 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16454 | Py_INCREF(obj); | |
16455 | return Py_BuildValue((char *)""); | |
16456 | } | |
2f4c0a16 | 16457 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16458 | PyObject *resultobj; |
16459 | int arg1 = (int) 0 ; | |
16460 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16461 | wxEraseEvent *result; | |
8edf1c75 | 16462 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16463 | PyObject * obj1 = 0 ; |
16464 | char *kwnames[] = { | |
16465 | (char *) "Id",(char *) "dc", NULL | |
16466 | }; | |
16467 | ||
8edf1c75 RD |
16468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16469 | if (obj0) { | |
2f4c0a16 RD |
16470 | arg1 = (int) SWIG_AsInt(obj0); |
16471 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16472 | } |
d14a1e28 | 16473 | if (obj1) { |
2f4c0a16 RD |
16474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16476 | } |
16477 | { | |
16478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16479 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16480 | ||
16481 | wxPyEndAllowThreads(__tstate); | |
16482 | if (PyErr_Occurred()) SWIG_fail; | |
16483 | } | |
2f4c0a16 | 16484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16485 | return resultobj; |
16486 | fail: | |
16487 | return NULL; | |
16488 | } | |
16489 | ||
16490 | ||
2f4c0a16 | 16491 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16492 | PyObject *resultobj; |
16493 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16494 | wxDC *result; | |
16495 | PyObject * obj0 = 0 ; | |
16496 | char *kwnames[] = { | |
16497 | (char *) "self", NULL | |
16498 | }; | |
16499 | ||
16500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16503 | { |
16504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16505 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16506 | ||
16507 | wxPyEndAllowThreads(__tstate); | |
16508 | if (PyErr_Occurred()) SWIG_fail; | |
16509 | } | |
16510 | { | |
16511 | resultobj = wxPyMake_wxObject(result); | |
16512 | } | |
16513 | return resultobj; | |
16514 | fail: | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
2f4c0a16 | 16519 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16520 | PyObject *obj; |
16521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16522 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16523 | Py_INCREF(obj); | |
16524 | return Py_BuildValue((char *)""); | |
16525 | } | |
2f4c0a16 | 16526 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16527 | PyObject *resultobj; |
16528 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16529 | int arg2 = (int) 0 ; | |
16530 | wxFocusEvent *result; | |
8edf1c75 RD |
16531 | PyObject * obj0 = 0 ; |
16532 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16533 | char *kwnames[] = { |
16534 | (char *) "type",(char *) "winid", NULL | |
16535 | }; | |
16536 | ||
8edf1c75 RD |
16537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16538 | if (obj0) { | |
2f4c0a16 RD |
16539 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16541 | } |
16542 | if (obj1) { | |
2f4c0a16 RD |
16543 | arg2 = (int) SWIG_AsInt(obj1); |
16544 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16545 | } |
d14a1e28 RD |
16546 | { |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16548 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16549 | ||
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
2f4c0a16 | 16553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16554 | return resultobj; |
16555 | fail: | |
16556 | return NULL; | |
16557 | } | |
16558 | ||
16559 | ||
2f4c0a16 | 16560 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16561 | PyObject *resultobj; |
16562 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16563 | wxWindow *result; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | char *kwnames[] = { | |
16566 | (char *) "self", NULL | |
16567 | }; | |
16568 | ||
16569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16572 | { |
16573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16574 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16575 | ||
16576 | wxPyEndAllowThreads(__tstate); | |
16577 | if (PyErr_Occurred()) SWIG_fail; | |
16578 | } | |
16579 | { | |
16580 | resultobj = wxPyMake_wxObject(result); | |
16581 | } | |
16582 | return resultobj; | |
16583 | fail: | |
16584 | return NULL; | |
16585 | } | |
16586 | ||
16587 | ||
2f4c0a16 | 16588 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16589 | PyObject *resultobj; |
16590 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16591 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16592 | PyObject * obj0 = 0 ; | |
16593 | PyObject * obj1 = 0 ; | |
16594 | char *kwnames[] = { | |
16595 | (char *) "self",(char *) "win", NULL | |
16596 | }; | |
16597 | ||
16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16603 | { |
16604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16605 | (arg1)->SetWindow(arg2); | |
16606 | ||
16607 | wxPyEndAllowThreads(__tstate); | |
16608 | if (PyErr_Occurred()) SWIG_fail; | |
16609 | } | |
16610 | Py_INCREF(Py_None); resultobj = Py_None; | |
16611 | return resultobj; | |
16612 | fail: | |
16613 | return NULL; | |
16614 | } | |
16615 | ||
16616 | ||
2f4c0a16 | 16617 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16618 | PyObject *obj; |
16619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16620 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16621 | Py_INCREF(obj); | |
16622 | return Py_BuildValue((char *)""); | |
16623 | } | |
2f4c0a16 | 16624 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16625 | PyObject *resultobj; |
16626 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16627 | wxChildFocusEvent *result; | |
16628 | PyObject * obj0 = 0 ; | |
16629 | char *kwnames[] = { | |
16630 | (char *) "win", NULL | |
16631 | }; | |
16632 | ||
16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16634 | if (obj0) { | |
2f4c0a16 RD |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16637 | } |
16638 | { | |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16641 | ||
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
2f4c0a16 | 16645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
16646 | return resultobj; |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
2f4c0a16 | 16652 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16653 | PyObject *resultobj; |
16654 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16655 | wxWindow *result; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "self", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
16663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16664 | { |
16665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16666 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16667 | ||
16668 | wxPyEndAllowThreads(__tstate); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | } | |
16671 | { | |
16672 | resultobj = wxPyMake_wxObject(result); | |
16673 | } | |
16674 | return resultobj; | |
16675 | fail: | |
16676 | return NULL; | |
16677 | } | |
16678 | ||
16679 | ||
2f4c0a16 | 16680 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16681 | PyObject *obj; |
16682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16683 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16684 | Py_INCREF(obj); | |
16685 | return Py_BuildValue((char *)""); | |
16686 | } | |
2f4c0a16 | 16687 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16688 | PyObject *resultobj; |
16689 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16690 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16691 | int arg3 = (int) 0 ; |
16692 | wxActivateEvent *result; | |
8edf1c75 | 16693 | PyObject * obj0 = 0 ; |
d14a1e28 | 16694 | PyObject * obj1 = 0 ; |
8edf1c75 | 16695 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16696 | char *kwnames[] = { |
16697 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16698 | }; | |
16699 | ||
8edf1c75 RD |
16700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16701 | if (obj0) { | |
2f4c0a16 RD |
16702 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16704 | } |
d14a1e28 | 16705 | if (obj1) { |
2f4c0a16 RD |
16706 | arg2 = (bool) SWIG_AsBool(obj1); |
16707 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16708 | } |
16709 | if (obj2) { | |
2f4c0a16 RD |
16710 | arg3 = (int) SWIG_AsInt(obj2); |
16711 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16712 | } |
16713 | { | |
16714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16715 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16716 | ||
16717 | wxPyEndAllowThreads(__tstate); | |
16718 | if (PyErr_Occurred()) SWIG_fail; | |
16719 | } | |
2f4c0a16 | 16720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
16721 | return resultobj; |
16722 | fail: | |
16723 | return NULL; | |
16724 | } | |
16725 | ||
16726 | ||
2f4c0a16 | 16727 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16728 | PyObject *resultobj; |
16729 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16730 | bool result; | |
16731 | PyObject * obj0 = 0 ; | |
16732 | char *kwnames[] = { | |
16733 | (char *) "self", NULL | |
16734 | }; | |
16735 | ||
16736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
16738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16739 | { |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
02a34c4c | 16746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16747 | return resultobj; |
16748 | fail: | |
16749 | return NULL; | |
16750 | } | |
16751 | ||
16752 | ||
2f4c0a16 | 16753 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16754 | PyObject *obj; |
16755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16756 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16757 | Py_INCREF(obj); | |
16758 | return Py_BuildValue((char *)""); | |
16759 | } | |
2f4c0a16 | 16760 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16761 | PyObject *resultobj; |
16762 | int arg1 = (int) 0 ; | |
16763 | wxInitDialogEvent *result; | |
8edf1c75 | 16764 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16765 | char *kwnames[] = { |
16766 | (char *) "Id", NULL | |
16767 | }; | |
16768 | ||
8edf1c75 RD |
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16770 | if (obj0) { | |
2f4c0a16 RD |
16771 | arg1 = (int) SWIG_AsInt(obj0); |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16773 | } |
d14a1e28 RD |
16774 | { |
16775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16776 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16777 | ||
16778 | wxPyEndAllowThreads(__tstate); | |
16779 | if (PyErr_Occurred()) SWIG_fail; | |
16780 | } | |
2f4c0a16 | 16781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
16782 | return resultobj; |
16783 | fail: | |
16784 | return NULL; | |
16785 | } | |
16786 | ||
16787 | ||
2f4c0a16 | 16788 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16789 | PyObject *obj; |
16790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16791 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16792 | Py_INCREF(obj); | |
16793 | return Py_BuildValue((char *)""); | |
16794 | } | |
2f4c0a16 | 16795 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16796 | PyObject *resultobj; |
16797 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16798 | int arg2 = (int) 0 ; | |
16799 | wxMenu *arg3 = (wxMenu *) NULL ; | |
16800 | wxMenuEvent *result; | |
8edf1c75 RD |
16801 | PyObject * obj0 = 0 ; |
16802 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16803 | PyObject * obj2 = 0 ; |
16804 | char *kwnames[] = { | |
16805 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
16806 | }; | |
16807 | ||
8edf1c75 RD |
16808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16809 | if (obj0) { | |
2f4c0a16 RD |
16810 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16811 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16812 | } |
16813 | if (obj1) { | |
2f4c0a16 RD |
16814 | arg2 = (int) SWIG_AsInt(obj1); |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16816 | } |
d14a1e28 | 16817 | if (obj2) { |
2f4c0a16 RD |
16818 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
16819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16820 | } |
16821 | { | |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16823 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
16824 | ||
16825 | wxPyEndAllowThreads(__tstate); | |
16826 | if (PyErr_Occurred()) SWIG_fail; | |
16827 | } | |
2f4c0a16 | 16828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
16829 | return resultobj; |
16830 | fail: | |
16831 | return NULL; | |
16832 | } | |
16833 | ||
16834 | ||
2f4c0a16 | 16835 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16836 | PyObject *resultobj; |
16837 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16838 | int result; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | char *kwnames[] = { | |
16841 | (char *) "self", NULL | |
16842 | }; | |
16843 | ||
16844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16847 | { |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
16850 | ||
16851 | wxPyEndAllowThreads(__tstate); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
2f4c0a16 | 16854 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16855 | return resultobj; |
16856 | fail: | |
16857 | return NULL; | |
16858 | } | |
16859 | ||
16860 | ||
2f4c0a16 | 16861 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16862 | PyObject *resultobj; |
16863 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16864 | bool result; | |
16865 | PyObject * obj0 = 0 ; | |
16866 | char *kwnames[] = { | |
16867 | (char *) "self", NULL | |
16868 | }; | |
16869 | ||
16870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16873 | { |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16875 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
02a34c4c | 16880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16881 | return resultobj; |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
2f4c0a16 | 16887 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16888 | PyObject *resultobj; |
16889 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16890 | wxMenu *result; | |
16891 | PyObject * obj0 = 0 ; | |
16892 | char *kwnames[] = { | |
16893 | (char *) "self", NULL | |
16894 | }; | |
16895 | ||
16896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16899 | { |
16900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16901 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
16902 | ||
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | { | |
16907 | resultobj = wxPyMake_wxObject(result); | |
16908 | } | |
16909 | return resultobj; | |
16910 | fail: | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
2f4c0a16 | 16915 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16916 | PyObject *obj; |
16917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16918 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
16919 | Py_INCREF(obj); | |
16920 | return Py_BuildValue((char *)""); | |
16921 | } | |
2f4c0a16 | 16922 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16923 | PyObject *resultobj; |
16924 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16925 | int arg2 = (int) 0 ; | |
16926 | wxCloseEvent *result; | |
8edf1c75 RD |
16927 | PyObject * obj0 = 0 ; |
16928 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16929 | char *kwnames[] = { |
16930 | (char *) "type",(char *) "winid", NULL | |
16931 | }; | |
16932 | ||
8edf1c75 RD |
16933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
16934 | if (obj0) { | |
2f4c0a16 RD |
16935 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16936 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16937 | } |
16938 | if (obj1) { | |
2f4c0a16 RD |
16939 | arg2 = (int) SWIG_AsInt(obj1); |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16941 | } |
d14a1e28 RD |
16942 | { |
16943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16944 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
16945 | ||
16946 | wxPyEndAllowThreads(__tstate); | |
16947 | if (PyErr_Occurred()) SWIG_fail; | |
16948 | } | |
2f4c0a16 | 16949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
16950 | return resultobj; |
16951 | fail: | |
16952 | return NULL; | |
16953 | } | |
16954 | ||
16955 | ||
2f4c0a16 | 16956 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16957 | PyObject *resultobj; |
16958 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16959 | bool arg2 ; | |
16960 | PyObject * obj0 = 0 ; | |
16961 | PyObject * obj1 = 0 ; | |
16962 | char *kwnames[] = { | |
16963 | (char *) "self",(char *) "logOff", NULL | |
16964 | }; | |
16965 | ||
16966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
16968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16969 | arg2 = (bool) SWIG_AsBool(obj1); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16971 | { |
16972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16973 | (arg1)->SetLoggingOff(arg2); | |
16974 | ||
16975 | wxPyEndAllowThreads(__tstate); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
16978 | Py_INCREF(Py_None); resultobj = Py_None; | |
16979 | return resultobj; | |
16980 | fail: | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
2f4c0a16 | 16985 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16986 | PyObject *resultobj; |
16987 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16988 | bool result; | |
16989 | PyObject * obj0 = 0 ; | |
16990 | char *kwnames[] = { | |
16991 | (char *) "self", NULL | |
16992 | }; | |
16993 | ||
16994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
16996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16997 | { |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
02a34c4c | 17004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17005 | return resultobj; |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
2f4c0a16 | 17011 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17012 | PyObject *resultobj; |
17013 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 17014 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17015 | PyObject * obj0 = 0 ; |
17016 | PyObject * obj1 = 0 ; | |
17017 | char *kwnames[] = { | |
17018 | (char *) "self",(char *) "veto", NULL | |
17019 | }; | |
17020 | ||
17021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17024 | if (obj1) { |
2f4c0a16 RD |
17025 | arg2 = (bool) SWIG_AsBool(obj1); |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17027 | } |
17028 | { | |
17029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17030 | (arg1)->Veto(arg2); | |
17031 | ||
17032 | wxPyEndAllowThreads(__tstate); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | Py_INCREF(Py_None); resultobj = Py_None; | |
17036 | return resultobj; | |
17037 | fail: | |
17038 | return NULL; | |
17039 | } | |
17040 | ||
17041 | ||
2f4c0a16 | 17042 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17043 | PyObject *resultobj; |
17044 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17045 | bool arg2 ; | |
17046 | PyObject * obj0 = 0 ; | |
17047 | PyObject * obj1 = 0 ; | |
17048 | char *kwnames[] = { | |
17049 | (char *) "self",(char *) "canVeto", NULL | |
17050 | }; | |
17051 | ||
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17055 | arg2 = (bool) SWIG_AsBool(obj1); | |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17057 | { |
17058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17059 | (arg1)->SetCanVeto(arg2); | |
17060 | ||
17061 | wxPyEndAllowThreads(__tstate); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | Py_INCREF(Py_None); resultobj = Py_None; | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | return NULL; | |
17068 | } | |
17069 | ||
17070 | ||
2f4c0a16 | 17071 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17072 | PyObject *resultobj; |
17073 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17074 | bool result; | |
17075 | PyObject * obj0 = 0 ; | |
17076 | char *kwnames[] = { | |
17077 | (char *) "self", NULL | |
17078 | }; | |
17079 | ||
17080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17083 | { |
17084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17085 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17086 | ||
17087 | wxPyEndAllowThreads(__tstate); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | } | |
02a34c4c | 17090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17091 | return resultobj; |
17092 | fail: | |
17093 | return NULL; | |
17094 | } | |
17095 | ||
17096 | ||
2f4c0a16 | 17097 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17098 | PyObject *resultobj; |
17099 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17100 | bool result; | |
17101 | PyObject * obj0 = 0 ; | |
17102 | char *kwnames[] = { | |
17103 | (char *) "self", NULL | |
17104 | }; | |
17105 | ||
17106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17109 | { |
17110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17111 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17112 | ||
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
02a34c4c | 17116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17117 | return resultobj; |
17118 | fail: | |
17119 | return NULL; | |
17120 | } | |
17121 | ||
17122 | ||
2f4c0a16 | 17123 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17124 | PyObject *obj; |
17125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17126 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17127 | Py_INCREF(obj); | |
17128 | return Py_BuildValue((char *)""); | |
17129 | } | |
2f4c0a16 | 17130 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17131 | PyObject *resultobj; |
17132 | int arg1 = (int) 0 ; | |
423f194a | 17133 | bool arg2 = (bool) False ; |
d14a1e28 | 17134 | wxShowEvent *result; |
8edf1c75 | 17135 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17136 | PyObject * obj1 = 0 ; |
17137 | char *kwnames[] = { | |
17138 | (char *) "winid",(char *) "show", NULL | |
17139 | }; | |
17140 | ||
8edf1c75 RD |
17141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17142 | if (obj0) { | |
2f4c0a16 RD |
17143 | arg1 = (int) SWIG_AsInt(obj0); |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17145 | } |
d14a1e28 | 17146 | if (obj1) { |
2f4c0a16 RD |
17147 | arg2 = (bool) SWIG_AsBool(obj1); |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17149 | } |
17150 | { | |
17151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17152 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17153 | ||
17154 | wxPyEndAllowThreads(__tstate); | |
17155 | if (PyErr_Occurred()) SWIG_fail; | |
17156 | } | |
2f4c0a16 | 17157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17158 | return resultobj; |
17159 | fail: | |
17160 | return NULL; | |
17161 | } | |
17162 | ||
17163 | ||
2f4c0a16 | 17164 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17165 | PyObject *resultobj; |
17166 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17167 | bool arg2 ; | |
17168 | PyObject * obj0 = 0 ; | |
17169 | PyObject * obj1 = 0 ; | |
17170 | char *kwnames[] = { | |
17171 | (char *) "self",(char *) "show", NULL | |
17172 | }; | |
17173 | ||
17174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17177 | arg2 = (bool) SWIG_AsBool(obj1); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17179 | { |
17180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17181 | (arg1)->SetShow(arg2); | |
17182 | ||
17183 | wxPyEndAllowThreads(__tstate); | |
17184 | if (PyErr_Occurred()) SWIG_fail; | |
17185 | } | |
17186 | Py_INCREF(Py_None); resultobj = Py_None; | |
17187 | return resultobj; | |
17188 | fail: | |
17189 | return NULL; | |
17190 | } | |
17191 | ||
17192 | ||
2f4c0a16 | 17193 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17194 | PyObject *resultobj; |
17195 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17196 | bool result; | |
17197 | PyObject * obj0 = 0 ; | |
17198 | char *kwnames[] = { | |
17199 | (char *) "self", NULL | |
17200 | }; | |
17201 | ||
17202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17205 | { |
17206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17207 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17208 | ||
17209 | wxPyEndAllowThreads(__tstate); | |
17210 | if (PyErr_Occurred()) SWIG_fail; | |
17211 | } | |
02a34c4c | 17212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17213 | return resultobj; |
17214 | fail: | |
17215 | return NULL; | |
17216 | } | |
17217 | ||
17218 | ||
2f4c0a16 | 17219 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17220 | PyObject *obj; |
17221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17222 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17223 | Py_INCREF(obj); | |
17224 | return Py_BuildValue((char *)""); | |
17225 | } | |
2f4c0a16 | 17226 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17227 | PyObject *resultobj; |
17228 | int arg1 = (int) 0 ; | |
423f194a | 17229 | bool arg2 = (bool) True ; |
d14a1e28 | 17230 | wxIconizeEvent *result; |
8edf1c75 | 17231 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17232 | PyObject * obj1 = 0 ; |
17233 | char *kwnames[] = { | |
17234 | (char *) "id",(char *) "iconized", NULL | |
17235 | }; | |
17236 | ||
8edf1c75 RD |
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17238 | if (obj0) { | |
2f4c0a16 RD |
17239 | arg1 = (int) SWIG_AsInt(obj0); |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17241 | } |
d14a1e28 | 17242 | if (obj1) { |
2f4c0a16 RD |
17243 | arg2 = (bool) SWIG_AsBool(obj1); |
17244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17245 | } |
17246 | { | |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17248 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17249 | ||
17250 | wxPyEndAllowThreads(__tstate); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
2f4c0a16 | 17253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17254 | return resultobj; |
17255 | fail: | |
17256 | return NULL; | |
17257 | } | |
17258 | ||
17259 | ||
2f4c0a16 | 17260 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17261 | PyObject *resultobj; |
17262 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17263 | bool result; | |
17264 | PyObject * obj0 = 0 ; | |
17265 | char *kwnames[] = { | |
17266 | (char *) "self", NULL | |
17267 | }; | |
17268 | ||
17269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17272 | { |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | result = (bool)(arg1)->Iconized(); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
02a34c4c | 17279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17280 | return resultobj; |
17281 | fail: | |
17282 | return NULL; | |
17283 | } | |
17284 | ||
17285 | ||
2f4c0a16 | 17286 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17287 | PyObject *obj; |
17288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17289 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17290 | Py_INCREF(obj); | |
17291 | return Py_BuildValue((char *)""); | |
17292 | } | |
2f4c0a16 | 17293 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17294 | PyObject *resultobj; |
17295 | int arg1 = (int) 0 ; | |
17296 | wxMaximizeEvent *result; | |
8edf1c75 | 17297 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17298 | char *kwnames[] = { |
17299 | (char *) "id", NULL | |
17300 | }; | |
17301 | ||
8edf1c75 RD |
17302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17303 | if (obj0) { | |
2f4c0a16 RD |
17304 | arg1 = (int) SWIG_AsInt(obj0); |
17305 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17306 | } |
d14a1e28 RD |
17307 | { |
17308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17309 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17310 | ||
17311 | wxPyEndAllowThreads(__tstate); | |
17312 | if (PyErr_Occurred()) SWIG_fail; | |
17313 | } | |
2f4c0a16 | 17314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17315 | return resultobj; |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
2f4c0a16 | 17321 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17322 | PyObject *obj; |
17323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17324 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17325 | Py_INCREF(obj); | |
17326 | return Py_BuildValue((char *)""); | |
17327 | } | |
2f4c0a16 | 17328 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17329 | PyObject *resultobj; |
17330 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17331 | wxPoint result; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | char *kwnames[] = { | |
17334 | (char *) "self", NULL | |
17335 | }; | |
17336 | ||
17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17340 | { |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (arg1)->GetPosition(); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | { | |
17348 | wxPoint * resultptr; | |
17349 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 17350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17351 | } |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
2f4c0a16 | 17358 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17359 | PyObject *resultobj; |
17360 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17361 | int result; | |
17362 | PyObject * obj0 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17370 | { |
17371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17372 | result = (int)(arg1)->GetNumberOfFiles(); | |
17373 | ||
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
2f4c0a16 | 17377 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17378 | return resultobj; |
17379 | fail: | |
17380 | return NULL; | |
17381 | } | |
17382 | ||
17383 | ||
2f4c0a16 | 17384 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17385 | PyObject *resultobj; |
17386 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17387 | PyObject *result; | |
17388 | PyObject * obj0 = 0 ; | |
17389 | char *kwnames[] = { | |
17390 | (char *) "self", NULL | |
17391 | }; | |
17392 | ||
17393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17396 | { |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17398 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17399 | ||
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | resultobj = result; | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
2f4c0a16 | 17410 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17411 | PyObject *obj; |
17412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17413 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17414 | Py_INCREF(obj); | |
17415 | return Py_BuildValue((char *)""); | |
17416 | } | |
2f4c0a16 | 17417 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17418 | PyObject *resultobj; |
423f194a | 17419 | int arg1 = (int) 0 ; |
d14a1e28 | 17420 | wxUpdateUIEvent *result; |
8edf1c75 | 17421 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17422 | char *kwnames[] = { |
17423 | (char *) "commandId", NULL | |
17424 | }; | |
17425 | ||
8edf1c75 RD |
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17427 | if (obj0) { | |
2f4c0a16 RD |
17428 | arg1 = (int) SWIG_AsInt(obj0); |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17430 | } |
d14a1e28 RD |
17431 | { |
17432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17433 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17434 | ||
17435 | wxPyEndAllowThreads(__tstate); | |
17436 | if (PyErr_Occurred()) SWIG_fail; | |
17437 | } | |
2f4c0a16 | 17438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17439 | return resultobj; |
17440 | fail: | |
17441 | return NULL; | |
17442 | } | |
17443 | ||
17444 | ||
2f4c0a16 | 17445 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17446 | PyObject *resultobj; |
17447 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17448 | bool result; | |
17449 | PyObject * obj0 = 0 ; | |
17450 | char *kwnames[] = { | |
17451 | (char *) "self", NULL | |
17452 | }; | |
17453 | ||
17454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17457 | { |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
02a34c4c | 17464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17465 | return resultobj; |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
2f4c0a16 | 17471 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17472 | PyObject *resultobj; |
17473 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17474 | bool result; | |
17475 | PyObject * obj0 = 0 ; | |
17476 | char *kwnames[] = { | |
17477 | (char *) "self", NULL | |
17478 | }; | |
17479 | ||
17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17483 | { |
17484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17485 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17486 | ||
17487 | wxPyEndAllowThreads(__tstate); | |
17488 | if (PyErr_Occurred()) SWIG_fail; | |
17489 | } | |
02a34c4c | 17490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17491 | return resultobj; |
17492 | fail: | |
17493 | return NULL; | |
17494 | } | |
17495 | ||
17496 | ||
2f4c0a16 | 17497 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17498 | PyObject *resultobj; |
17499 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17500 | wxString result; | |
17501 | PyObject * obj0 = 0 ; | |
17502 | char *kwnames[] = { | |
17503 | (char *) "self", NULL | |
17504 | }; | |
17505 | ||
17506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17509 | { |
17510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17511 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17512 | ||
17513 | wxPyEndAllowThreads(__tstate); | |
17514 | if (PyErr_Occurred()) SWIG_fail; | |
17515 | } | |
17516 | { | |
17517 | #if wxUSE_UNICODE | |
17518 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17519 | #else | |
17520 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17521 | #endif | |
17522 | } | |
17523 | return resultobj; | |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
2f4c0a16 | 17529 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17530 | PyObject *resultobj; |
17531 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17532 | bool result; | |
17533 | PyObject * obj0 = 0 ; | |
17534 | char *kwnames[] = { | |
17535 | (char *) "self", NULL | |
17536 | }; | |
17537 | ||
17538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17541 | { |
17542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17543 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17544 | ||
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
02a34c4c | 17548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17549 | return resultobj; |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
2f4c0a16 | 17555 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17556 | PyObject *resultobj; |
17557 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17558 | bool result; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | char *kwnames[] = { | |
17561 | (char *) "self", NULL | |
17562 | }; | |
17563 | ||
17564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17567 | { |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
02a34c4c | 17574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17575 | return resultobj; |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
2f4c0a16 | 17581 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17582 | PyObject *resultobj; |
17583 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17584 | bool result; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | char *kwnames[] = { | |
17587 | (char *) "self", NULL | |
17588 | }; | |
17589 | ||
17590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17593 | { |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
02a34c4c | 17600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17601 | return resultobj; |
17602 | fail: | |
17603 | return NULL; | |
17604 | } | |
17605 | ||
17606 | ||
2f4c0a16 | 17607 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17608 | PyObject *resultobj; |
17609 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17610 | bool arg2 ; | |
17611 | PyObject * obj0 = 0 ; | |
17612 | PyObject * obj1 = 0 ; | |
17613 | char *kwnames[] = { | |
17614 | (char *) "self",(char *) "check", NULL | |
17615 | }; | |
17616 | ||
17617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17620 | arg2 = (bool) SWIG_AsBool(obj1); | |
17621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17622 | { |
17623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17624 | (arg1)->Check(arg2); | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | Py_INCREF(Py_None); resultobj = Py_None; | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
2f4c0a16 | 17636 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17637 | PyObject *resultobj; |
17638 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17639 | bool arg2 ; | |
17640 | PyObject * obj0 = 0 ; | |
17641 | PyObject * obj1 = 0 ; | |
17642 | char *kwnames[] = { | |
17643 | (char *) "self",(char *) "enable", NULL | |
17644 | }; | |
17645 | ||
17646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17649 | arg2 = (bool) SWIG_AsBool(obj1); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17651 | { |
17652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17653 | (arg1)->Enable(arg2); | |
17654 | ||
17655 | wxPyEndAllowThreads(__tstate); | |
17656 | if (PyErr_Occurred()) SWIG_fail; | |
17657 | } | |
17658 | Py_INCREF(Py_None); resultobj = Py_None; | |
17659 | return resultobj; | |
17660 | fail: | |
17661 | return NULL; | |
17662 | } | |
17663 | ||
17664 | ||
2f4c0a16 | 17665 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17666 | PyObject *resultobj; |
17667 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17668 | wxString *arg2 = 0 ; | |
423f194a | 17669 | bool temp2 = False ; |
d14a1e28 RD |
17670 | PyObject * obj0 = 0 ; |
17671 | PyObject * obj1 = 0 ; | |
17672 | char *kwnames[] = { | |
17673 | (char *) "self",(char *) "text", NULL | |
17674 | }; | |
17675 | ||
17676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17679 | { |
17680 | arg2 = wxString_in_helper(obj1); | |
17681 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17682 | temp2 = True; |
d14a1e28 RD |
17683 | } |
17684 | { | |
17685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17686 | (arg1)->SetText((wxString const &)*arg2); | |
17687 | ||
17688 | wxPyEndAllowThreads(__tstate); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | } | |
17691 | Py_INCREF(Py_None); resultobj = Py_None; | |
17692 | { | |
17693 | if (temp2) | |
17694 | delete arg2; | |
17695 | } | |
17696 | return resultobj; | |
17697 | fail: | |
17698 | { | |
17699 | if (temp2) | |
17700 | delete arg2; | |
17701 | } | |
17702 | return NULL; | |
17703 | } | |
17704 | ||
17705 | ||
2f4c0a16 | 17706 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17707 | PyObject *resultobj; |
17708 | long arg1 ; | |
8edf1c75 | 17709 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17710 | char *kwnames[] = { |
17711 | (char *) "updateInterval", NULL | |
17712 | }; | |
17713 | ||
8edf1c75 | 17714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17715 | arg1 = (long) SWIG_AsLong(obj0); |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17717 | { |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17720 | ||
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
17724 | Py_INCREF(Py_None); resultobj = Py_None; | |
17725 | return resultobj; | |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
2f4c0a16 | 17731 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17732 | PyObject *resultobj; |
17733 | long result; | |
17734 | char *kwnames[] = { | |
17735 | NULL | |
17736 | }; | |
17737 | ||
17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17739 | { | |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17742 | ||
17743 | wxPyEndAllowThreads(__tstate); | |
17744 | if (PyErr_Occurred()) SWIG_fail; | |
17745 | } | |
2f4c0a16 | 17746 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
17747 | return resultobj; |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
2f4c0a16 | 17753 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17754 | PyObject *resultobj; |
17755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17756 | bool result; | |
17757 | PyObject * obj0 = 0 ; | |
17758 | char *kwnames[] = { | |
17759 | (char *) "win", NULL | |
17760 | }; | |
17761 | ||
17762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17765 | { |
17766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17767 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17768 | ||
17769 | wxPyEndAllowThreads(__tstate); | |
17770 | if (PyErr_Occurred()) SWIG_fail; | |
17771 | } | |
02a34c4c | 17772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17773 | return resultobj; |
17774 | fail: | |
17775 | return NULL; | |
17776 | } | |
17777 | ||
17778 | ||
2f4c0a16 | 17779 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17780 | PyObject *resultobj; |
17781 | char *kwnames[] = { | |
17782 | NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | wxUpdateUIEvent::ResetUpdateTime(); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | Py_INCREF(Py_None); resultobj = Py_None; | |
17794 | return resultobj; | |
17795 | fail: | |
17796 | return NULL; | |
17797 | } | |
17798 | ||
17799 | ||
2f4c0a16 | 17800 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17801 | PyObject *resultobj; |
17802 | int arg1 ; | |
8edf1c75 | 17803 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17804 | char *kwnames[] = { |
17805 | (char *) "mode", NULL | |
17806 | }; | |
17807 | ||
8edf1c75 | 17808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17809 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
17810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17811 | { |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
17814 | ||
17815 | wxPyEndAllowThreads(__tstate); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
17817 | } | |
17818 | Py_INCREF(Py_None); resultobj = Py_None; | |
17819 | return resultobj; | |
17820 | fail: | |
17821 | return NULL; | |
17822 | } | |
17823 | ||
17824 | ||
2f4c0a16 | 17825 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17826 | PyObject *resultobj; |
17827 | int result; | |
17828 | char *kwnames[] = { | |
17829 | NULL | |
17830 | }; | |
17831 | ||
17832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
17833 | { | |
17834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17835 | result = (int)wxUpdateUIEvent::GetMode(); | |
17836 | ||
17837 | wxPyEndAllowThreads(__tstate); | |
17838 | if (PyErr_Occurred()) SWIG_fail; | |
17839 | } | |
2f4c0a16 | 17840 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17841 | return resultobj; |
17842 | fail: | |
17843 | return NULL; | |
17844 | } | |
17845 | ||
17846 | ||
2f4c0a16 | 17847 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17848 | PyObject *obj; |
17849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17850 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
17851 | Py_INCREF(obj); | |
17852 | return Py_BuildValue((char *)""); | |
17853 | } | |
2f4c0a16 | 17854 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17855 | PyObject *resultobj; |
17856 | wxSysColourChangedEvent *result; | |
17857 | char *kwnames[] = { | |
17858 | NULL | |
17859 | }; | |
17860 | ||
17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
17862 | { | |
17863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17864 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
17865 | ||
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
2f4c0a16 | 17869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
17870 | return resultobj; |
17871 | fail: | |
17872 | return NULL; | |
17873 | } | |
17874 | ||
17875 | ||
2f4c0a16 | 17876 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17877 | PyObject *obj; |
17878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17879 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
17880 | Py_INCREF(obj); | |
17881 | return Py_BuildValue((char *)""); | |
17882 | } | |
2f4c0a16 | 17883 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17884 | PyObject *resultobj; |
423f194a | 17885 | int arg1 = (int) 0 ; |
d14a1e28 RD |
17886 | wxWindow *arg2 = (wxWindow *) NULL ; |
17887 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 17888 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17889 | PyObject * obj1 = 0 ; |
17890 | char *kwnames[] = { | |
17891 | (char *) "winid",(char *) "gainedCapture", NULL | |
17892 | }; | |
17893 | ||
8edf1c75 RD |
17894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
17895 | if (obj0) { | |
2f4c0a16 RD |
17896 | arg1 = (int) SWIG_AsInt(obj0); |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17898 | } |
d14a1e28 | 17899 | if (obj1) { |
2f4c0a16 RD |
17900 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
17901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17902 | } |
17903 | { | |
17904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17905 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
17906 | ||
17907 | wxPyEndAllowThreads(__tstate); | |
17908 | if (PyErr_Occurred()) SWIG_fail; | |
17909 | } | |
2f4c0a16 | 17910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
17911 | return resultobj; |
17912 | fail: | |
17913 | return NULL; | |
17914 | } | |
17915 | ||
17916 | ||
2f4c0a16 | 17917 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17918 | PyObject *resultobj; |
17919 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
17920 | wxWindow *result; | |
17921 | PyObject * obj0 = 0 ; | |
17922 | char *kwnames[] = { | |
17923 | (char *) "self", NULL | |
17924 | }; | |
17925 | ||
17926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
17928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17929 | { |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
17932 | ||
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | { | |
17937 | resultobj = wxPyMake_wxObject(result); | |
17938 | } | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | return NULL; | |
17942 | } | |
17943 | ||
17944 | ||
2f4c0a16 | 17945 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17946 | PyObject *obj; |
17947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17948 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
17949 | Py_INCREF(obj); | |
17950 | return Py_BuildValue((char *)""); | |
17951 | } | |
2f4c0a16 | 17952 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17953 | PyObject *resultobj; |
17954 | wxDisplayChangedEvent *result; | |
17955 | char *kwnames[] = { | |
17956 | NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
17963 | ||
17964 | wxPyEndAllowThreads(__tstate); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
2f4c0a16 | 17967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
17968 | return resultobj; |
17969 | fail: | |
17970 | return NULL; | |
17971 | } | |
17972 | ||
17973 | ||
2f4c0a16 | 17974 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17975 | PyObject *obj; |
17976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17977 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
17978 | Py_INCREF(obj); | |
17979 | return Py_BuildValue((char *)""); | |
17980 | } | |
2f4c0a16 | 17981 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17982 | PyObject *resultobj; |
423f194a | 17983 | int arg1 = (int) 0 ; |
d14a1e28 | 17984 | wxPaletteChangedEvent *result; |
8edf1c75 | 17985 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17986 | char *kwnames[] = { |
17987 | (char *) "id", NULL | |
17988 | }; | |
17989 | ||
8edf1c75 RD |
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
17991 | if (obj0) { | |
2f4c0a16 RD |
17992 | arg1 = (int) SWIG_AsInt(obj0); |
17993 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17994 | } |
d14a1e28 RD |
17995 | { |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
2f4c0a16 | 18002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18003 | return resultobj; |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
2f4c0a16 | 18009 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18010 | PyObject *resultobj; |
18011 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18012 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | PyObject * obj1 = 0 ; | |
18015 | char *kwnames[] = { | |
18016 | (char *) "self",(char *) "win", NULL | |
18017 | }; | |
18018 | ||
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18024 | { |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | (arg1)->SetChangedWindow(arg2); | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | Py_INCREF(Py_None); resultobj = Py_None; | |
18032 | return resultobj; | |
18033 | fail: | |
18034 | return NULL; | |
18035 | } | |
18036 | ||
18037 | ||
2f4c0a16 | 18038 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18039 | PyObject *resultobj; |
18040 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18041 | wxWindow *result; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "self", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18050 | { |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | { | |
18058 | resultobj = wxPyMake_wxObject(result); | |
18059 | } | |
18060 | return resultobj; | |
18061 | fail: | |
18062 | return NULL; | |
18063 | } | |
18064 | ||
18065 | ||
2f4c0a16 | 18066 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18067 | PyObject *obj; |
18068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18069 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18070 | Py_INCREF(obj); | |
18071 | return Py_BuildValue((char *)""); | |
18072 | } | |
2f4c0a16 | 18073 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18074 | PyObject *resultobj; |
423f194a | 18075 | int arg1 = (int) 0 ; |
d14a1e28 | 18076 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 18077 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18078 | char *kwnames[] = { |
18079 | (char *) "winid", NULL | |
18080 | }; | |
18081 | ||
8edf1c75 RD |
18082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18083 | if (obj0) { | |
2f4c0a16 RD |
18084 | arg1 = (int) SWIG_AsInt(obj0); |
18085 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18086 | } |
d14a1e28 RD |
18087 | { |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18090 | ||
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
2f4c0a16 | 18094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18095 | return resultobj; |
18096 | fail: | |
18097 | return NULL; | |
18098 | } | |
18099 | ||
18100 | ||
2f4c0a16 | 18101 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18102 | PyObject *resultobj; |
18103 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18104 | bool arg2 ; | |
18105 | PyObject * obj0 = 0 ; | |
18106 | PyObject * obj1 = 0 ; | |
18107 | char *kwnames[] = { | |
18108 | (char *) "self",(char *) "realized", NULL | |
18109 | }; | |
18110 | ||
18111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18114 | arg2 = (bool) SWIG_AsBool(obj1); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18116 | { |
18117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18118 | (arg1)->SetPaletteRealized(arg2); | |
18119 | ||
18120 | wxPyEndAllowThreads(__tstate); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | Py_INCREF(Py_None); resultobj = Py_None; | |
18124 | return resultobj; | |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
2f4c0a16 | 18130 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18131 | PyObject *resultobj; |
18132 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18133 | bool result; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18142 | { |
18143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18144 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18145 | ||
18146 | wxPyEndAllowThreads(__tstate); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | } | |
02a34c4c | 18149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18150 | return resultobj; |
18151 | fail: | |
18152 | return NULL; | |
18153 | } | |
18154 | ||
18155 | ||
2f4c0a16 | 18156 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18157 | PyObject *obj; |
18158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18159 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18160 | Py_INCREF(obj); | |
18161 | return Py_BuildValue((char *)""); | |
18162 | } | |
2f4c0a16 | 18163 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18164 | PyObject *resultobj; |
18165 | wxNavigationKeyEvent *result; | |
18166 | char *kwnames[] = { | |
18167 | NULL | |
18168 | }; | |
18169 | ||
18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18171 | { | |
18172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18173 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18174 | ||
18175 | wxPyEndAllowThreads(__tstate); | |
18176 | if (PyErr_Occurred()) SWIG_fail; | |
18177 | } | |
2f4c0a16 | 18178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18179 | return resultobj; |
18180 | fail: | |
18181 | return NULL; | |
18182 | } | |
18183 | ||
18184 | ||
2f4c0a16 | 18185 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18186 | PyObject *resultobj; |
18187 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18188 | bool result; | |
18189 | PyObject * obj0 = 0 ; | |
18190 | char *kwnames[] = { | |
18191 | (char *) "self", NULL | |
18192 | }; | |
18193 | ||
18194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18197 | { |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
02a34c4c | 18204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18205 | return resultobj; |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
2f4c0a16 | 18211 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18212 | PyObject *resultobj; |
18213 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18214 | bool arg2 ; | |
18215 | PyObject * obj0 = 0 ; | |
18216 | PyObject * obj1 = 0 ; | |
18217 | char *kwnames[] = { | |
18218 | (char *) "self",(char *) "bForward", NULL | |
18219 | }; | |
18220 | ||
18221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18224 | arg2 = (bool) SWIG_AsBool(obj1); | |
18225 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18226 | { |
18227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18228 | (arg1)->SetDirection(arg2); | |
18229 | ||
18230 | wxPyEndAllowThreads(__tstate); | |
18231 | if (PyErr_Occurred()) SWIG_fail; | |
18232 | } | |
18233 | Py_INCREF(Py_None); resultobj = Py_None; | |
18234 | return resultobj; | |
18235 | fail: | |
18236 | return NULL; | |
18237 | } | |
18238 | ||
18239 | ||
2f4c0a16 | 18240 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18241 | PyObject *resultobj; |
18242 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18243 | bool result; | |
18244 | PyObject * obj0 = 0 ; | |
18245 | char *kwnames[] = { | |
18246 | (char *) "self", NULL | |
18247 | }; | |
18248 | ||
18249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18252 | { |
18253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18254 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18255 | ||
18256 | wxPyEndAllowThreads(__tstate); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
02a34c4c | 18259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18260 | return resultobj; |
18261 | fail: | |
18262 | return NULL; | |
18263 | } | |
18264 | ||
18265 | ||
2f4c0a16 | 18266 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18267 | PyObject *resultobj; |
18268 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18269 | bool arg2 ; | |
18270 | PyObject * obj0 = 0 ; | |
18271 | PyObject * obj1 = 0 ; | |
18272 | char *kwnames[] = { | |
18273 | (char *) "self",(char *) "bIs", NULL | |
18274 | }; | |
18275 | ||
18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18279 | arg2 = (bool) SWIG_AsBool(obj1); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18281 | { |
18282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18283 | (arg1)->SetWindowChange(arg2); | |
18284 | ||
18285 | wxPyEndAllowThreads(__tstate); | |
18286 | if (PyErr_Occurred()) SWIG_fail; | |
18287 | } | |
18288 | Py_INCREF(Py_None); resultobj = Py_None; | |
18289 | return resultobj; | |
18290 | fail: | |
18291 | return NULL; | |
18292 | } | |
18293 | ||
18294 | ||
2f4c0a16 | 18295 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18296 | PyObject *resultobj; |
18297 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18298 | wxWindow *result; | |
18299 | PyObject * obj0 = 0 ; | |
18300 | char *kwnames[] = { | |
18301 | (char *) "self", NULL | |
18302 | }; | |
18303 | ||
18304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18307 | { |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18310 | ||
18311 | wxPyEndAllowThreads(__tstate); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
18313 | } | |
18314 | { | |
18315 | resultobj = wxPyMake_wxObject(result); | |
18316 | } | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | return NULL; | |
18320 | } | |
18321 | ||
18322 | ||
2f4c0a16 | 18323 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18324 | PyObject *resultobj; |
18325 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18326 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18327 | PyObject * obj0 = 0 ; | |
18328 | PyObject * obj1 = 0 ; | |
18329 | char *kwnames[] = { | |
18330 | (char *) "self",(char *) "win", NULL | |
18331 | }; | |
18332 | ||
18333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18338 | { |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | (arg1)->SetCurrentFocus(arg2); | |
18341 | ||
18342 | wxPyEndAllowThreads(__tstate); | |
18343 | if (PyErr_Occurred()) SWIG_fail; | |
18344 | } | |
18345 | Py_INCREF(Py_None); resultobj = Py_None; | |
18346 | return resultobj; | |
18347 | fail: | |
18348 | return NULL; | |
18349 | } | |
18350 | ||
18351 | ||
2f4c0a16 | 18352 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18353 | PyObject *obj; |
18354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18355 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18356 | Py_INCREF(obj); | |
18357 | return Py_BuildValue((char *)""); | |
18358 | } | |
2f4c0a16 | 18359 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18360 | PyObject *resultobj; |
18361 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18362 | wxWindowCreateEvent *result; | |
18363 | PyObject * obj0 = 0 ; | |
18364 | char *kwnames[] = { | |
18365 | (char *) "win", NULL | |
18366 | }; | |
18367 | ||
18368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18369 | if (obj0) { | |
2f4c0a16 RD |
18370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18372 | } |
18373 | { | |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18376 | ||
18377 | wxPyEndAllowThreads(__tstate); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
18379 | } | |
2f4c0a16 | 18380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18381 | return resultobj; |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
2f4c0a16 | 18387 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18388 | PyObject *resultobj; |
18389 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18390 | wxWindow *result; | |
18391 | PyObject * obj0 = 0 ; | |
18392 | char *kwnames[] = { | |
18393 | (char *) "self", NULL | |
18394 | }; | |
18395 | ||
18396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18399 | { |
18400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18401 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18402 | ||
18403 | wxPyEndAllowThreads(__tstate); | |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
18405 | } | |
18406 | { | |
18407 | resultobj = wxPyMake_wxObject(result); | |
18408 | } | |
18409 | return resultobj; | |
18410 | fail: | |
18411 | return NULL; | |
18412 | } | |
18413 | ||
18414 | ||
2f4c0a16 | 18415 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18416 | PyObject *obj; |
18417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18418 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18419 | Py_INCREF(obj); | |
18420 | return Py_BuildValue((char *)""); | |
18421 | } | |
2f4c0a16 | 18422 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18423 | PyObject *resultobj; |
18424 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18425 | wxWindowDestroyEvent *result; | |
18426 | PyObject * obj0 = 0 ; | |
18427 | char *kwnames[] = { | |
18428 | (char *) "win", NULL | |
18429 | }; | |
18430 | ||
18431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18432 | if (obj0) { | |
2f4c0a16 RD |
18433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18435 | } |
18436 | { | |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18438 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18439 | ||
18440 | wxPyEndAllowThreads(__tstate); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
18442 | } | |
2f4c0a16 | 18443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18444 | return resultobj; |
18445 | fail: | |
18446 | return NULL; | |
18447 | } | |
18448 | ||
18449 | ||
2f4c0a16 | 18450 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18451 | PyObject *resultobj; |
18452 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18453 | wxWindow *result; | |
18454 | PyObject * obj0 = 0 ; | |
18455 | char *kwnames[] = { | |
18456 | (char *) "self", NULL | |
18457 | }; | |
18458 | ||
18459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18462 | { |
18463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18464 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18465 | ||
18466 | wxPyEndAllowThreads(__tstate); | |
18467 | if (PyErr_Occurred()) SWIG_fail; | |
18468 | } | |
18469 | { | |
18470 | resultobj = wxPyMake_wxObject(result); | |
18471 | } | |
18472 | return resultobj; | |
18473 | fail: | |
18474 | return NULL; | |
18475 | } | |
18476 | ||
18477 | ||
2f4c0a16 | 18478 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18479 | PyObject *obj; |
18480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18481 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18482 | Py_INCREF(obj); | |
18483 | return Py_BuildValue((char *)""); | |
18484 | } | |
2f4c0a16 | 18485 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18486 | PyObject *resultobj; |
18487 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18488 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18489 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18490 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18491 | wxContextMenuEvent *result; | |
18492 | wxPoint temp3 ; | |
8edf1c75 RD |
18493 | PyObject * obj0 = 0 ; |
18494 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18495 | PyObject * obj2 = 0 ; |
18496 | char *kwnames[] = { | |
18497 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18498 | }; | |
18499 | ||
8edf1c75 RD |
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18501 | if (obj0) { | |
2f4c0a16 RD |
18502 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18504 | } |
18505 | if (obj1) { | |
2f4c0a16 RD |
18506 | arg2 = (int) SWIG_AsInt(obj1); |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18508 | } |
d14a1e28 RD |
18509 | if (obj2) { |
18510 | { | |
18511 | arg3 = &temp3; | |
18512 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18513 | } | |
18514 | } | |
18515 | { | |
18516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18517 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
2f4c0a16 | 18522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18523 | return resultobj; |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
2f4c0a16 | 18529 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18530 | PyObject *resultobj; |
18531 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18532 | wxPoint *result; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "self", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18541 | { |
18542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18543 | { | |
18544 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18545 | result = (wxPoint *) &_result_ref; | |
18546 | } | |
18547 | ||
18548 | wxPyEndAllowThreads(__tstate); | |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
18550 | } | |
2f4c0a16 | 18551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18552 | return resultobj; |
18553 | fail: | |
18554 | return NULL; | |
18555 | } | |
18556 | ||
18557 | ||
2f4c0a16 | 18558 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18559 | PyObject *resultobj; |
18560 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18561 | wxPoint *arg2 = 0 ; | |
18562 | wxPoint temp2 ; | |
18563 | PyObject * obj0 = 0 ; | |
18564 | PyObject * obj1 = 0 ; | |
18565 | char *kwnames[] = { | |
18566 | (char *) "self",(char *) "pos", NULL | |
18567 | }; | |
18568 | ||
18569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18572 | { |
18573 | arg2 = &temp2; | |
18574 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18575 | } | |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | Py_INCREF(Py_None); resultobj = Py_None; | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
2f4c0a16 | 18590 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18591 | PyObject *obj; |
18592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18593 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18594 | Py_INCREF(obj); | |
18595 | return Py_BuildValue((char *)""); | |
18596 | } | |
2f4c0a16 | 18597 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18598 | PyObject *resultobj; |
18599 | wxIdleEvent *result; | |
18600 | char *kwnames[] = { | |
18601 | NULL | |
18602 | }; | |
18603 | ||
18604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18605 | { | |
18606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18607 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18608 | ||
18609 | wxPyEndAllowThreads(__tstate); | |
18610 | if (PyErr_Occurred()) SWIG_fail; | |
18611 | } | |
2f4c0a16 | 18612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
18613 | return resultobj; |
18614 | fail: | |
18615 | return NULL; | |
18616 | } | |
18617 | ||
18618 | ||
2f4c0a16 | 18619 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18620 | PyObject *resultobj; |
18621 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18622 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18623 | PyObject * obj0 = 0 ; |
18624 | PyObject * obj1 = 0 ; | |
18625 | char *kwnames[] = { | |
18626 | (char *) "self",(char *) "needMore", NULL | |
18627 | }; | |
18628 | ||
18629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18632 | if (obj1) { |
2f4c0a16 RD |
18633 | arg2 = (bool) SWIG_AsBool(obj1); |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18635 | } |
18636 | { | |
18637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18638 | (arg1)->RequestMore(arg2); | |
18639 | ||
18640 | wxPyEndAllowThreads(__tstate); | |
18641 | if (PyErr_Occurred()) SWIG_fail; | |
18642 | } | |
18643 | Py_INCREF(Py_None); resultobj = Py_None; | |
18644 | return resultobj; | |
18645 | fail: | |
18646 | return NULL; | |
18647 | } | |
18648 | ||
18649 | ||
2f4c0a16 | 18650 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18651 | PyObject *resultobj; |
18652 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18653 | bool result; | |
18654 | PyObject * obj0 = 0 ; | |
18655 | char *kwnames[] = { | |
18656 | (char *) "self", NULL | |
18657 | }; | |
18658 | ||
18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18662 | { |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
02a34c4c | 18669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18670 | return resultobj; |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
2f4c0a16 | 18676 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18677 | PyObject *resultobj; |
18678 | int arg1 ; | |
8edf1c75 | 18679 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18680 | char *kwnames[] = { |
18681 | (char *) "mode", NULL | |
18682 | }; | |
18683 | ||
8edf1c75 | 18684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18685 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18687 | { |
18688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18689 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18690 | ||
18691 | wxPyEndAllowThreads(__tstate); | |
18692 | if (PyErr_Occurred()) SWIG_fail; | |
18693 | } | |
18694 | Py_INCREF(Py_None); resultobj = Py_None; | |
18695 | return resultobj; | |
18696 | fail: | |
18697 | return NULL; | |
18698 | } | |
18699 | ||
18700 | ||
2f4c0a16 | 18701 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18702 | PyObject *resultobj; |
18703 | int result; | |
18704 | char *kwnames[] = { | |
18705 | NULL | |
18706 | }; | |
18707 | ||
18708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18709 | { | |
18710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18711 | result = (int)wxIdleEvent::GetMode(); | |
18712 | ||
18713 | wxPyEndAllowThreads(__tstate); | |
18714 | if (PyErr_Occurred()) SWIG_fail; | |
18715 | } | |
2f4c0a16 | 18716 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18717 | return resultobj; |
18718 | fail: | |
18719 | return NULL; | |
18720 | } | |
18721 | ||
18722 | ||
2f4c0a16 | 18723 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18724 | PyObject *resultobj; |
18725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18726 | bool result; | |
18727 | PyObject * obj0 = 0 ; | |
18728 | char *kwnames[] = { | |
18729 | (char *) "win", NULL | |
18730 | }; | |
18731 | ||
18732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18735 | { |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
02a34c4c | 18742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18743 | return resultobj; |
18744 | fail: | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
2f4c0a16 | 18749 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18750 | PyObject *obj; |
18751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18752 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18753 | Py_INCREF(obj); | |
18754 | return Py_BuildValue((char *)""); | |
18755 | } | |
2f4c0a16 | 18756 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18757 | PyObject *resultobj; |
18758 | int arg1 = (int) 0 ; | |
18759 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18760 | wxPyEvent *result; | |
8edf1c75 RD |
18761 | PyObject * obj0 = 0 ; |
18762 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18763 | char *kwnames[] = { |
18764 | (char *) "winid",(char *) "commandType", NULL | |
18765 | }; | |
18766 | ||
8edf1c75 RD |
18767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
18768 | if (obj0) { | |
2f4c0a16 RD |
18769 | arg1 = (int) SWIG_AsInt(obj0); |
18770 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18771 | } |
18772 | if (obj1) { | |
2f4c0a16 RD |
18773 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
18774 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18775 | } |
d14a1e28 RD |
18776 | { |
18777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18778 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
18779 | ||
18780 | wxPyEndAllowThreads(__tstate); | |
18781 | if (PyErr_Occurred()) SWIG_fail; | |
18782 | } | |
2f4c0a16 | 18783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
18784 | return resultobj; |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
2f4c0a16 | 18790 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18791 | PyObject *resultobj; |
18792 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18793 | PyObject * obj0 = 0 ; | |
18794 | char *kwnames[] = { | |
18795 | (char *) "self", NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18801 | { |
18802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18803 | delete arg1; | |
18804 | ||
18805 | wxPyEndAllowThreads(__tstate); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | Py_INCREF(Py_None); resultobj = Py_None; | |
18809 | return resultobj; | |
18810 | fail: | |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
2f4c0a16 | 18815 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18816 | PyObject *resultobj; |
18817 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18818 | PyObject *arg2 = (PyObject *) 0 ; | |
18819 | PyObject * obj0 = 0 ; | |
18820 | PyObject * obj1 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self",(char *) "self", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18828 | arg2 = obj1; |
18829 | { | |
18830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18831 | (arg1)->SetSelf(arg2); | |
18832 | ||
18833 | wxPyEndAllowThreads(__tstate); | |
18834 | if (PyErr_Occurred()) SWIG_fail; | |
18835 | } | |
18836 | Py_INCREF(Py_None); resultobj = Py_None; | |
18837 | return resultobj; | |
18838 | fail: | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
2f4c0a16 | 18843 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18844 | PyObject *resultobj; |
18845 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18846 | PyObject *result; | |
18847 | PyObject * obj0 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18855 | { |
18856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18857 | result = (PyObject *)(arg1)->GetSelf(); | |
18858 | ||
18859 | wxPyEndAllowThreads(__tstate); | |
18860 | if (PyErr_Occurred()) SWIG_fail; | |
18861 | } | |
18862 | resultobj = result; | |
18863 | return resultobj; | |
18864 | fail: | |
18865 | return NULL; | |
18866 | } | |
18867 | ||
18868 | ||
2f4c0a16 | 18869 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18870 | PyObject *obj; |
18871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18872 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
18873 | Py_INCREF(obj); | |
18874 | return Py_BuildValue((char *)""); | |
18875 | } | |
2f4c0a16 | 18876 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18877 | PyObject *resultobj; |
18878 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18879 | int arg2 = (int) 0 ; | |
18880 | wxPyCommandEvent *result; | |
8edf1c75 RD |
18881 | PyObject * obj0 = 0 ; |
18882 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18883 | char *kwnames[] = { |
18884 | (char *) "commandType",(char *) "id", NULL | |
18885 | }; | |
18886 | ||
8edf1c75 RD |
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
18888 | if (obj0) { | |
2f4c0a16 RD |
18889 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18890 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18891 | } |
18892 | if (obj1) { | |
2f4c0a16 RD |
18893 | arg2 = (int) SWIG_AsInt(obj1); |
18894 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18895 | } |
d14a1e28 RD |
18896 | { |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18898 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
18899 | ||
18900 | wxPyEndAllowThreads(__tstate); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
2f4c0a16 | 18903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
18904 | return resultobj; |
18905 | fail: | |
18906 | return NULL; | |
18907 | } | |
18908 | ||
18909 | ||
2f4c0a16 | 18910 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18911 | PyObject *resultobj; |
18912 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18913 | PyObject * obj0 = 0 ; | |
18914 | char *kwnames[] = { | |
18915 | (char *) "self", NULL | |
18916 | }; | |
18917 | ||
18918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18921 | { |
18922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18923 | delete arg1; | |
18924 | ||
18925 | wxPyEndAllowThreads(__tstate); | |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
18927 | } | |
18928 | Py_INCREF(Py_None); resultobj = Py_None; | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | return NULL; | |
18932 | } | |
18933 | ||
18934 | ||
2f4c0a16 | 18935 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18936 | PyObject *resultobj; |
18937 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18938 | PyObject *arg2 = (PyObject *) 0 ; | |
18939 | PyObject * obj0 = 0 ; | |
18940 | PyObject * obj1 = 0 ; | |
18941 | char *kwnames[] = { | |
18942 | (char *) "self",(char *) "self", NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18948 | arg2 = obj1; |
18949 | { | |
18950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18951 | (arg1)->SetSelf(arg2); | |
18952 | ||
18953 | wxPyEndAllowThreads(__tstate); | |
18954 | if (PyErr_Occurred()) SWIG_fail; | |
18955 | } | |
18956 | Py_INCREF(Py_None); resultobj = Py_None; | |
18957 | return resultobj; | |
18958 | fail: | |
18959 | return NULL; | |
18960 | } | |
18961 | ||
18962 | ||
2f4c0a16 | 18963 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18964 | PyObject *resultobj; |
18965 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18966 | PyObject *result; | |
18967 | PyObject * obj0 = 0 ; | |
18968 | char *kwnames[] = { | |
18969 | (char *) "self", NULL | |
18970 | }; | |
18971 | ||
18972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18975 | { |
18976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18977 | result = (PyObject *)(arg1)->GetSelf(); | |
18978 | ||
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
18982 | resultobj = result; | |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
2f4c0a16 | 18989 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18990 | PyObject *obj; |
18991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18992 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
18993 | Py_INCREF(obj); | |
18994 | return Py_BuildValue((char *)""); | |
18995 | } | |
2f4c0a16 | 18996 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18997 | PyObject *resultobj; |
18998 | wxPyApp *result; | |
18999 | char *kwnames[] = { | |
19000 | NULL | |
19001 | }; | |
19002 | ||
19003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | result = (wxPyApp *)new_wxPyApp(); | |
19007 | ||
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
19011 | { | |
19012 | resultobj = wxPyMake_wxObject(result); | |
19013 | } | |
19014 | return resultobj; | |
19015 | fail: | |
19016 | return NULL; | |
19017 | } | |
19018 | ||
19019 | ||
2f4c0a16 | 19020 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19021 | PyObject *resultobj; |
19022 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19023 | PyObject * obj0 = 0 ; | |
19024 | char *kwnames[] = { | |
19025 | (char *) "self", NULL | |
19026 | }; | |
19027 | ||
19028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19031 | { |
19032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19033 | delete arg1; | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | Py_INCREF(Py_None); resultobj = Py_None; | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
2f4c0a16 | 19045 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19046 | PyObject *resultobj; |
19047 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19048 | PyObject *arg2 = (PyObject *) 0 ; | |
19049 | PyObject *arg3 = (PyObject *) 0 ; | |
19050 | PyObject * obj0 = 0 ; | |
19051 | PyObject * obj1 = 0 ; | |
19052 | PyObject * obj2 = 0 ; | |
19053 | char *kwnames[] = { | |
19054 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19055 | }; | |
19056 | ||
19057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19060 | arg2 = obj1; |
19061 | arg3 = obj2; | |
19062 | { | |
19063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19064 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19065 | ||
19066 | wxPyEndAllowThreads(__tstate); | |
19067 | if (PyErr_Occurred()) SWIG_fail; | |
19068 | } | |
19069 | Py_INCREF(Py_None); resultobj = Py_None; | |
19070 | return resultobj; | |
19071 | fail: | |
19072 | return NULL; | |
19073 | } | |
19074 | ||
19075 | ||
2f4c0a16 | 19076 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19077 | PyObject *resultobj; |
19078 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19079 | wxString result; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19088 | { |
19089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19090 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19091 | ||
19092 | wxPyEndAllowThreads(__tstate); | |
19093 | if (PyErr_Occurred()) SWIG_fail; | |
19094 | } | |
19095 | { | |
19096 | #if wxUSE_UNICODE | |
19097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19098 | #else | |
19099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19100 | #endif | |
19101 | } | |
19102 | return resultobj; | |
19103 | fail: | |
19104 | return NULL; | |
19105 | } | |
19106 | ||
19107 | ||
2f4c0a16 | 19108 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19109 | PyObject *resultobj; |
19110 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19111 | wxString *arg2 = 0 ; | |
423f194a | 19112 | bool temp2 = False ; |
d14a1e28 RD |
19113 | PyObject * obj0 = 0 ; |
19114 | PyObject * obj1 = 0 ; | |
19115 | char *kwnames[] = { | |
19116 | (char *) "self",(char *) "name", NULL | |
19117 | }; | |
19118 | ||
19119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19122 | { |
19123 | arg2 = wxString_in_helper(obj1); | |
19124 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19125 | temp2 = True; |
d14a1e28 RD |
19126 | } |
19127 | { | |
19128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19129 | (arg1)->SetAppName((wxString const &)*arg2); | |
19130 | ||
19131 | wxPyEndAllowThreads(__tstate); | |
19132 | if (PyErr_Occurred()) SWIG_fail; | |
19133 | } | |
19134 | Py_INCREF(Py_None); resultobj = Py_None; | |
19135 | { | |
19136 | if (temp2) | |
19137 | delete arg2; | |
19138 | } | |
19139 | return resultobj; | |
19140 | fail: | |
19141 | { | |
19142 | if (temp2) | |
19143 | delete arg2; | |
19144 | } | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
2f4c0a16 | 19149 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19150 | PyObject *resultobj; |
19151 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19152 | wxString result; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19161 | { |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19163 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19164 | ||
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
19168 | { | |
19169 | #if wxUSE_UNICODE | |
19170 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19171 | #else | |
19172 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19173 | #endif | |
19174 | } | |
19175 | return resultobj; | |
19176 | fail: | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
2f4c0a16 | 19181 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19182 | PyObject *resultobj; |
19183 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19184 | wxString *arg2 = 0 ; | |
423f194a | 19185 | bool temp2 = False ; |
d14a1e28 RD |
19186 | PyObject * obj0 = 0 ; |
19187 | PyObject * obj1 = 0 ; | |
19188 | char *kwnames[] = { | |
19189 | (char *) "self",(char *) "name", NULL | |
19190 | }; | |
19191 | ||
19192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19195 | { |
19196 | arg2 = wxString_in_helper(obj1); | |
19197 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19198 | temp2 = True; |
d14a1e28 RD |
19199 | } |
19200 | { | |
19201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19202 | (arg1)->SetClassName((wxString const &)*arg2); | |
19203 | ||
19204 | wxPyEndAllowThreads(__tstate); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | } | |
19207 | Py_INCREF(Py_None); resultobj = Py_None; | |
19208 | { | |
19209 | if (temp2) | |
19210 | delete arg2; | |
19211 | } | |
19212 | return resultobj; | |
19213 | fail: | |
19214 | { | |
19215 | if (temp2) | |
19216 | delete arg2; | |
19217 | } | |
19218 | return NULL; | |
19219 | } | |
19220 | ||
19221 | ||
2f4c0a16 | 19222 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19223 | PyObject *resultobj; |
19224 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19225 | wxString *result; | |
19226 | PyObject * obj0 = 0 ; | |
19227 | char *kwnames[] = { | |
19228 | (char *) "self", NULL | |
19229 | }; | |
19230 | ||
19231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19234 | { |
19235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19236 | { | |
19237 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19238 | result = (wxString *) &_result_ref; | |
19239 | } | |
19240 | ||
19241 | wxPyEndAllowThreads(__tstate); | |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
19243 | } | |
0f774bef RD |
19244 | { |
19245 | #if wxUSE_UNICODE | |
19246 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19247 | #else | |
19248 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19249 | #endif | |
19250 | } | |
d14a1e28 RD |
19251 | return resultobj; |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
2f4c0a16 | 19257 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19258 | PyObject *resultobj; |
19259 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19260 | wxString *arg2 = 0 ; | |
423f194a | 19261 | bool temp2 = False ; |
d14a1e28 RD |
19262 | PyObject * obj0 = 0 ; |
19263 | PyObject * obj1 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "self",(char *) "name", NULL | |
19266 | }; | |
19267 | ||
19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19271 | { |
19272 | arg2 = wxString_in_helper(obj1); | |
19273 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19274 | temp2 = True; |
d14a1e28 RD |
19275 | } |
19276 | { | |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19279 | ||
19280 | wxPyEndAllowThreads(__tstate); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | } | |
19283 | Py_INCREF(Py_None); resultobj = Py_None; | |
19284 | { | |
19285 | if (temp2) | |
19286 | delete arg2; | |
19287 | } | |
19288 | return resultobj; | |
19289 | fail: | |
19290 | { | |
19291 | if (temp2) | |
19292 | delete arg2; | |
19293 | } | |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
2f4c0a16 | 19298 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19299 | PyObject *resultobj; |
19300 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19301 | wxAppTraits *result; | |
19302 | PyObject * obj0 = 0 ; | |
19303 | char *kwnames[] = { | |
19304 | (char *) "self", NULL | |
19305 | }; | |
19306 | ||
19307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19310 | { |
19311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19312 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19313 | ||
19314 | wxPyEndAllowThreads(__tstate); | |
19315 | if (PyErr_Occurred()) SWIG_fail; | |
19316 | } | |
2f4c0a16 | 19317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19318 | return resultobj; |
19319 | fail: | |
19320 | return NULL; | |
19321 | } | |
19322 | ||
19323 | ||
2f4c0a16 | 19324 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19325 | PyObject *resultobj; |
19326 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19327 | PyObject * obj0 = 0 ; | |
19328 | char *kwnames[] = { | |
19329 | (char *) "self", NULL | |
19330 | }; | |
19331 | ||
19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19335 | { |
19336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19337 | (arg1)->ProcessPendingEvents(); | |
19338 | ||
19339 | wxPyEndAllowThreads(__tstate); | |
19340 | if (PyErr_Occurred()) SWIG_fail; | |
19341 | } | |
19342 | Py_INCREF(Py_None); resultobj = Py_None; | |
19343 | return resultobj; | |
19344 | fail: | |
19345 | return NULL; | |
19346 | } | |
19347 | ||
19348 | ||
2f4c0a16 | 19349 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19350 | PyObject *resultobj; |
19351 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19352 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19353 | bool result; |
19354 | PyObject * obj0 = 0 ; | |
19355 | PyObject * obj1 = 0 ; | |
19356 | char *kwnames[] = { | |
19357 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19358 | }; | |
19359 | ||
19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19363 | if (obj1) { |
2f4c0a16 RD |
19364 | arg2 = (bool) SWIG_AsBool(obj1); |
19365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19366 | } |
19367 | { | |
19368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19369 | result = (bool)(arg1)->Yield(arg2); | |
19370 | ||
19371 | wxPyEndAllowThreads(__tstate); | |
19372 | if (PyErr_Occurred()) SWIG_fail; | |
19373 | } | |
02a34c4c | 19374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19375 | return resultobj; |
19376 | fail: | |
19377 | return NULL; | |
19378 | } | |
19379 | ||
19380 | ||
2f4c0a16 | 19381 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19382 | PyObject *resultobj; |
19383 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19384 | PyObject * obj0 = 0 ; | |
19385 | char *kwnames[] = { | |
19386 | (char *) "self", NULL | |
19387 | }; | |
19388 | ||
19389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19392 | { |
19393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19394 | (arg1)->WakeUpIdle(); | |
19395 | ||
19396 | wxPyEndAllowThreads(__tstate); | |
19397 | if (PyErr_Occurred()) SWIG_fail; | |
19398 | } | |
19399 | Py_INCREF(Py_None); resultobj = Py_None; | |
19400 | return resultobj; | |
19401 | fail: | |
19402 | return NULL; | |
19403 | } | |
19404 | ||
19405 | ||
2f4c0a16 | 19406 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19407 | PyObject *resultobj; |
19408 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19409 | int result; | |
19410 | PyObject * obj0 = 0 ; | |
19411 | char *kwnames[] = { | |
19412 | (char *) "self", NULL | |
19413 | }; | |
19414 | ||
19415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19418 | { |
19419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19420 | result = (int)(arg1)->MainLoop(); | |
19421 | ||
19422 | wxPyEndAllowThreads(__tstate); | |
19423 | if (PyErr_Occurred()) SWIG_fail; | |
19424 | } | |
2f4c0a16 | 19425 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19426 | return resultobj; |
19427 | fail: | |
19428 | return NULL; | |
19429 | } | |
19430 | ||
19431 | ||
2f4c0a16 | 19432 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19433 | PyObject *resultobj; |
19434 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19435 | PyObject * obj0 = 0 ; | |
19436 | char *kwnames[] = { | |
19437 | (char *) "self", NULL | |
19438 | }; | |
19439 | ||
19440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19443 | { |
19444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19445 | (arg1)->Exit(); | |
19446 | ||
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | Py_INCREF(Py_None); resultobj = Py_None; | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
2f4c0a16 | 19457 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19458 | PyObject *resultobj; |
19459 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | char *kwnames[] = { | |
19462 | (char *) "self", NULL | |
19463 | }; | |
19464 | ||
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19468 | { |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | (arg1)->ExitMainLoop(); | |
19471 | ||
19472 | wxPyEndAllowThreads(__tstate); | |
19473 | if (PyErr_Occurred()) SWIG_fail; | |
19474 | } | |
19475 | Py_INCREF(Py_None); resultobj = Py_None; | |
19476 | return resultobj; | |
19477 | fail: | |
19478 | return NULL; | |
19479 | } | |
19480 | ||
19481 | ||
2f4c0a16 | 19482 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19483 | PyObject *resultobj; |
19484 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19485 | bool result; | |
19486 | PyObject * obj0 = 0 ; | |
19487 | char *kwnames[] = { | |
19488 | (char *) "self", NULL | |
19489 | }; | |
19490 | ||
19491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19494 | { |
19495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19496 | result = (bool)(arg1)->Pending(); | |
19497 | ||
19498 | wxPyEndAllowThreads(__tstate); | |
19499 | if (PyErr_Occurred()) SWIG_fail; | |
19500 | } | |
02a34c4c | 19501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19502 | return resultobj; |
19503 | fail: | |
19504 | return NULL; | |
19505 | } | |
19506 | ||
19507 | ||
2f4c0a16 | 19508 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19509 | PyObject *resultobj; |
19510 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19511 | bool result; | |
19512 | PyObject * obj0 = 0 ; | |
19513 | char *kwnames[] = { | |
19514 | (char *) "self", NULL | |
19515 | }; | |
19516 | ||
19517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19520 | { |
19521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19522 | result = (bool)(arg1)->Dispatch(); | |
19523 | ||
19524 | wxPyEndAllowThreads(__tstate); | |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
02a34c4c | 19527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19528 | return resultobj; |
19529 | fail: | |
19530 | return NULL; | |
19531 | } | |
19532 | ||
19533 | ||
2f4c0a16 | 19534 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19535 | PyObject *resultobj; |
19536 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19537 | bool result; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | char *kwnames[] = { | |
19540 | (char *) "self", NULL | |
19541 | }; | |
19542 | ||
19543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19546 | { |
19547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19548 | result = (bool)(arg1)->ProcessIdle(); | |
19549 | ||
19550 | wxPyEndAllowThreads(__tstate); | |
19551 | if (PyErr_Occurred()) SWIG_fail; | |
19552 | } | |
02a34c4c | 19553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19554 | return resultobj; |
19555 | fail: | |
19556 | return NULL; | |
19557 | } | |
19558 | ||
19559 | ||
2f4c0a16 | 19560 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19561 | PyObject *resultobj; |
19562 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19563 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19564 | wxIdleEvent *arg3 = 0 ; | |
19565 | bool result; | |
19566 | PyObject * obj0 = 0 ; | |
19567 | PyObject * obj1 = 0 ; | |
19568 | PyObject * obj2 = 0 ; | |
19569 | char *kwnames[] = { | |
19570 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19571 | }; | |
19572 | ||
19573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19578 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19579 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19580 | SWIG_fail; | |
d14a1e28 | 19581 | if (arg3 == NULL) { |
2f4c0a16 RD |
19582 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19583 | SWIG_fail; | |
d14a1e28 RD |
19584 | } |
19585 | { | |
19586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19587 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19588 | ||
19589 | wxPyEndAllowThreads(__tstate); | |
19590 | if (PyErr_Occurred()) SWIG_fail; | |
19591 | } | |
02a34c4c | 19592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19593 | return resultobj; |
19594 | fail: | |
19595 | return NULL; | |
19596 | } | |
19597 | ||
19598 | ||
2f4c0a16 | 19599 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19600 | PyObject *resultobj; |
19601 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19602 | bool result; | |
19603 | PyObject * obj0 = 0 ; | |
19604 | char *kwnames[] = { | |
19605 | (char *) "self", NULL | |
19606 | }; | |
19607 | ||
19608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19611 | { |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19614 | ||
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
02a34c4c | 19618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19619 | return resultobj; |
19620 | fail: | |
19621 | return NULL; | |
19622 | } | |
19623 | ||
19624 | ||
2f4c0a16 | 19625 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19626 | PyObject *resultobj; |
19627 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19629 | PyObject * obj0 = 0 ; | |
19630 | PyObject * obj1 = 0 ; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "self",(char *) "win", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19640 | { |
19641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19642 | (arg1)->SetTopWindow(arg2); | |
19643 | ||
19644 | wxPyEndAllowThreads(__tstate); | |
19645 | if (PyErr_Occurred()) SWIG_fail; | |
19646 | } | |
19647 | Py_INCREF(Py_None); resultobj = Py_None; | |
19648 | return resultobj; | |
19649 | fail: | |
19650 | return NULL; | |
19651 | } | |
19652 | ||
19653 | ||
2f4c0a16 | 19654 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19655 | PyObject *resultobj; |
19656 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19657 | wxWindow *result; | |
19658 | PyObject * obj0 = 0 ; | |
19659 | char *kwnames[] = { | |
19660 | (char *) "self", NULL | |
19661 | }; | |
19662 | ||
19663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19666 | { |
19667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19668 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19669 | ||
19670 | wxPyEndAllowThreads(__tstate); | |
19671 | if (PyErr_Occurred()) SWIG_fail; | |
19672 | } | |
19673 | { | |
19674 | resultobj = wxPyMake_wxObject(result); | |
19675 | } | |
19676 | return resultobj; | |
19677 | fail: | |
19678 | return NULL; | |
19679 | } | |
19680 | ||
19681 | ||
2f4c0a16 | 19682 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19683 | PyObject *resultobj; |
19684 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19685 | bool arg2 ; | |
19686 | PyObject * obj0 = 0 ; | |
19687 | PyObject * obj1 = 0 ; | |
19688 | char *kwnames[] = { | |
19689 | (char *) "self",(char *) "flag", NULL | |
19690 | }; | |
19691 | ||
19692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19695 | arg2 = (bool) SWIG_AsBool(obj1); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19697 | { |
19698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19699 | (arg1)->SetExitOnFrameDelete(arg2); | |
19700 | ||
19701 | wxPyEndAllowThreads(__tstate); | |
19702 | if (PyErr_Occurred()) SWIG_fail; | |
19703 | } | |
19704 | Py_INCREF(Py_None); resultobj = Py_None; | |
19705 | return resultobj; | |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
2f4c0a16 | 19711 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19712 | PyObject *resultobj; |
19713 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19714 | bool result; | |
19715 | PyObject * obj0 = 0 ; | |
19716 | char *kwnames[] = { | |
19717 | (char *) "self", NULL | |
19718 | }; | |
19719 | ||
19720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19723 | { |
19724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19725 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19726 | ||
19727 | wxPyEndAllowThreads(__tstate); | |
19728 | if (PyErr_Occurred()) SWIG_fail; | |
19729 | } | |
02a34c4c | 19730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19731 | return resultobj; |
19732 | fail: | |
19733 | return NULL; | |
19734 | } | |
19735 | ||
19736 | ||
2f4c0a16 | 19737 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19738 | PyObject *resultobj; |
19739 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19740 | bool arg2 ; | |
19741 | PyObject * obj0 = 0 ; | |
19742 | PyObject * obj1 = 0 ; | |
19743 | char *kwnames[] = { | |
19744 | (char *) "self",(char *) "flag", NULL | |
19745 | }; | |
19746 | ||
19747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19750 | arg2 = (bool) SWIG_AsBool(obj1); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19752 | { |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | (arg1)->SetUseBestVisual(arg2); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | Py_INCREF(Py_None); resultobj = Py_None; | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
2f4c0a16 | 19766 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19767 | PyObject *resultobj; |
19768 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19769 | bool result; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | char *kwnames[] = { | |
19772 | (char *) "self", NULL | |
19773 | }; | |
19774 | ||
19775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19778 | { |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
02a34c4c | 19785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19786 | return resultobj; |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
2f4c0a16 | 19792 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19793 | PyObject *resultobj; |
19794 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19795 | int arg2 ; | |
19796 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19798 | char *kwnames[] = { |
19799 | (char *) "self",(char *) "mode", NULL | |
19800 | }; | |
19801 | ||
8edf1c75 | 19802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19805 | arg2 = (int) SWIG_AsInt(obj1); | |
19806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19807 | { |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | (arg1)->SetPrintMode(arg2); | |
19810 | ||
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | Py_INCREF(Py_None); resultobj = Py_None; | |
19815 | return resultobj; | |
19816 | fail: | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
2f4c0a16 | 19821 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19822 | PyObject *resultobj; |
19823 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19824 | int result; | |
19825 | PyObject * obj0 = 0 ; | |
19826 | char *kwnames[] = { | |
19827 | (char *) "self", NULL | |
19828 | }; | |
19829 | ||
19830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19833 | { |
19834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19835 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
19836 | ||
19837 | wxPyEndAllowThreads(__tstate); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | } | |
2f4c0a16 | 19840 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19841 | return resultobj; |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
2f4c0a16 | 19847 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19848 | PyObject *resultobj; |
19849 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19850 | int arg2 ; |
d14a1e28 | 19851 | PyObject * obj0 = 0 ; |
8edf1c75 | 19852 | PyObject * obj1 = 0 ; |
d14a1e28 | 19853 | char *kwnames[] = { |
44127b65 | 19854 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
19855 | }; |
19856 | ||
8edf1c75 | 19857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19860 | arg2 = (int) SWIG_AsInt(obj1); | |
19861 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19862 | { |
19863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19864 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
19865 | |
19866 | wxPyEndAllowThreads(__tstate); | |
19867 | if (PyErr_Occurred()) SWIG_fail; | |
19868 | } | |
44127b65 | 19869 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19870 | return resultobj; |
19871 | fail: | |
19872 | return NULL; | |
19873 | } | |
19874 | ||
19875 | ||
2f4c0a16 | 19876 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19877 | PyObject *resultobj; |
19878 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19879 | int result; |
d14a1e28 RD |
19880 | PyObject * obj0 = 0 ; |
19881 | char *kwnames[] = { | |
44127b65 | 19882 | (char *) "self", NULL |
d14a1e28 RD |
19883 | }; |
19884 | ||
44127b65 | 19885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
19886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19888 | { |
19889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19890 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
19891 | |
19892 | wxPyEndAllowThreads(__tstate); | |
19893 | if (PyErr_Occurred()) SWIG_fail; | |
19894 | } | |
2f4c0a16 | 19895 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19896 | return resultobj; |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
2f4c0a16 | 19902 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19903 | PyObject *resultobj; |
19904 | bool result; | |
19905 | char *kwnames[] = { | |
19906 | NULL | |
19907 | }; | |
19908 | ||
19909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
19913 | ||
19914 | wxPyEndAllowThreads(__tstate); | |
19915 | if (PyErr_Occurred()) SWIG_fail; | |
19916 | } | |
02a34c4c | 19917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19918 | return resultobj; |
19919 | fail: | |
19920 | return NULL; | |
19921 | } | |
19922 | ||
19923 | ||
2f4c0a16 | 19924 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19925 | PyObject *resultobj; |
19926 | long result; | |
19927 | char *kwnames[] = { | |
19928 | NULL | |
19929 | }; | |
19930 | ||
19931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
19932 | { | |
19933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19934 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
19935 | ||
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
2f4c0a16 | 19939 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19940 | return resultobj; |
19941 | fail: | |
19942 | return NULL; | |
19943 | } | |
19944 | ||
19945 | ||
2f4c0a16 | 19946 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19947 | PyObject *resultobj; |
19948 | long result; | |
19949 | char *kwnames[] = { | |
19950 | NULL | |
19951 | }; | |
19952 | ||
19953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
19954 | { | |
19955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19956 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
19957 | ||
19958 | wxPyEndAllowThreads(__tstate); | |
19959 | if (PyErr_Occurred()) SWIG_fail; | |
19960 | } | |
2f4c0a16 | 19961 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19962 | return resultobj; |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
2f4c0a16 | 19968 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19969 | PyObject *resultobj; |
19970 | long result; | |
19971 | char *kwnames[] = { | |
19972 | NULL | |
19973 | }; | |
19974 | ||
19975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
19976 | { | |
19977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19978 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
19979 | ||
19980 | wxPyEndAllowThreads(__tstate); | |
19981 | if (PyErr_Occurred()) SWIG_fail; | |
19982 | } | |
2f4c0a16 | 19983 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19984 | return resultobj; |
19985 | fail: | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
2f4c0a16 | 19990 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19991 | PyObject *resultobj; |
19992 | wxString result; | |
19993 | char *kwnames[] = { | |
19994 | NULL | |
19995 | }; | |
19996 | ||
19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
19998 | { | |
19999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20000 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20001 | ||
20002 | wxPyEndAllowThreads(__tstate); | |
20003 | if (PyErr_Occurred()) SWIG_fail; | |
20004 | } | |
20005 | { | |
20006 | #if wxUSE_UNICODE | |
20007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20008 | #else | |
20009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20010 | #endif | |
20011 | } | |
20012 | return resultobj; | |
20013 | fail: | |
20014 | return NULL; | |
20015 | } | |
20016 | ||
20017 | ||
2f4c0a16 | 20018 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20019 | PyObject *resultobj; |
20020 | bool arg1 ; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "val", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20027 | arg1 = (bool) SWIG_AsBool(obj0); |
20028 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20029 | { |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | Py_INCREF(Py_None); resultobj = Py_None; | |
20037 | return resultobj; | |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
2f4c0a16 | 20043 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20044 | PyObject *resultobj; |
20045 | long arg1 ; | |
8edf1c75 | 20046 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20047 | char *kwnames[] = { |
20048 | (char *) "val", NULL | |
20049 | }; | |
20050 | ||
8edf1c75 | 20051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20052 | arg1 = (long) SWIG_AsLong(obj0); |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20054 | { |
20055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20056 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20057 | ||
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | Py_INCREF(Py_None); resultobj = Py_None; | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
2f4c0a16 | 20068 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20069 | PyObject *resultobj; |
20070 | long arg1 ; | |
8edf1c75 | 20071 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20072 | char *kwnames[] = { |
20073 | (char *) "val", NULL | |
20074 | }; | |
20075 | ||
8edf1c75 | 20076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20077 | arg1 = (long) SWIG_AsLong(obj0); |
20078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20079 | { |
20080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20081 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | Py_INCREF(Py_None); resultobj = Py_None; | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
2f4c0a16 | 20093 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20094 | PyObject *resultobj; |
20095 | long arg1 ; | |
8edf1c75 | 20096 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20097 | char *kwnames[] = { |
20098 | (char *) "val", NULL | |
20099 | }; | |
20100 | ||
8edf1c75 | 20101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20102 | arg1 = (long) SWIG_AsLong(obj0); |
20103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20104 | { |
20105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20106 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20107 | ||
20108 | wxPyEndAllowThreads(__tstate); | |
20109 | if (PyErr_Occurred()) SWIG_fail; | |
20110 | } | |
20111 | Py_INCREF(Py_None); resultobj = Py_None; | |
20112 | return resultobj; | |
20113 | fail: | |
20114 | return NULL; | |
20115 | } | |
20116 | ||
20117 | ||
2f4c0a16 | 20118 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20119 | PyObject *resultobj; |
20120 | wxString *arg1 = 0 ; | |
423f194a | 20121 | bool temp1 = False ; |
d14a1e28 RD |
20122 | PyObject * obj0 = 0 ; |
20123 | char *kwnames[] = { | |
20124 | (char *) "val", NULL | |
20125 | }; | |
20126 | ||
20127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20128 | { | |
20129 | arg1 = wxString_in_helper(obj0); | |
20130 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 20131 | temp1 = True; |
d14a1e28 RD |
20132 | } |
20133 | { | |
20134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20135 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20136 | ||
20137 | wxPyEndAllowThreads(__tstate); | |
20138 | if (PyErr_Occurred()) SWIG_fail; | |
20139 | } | |
20140 | Py_INCREF(Py_None); resultobj = Py_None; | |
20141 | { | |
20142 | if (temp1) | |
20143 | delete arg1; | |
20144 | } | |
20145 | return resultobj; | |
20146 | fail: | |
20147 | { | |
20148 | if (temp1) | |
20149 | delete arg1; | |
20150 | } | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
2f4c0a16 | 20155 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20156 | PyObject *resultobj; |
20157 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20158 | PyObject * obj0 = 0 ; | |
20159 | char *kwnames[] = { | |
20160 | (char *) "self", NULL | |
20161 | }; | |
20162 | ||
20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20166 | { |
20167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20168 | (arg1)->_BootstrapApp(); | |
20169 | ||
20170 | wxPyEndAllowThreads(__tstate); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | Py_INCREF(Py_None); resultobj = Py_None; | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
20177 | } | |
20178 | ||
20179 | ||
2f4c0a16 | 20180 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20181 | PyObject *resultobj; |
20182 | int result; | |
20183 | char *kwnames[] = { | |
20184 | NULL | |
20185 | }; | |
20186 | ||
20187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | result = (int)PyApp_GetComCtl32Version(); | |
20191 | ||
20192 | wxPyEndAllowThreads(__tstate); | |
20193 | if (PyErr_Occurred()) SWIG_fail; | |
20194 | } | |
2f4c0a16 | 20195 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20196 | return resultobj; |
20197 | fail: | |
20198 | return NULL; | |
20199 | } | |
20200 | ||
20201 | ||
2f4c0a16 | 20202 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20203 | PyObject *obj; |
20204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20205 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20206 | Py_INCREF(obj); | |
20207 | return Py_BuildValue((char *)""); | |
20208 | } | |
2f4c0a16 | 20209 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20210 | PyObject *resultobj; |
20211 | char *kwnames[] = { | |
20212 | NULL | |
20213 | }; | |
20214 | ||
20215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20216 | { | |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | wxExit(); | |
20219 | ||
20220 | wxPyEndAllowThreads(__tstate); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | } | |
20223 | Py_INCREF(Py_None); resultobj = Py_None; | |
20224 | return resultobj; | |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
2f4c0a16 | 20230 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20231 | PyObject *resultobj; |
20232 | bool result; | |
20233 | char *kwnames[] = { | |
20234 | NULL | |
20235 | }; | |
20236 | ||
20237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20238 | { | |
20239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20240 | result = (bool)wxYield(); | |
20241 | ||
20242 | wxPyEndAllowThreads(__tstate); | |
20243 | if (PyErr_Occurred()) SWIG_fail; | |
20244 | } | |
02a34c4c | 20245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20246 | return resultobj; |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
2f4c0a16 | 20252 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20253 | PyObject *resultobj; |
20254 | bool result; | |
20255 | char *kwnames[] = { | |
20256 | NULL | |
20257 | }; | |
20258 | ||
20259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20260 | { | |
20261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20262 | result = (bool)wxYieldIfNeeded(); | |
20263 | ||
20264 | wxPyEndAllowThreads(__tstate); | |
20265 | if (PyErr_Occurred()) SWIG_fail; | |
20266 | } | |
02a34c4c | 20267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20268 | return resultobj; |
20269 | fail: | |
20270 | return NULL; | |
20271 | } | |
20272 | ||
20273 | ||
2f4c0a16 | 20274 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20275 | PyObject *resultobj; |
20276 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 20277 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20278 | bool result; |
20279 | PyObject * obj0 = 0 ; | |
20280 | PyObject * obj1 = 0 ; | |
20281 | char *kwnames[] = { | |
20282 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20283 | }; | |
20284 | ||
20285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20286 | if (obj0) { | |
2f4c0a16 RD |
20287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20289 | } |
20290 | if (obj1) { | |
2f4c0a16 RD |
20291 | arg2 = (bool) SWIG_AsBool(obj1); |
20292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20293 | } |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = (bool)wxSafeYield(arg1,arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
02a34c4c | 20301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20302 | return resultobj; |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
2f4c0a16 | 20308 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20309 | PyObject *resultobj; |
20310 | char *kwnames[] = { | |
20311 | NULL | |
20312 | }; | |
20313 | ||
20314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20315 | { | |
20316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20317 | wxWakeUpIdle(); | |
20318 | ||
20319 | wxPyEndAllowThreads(__tstate); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
20322 | Py_INCREF(Py_None); resultobj = Py_None; | |
20323 | return resultobj; | |
20324 | fail: | |
20325 | return NULL; | |
20326 | } | |
20327 | ||
20328 | ||
2f4c0a16 | 20329 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20330 | PyObject *resultobj; |
20331 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20332 | wxEvent *arg2 = 0 ; | |
20333 | PyObject * obj0 = 0 ; | |
20334 | PyObject * obj1 = 0 ; | |
20335 | char *kwnames[] = { | |
20336 | (char *) "dest",(char *) "event", NULL | |
20337 | }; | |
20338 | ||
20339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20344 | SWIG_fail; | |
d14a1e28 | 20345 | if (arg2 == NULL) { |
2f4c0a16 RD |
20346 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20347 | SWIG_fail; | |
d14a1e28 RD |
20348 | } |
20349 | { | |
20350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20351 | wxPostEvent(arg1,*arg2); | |
20352 | ||
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | Py_INCREF(Py_None); resultobj = Py_None; | |
20357 | return resultobj; | |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
2f4c0a16 | 20363 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20364 | PyObject *resultobj; |
20365 | char *kwnames[] = { | |
20366 | NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | wxApp_CleanUp(); | |
20373 | ||
20374 | wxPyEndAllowThreads(__tstate); | |
20375 | if (PyErr_Occurred()) SWIG_fail; | |
20376 | } | |
20377 | Py_INCREF(Py_None); resultobj = Py_None; | |
20378 | return resultobj; | |
20379 | fail: | |
20380 | return NULL; | |
20381 | } | |
20382 | ||
20383 | ||
2f4c0a16 | 20384 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20385 | PyObject *resultobj; |
20386 | wxPyApp *result; | |
20387 | char *kwnames[] = { | |
20388 | NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20392 | { | |
20393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20394 | result = (wxPyApp *)wxGetApp(); | |
20395 | ||
20396 | wxPyEndAllowThreads(__tstate); | |
20397 | if (PyErr_Occurred()) SWIG_fail; | |
20398 | } | |
20399 | { | |
20400 | resultobj = wxPyMake_wxObject(result); | |
20401 | } | |
20402 | return resultobj; | |
20403 | fail: | |
20404 | return NULL; | |
20405 | } | |
20406 | ||
20407 | ||
2f4c0a16 | 20408 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20409 | PyObject *resultobj; |
20410 | int arg1 = (int) 0 ; | |
20411 | int arg2 = (int) 0 ; | |
20412 | int arg3 = (int) 0 ; | |
20413 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20414 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20415 | PyObject * obj0 = 0 ; |
20416 | PyObject * obj1 = 0 ; | |
20417 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20418 | PyObject * obj3 = 0 ; |
20419 | char *kwnames[] = { | |
20420 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20421 | }; | |
20422 | ||
8edf1c75 RD |
20423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20424 | if (obj0) { | |
2f4c0a16 RD |
20425 | arg1 = (int) SWIG_AsInt(obj0); |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20427 | } |
20428 | if (obj1) { | |
2f4c0a16 RD |
20429 | arg2 = (int) SWIG_AsInt(obj1); |
20430 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20431 | } |
20432 | if (obj2) { | |
2f4c0a16 RD |
20433 | arg3 = (int) SWIG_AsInt(obj2); |
20434 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20435 | } |
41f1cec7 | 20436 | if (obj3) { |
2f4c0a16 RD |
20437 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20439 | } |
20440 | { | |
20441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20442 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20443 | ||
20444 | wxPyEndAllowThreads(__tstate); | |
20445 | if (PyErr_Occurred()) SWIG_fail; | |
20446 | } | |
2f4c0a16 | 20447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
41f1cec7 RD |
20448 | return resultobj; |
20449 | fail: | |
20450 | return NULL; | |
20451 | } | |
20452 | ||
20453 | ||
2f4c0a16 | 20454 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20455 | PyObject *resultobj; |
20456 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20457 | PyObject * obj0 = 0 ; | |
20458 | char *kwnames[] = { | |
20459 | (char *) "self", NULL | |
20460 | }; | |
20461 | ||
20462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20465 | { |
20466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20467 | delete arg1; | |
20468 | ||
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | Py_INCREF(Py_None); resultobj = Py_None; | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
2f4c0a16 | 20479 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20480 | PyObject *resultobj; |
20481 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20482 | int arg2 ; | |
20483 | int arg3 ; | |
20484 | int arg4 ; | |
20485 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20486 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20487 | PyObject * obj1 = 0 ; |
20488 | PyObject * obj2 = 0 ; | |
20489 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20490 | PyObject * obj4 = 0 ; |
20491 | char *kwnames[] = { | |
20492 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20493 | }; | |
20494 | ||
8edf1c75 | 20495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20498 | arg2 = (int) SWIG_AsInt(obj1); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | arg3 = (int) SWIG_AsInt(obj2); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | arg4 = (int) SWIG_AsInt(obj3); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
41f1cec7 | 20504 | if (obj4) { |
2f4c0a16 RD |
20505 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20507 | } |
20508 | { | |
20509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20510 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20511 | ||
20512 | wxPyEndAllowThreads(__tstate); | |
20513 | if (PyErr_Occurred()) SWIG_fail; | |
20514 | } | |
20515 | Py_INCREF(Py_None); resultobj = Py_None; | |
20516 | return resultobj; | |
20517 | fail: | |
20518 | return NULL; | |
20519 | } | |
20520 | ||
20521 | ||
2f4c0a16 | 20522 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20523 | PyObject *resultobj; |
20524 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20525 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20526 | PyObject * obj0 = 0 ; | |
20527 | PyObject * obj1 = 0 ; | |
20528 | char *kwnames[] = { | |
20529 | (char *) "self",(char *) "item", NULL | |
20530 | }; | |
20531 | ||
20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20537 | { |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | (arg1)->SetMenuItem(arg2); | |
20540 | ||
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | Py_INCREF(Py_None); resultobj = Py_None; | |
20545 | return resultobj; | |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
2f4c0a16 | 20551 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20552 | PyObject *resultobj; |
20553 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20554 | wxMenuItem *result; | |
20555 | PyObject * obj0 = 0 ; | |
20556 | char *kwnames[] = { | |
20557 | (char *) "self", NULL | |
20558 | }; | |
20559 | ||
20560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20563 | { |
20564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20565 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20566 | ||
20567 | wxPyEndAllowThreads(__tstate); | |
20568 | if (PyErr_Occurred()) SWIG_fail; | |
20569 | } | |
20570 | { | |
20571 | resultobj = wxPyMake_wxObject(result); | |
20572 | } | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
2f4c0a16 | 20579 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20580 | PyObject *resultobj; |
20581 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20582 | int result; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | char *kwnames[] = { | |
20585 | (char *) "self", NULL | |
20586 | }; | |
20587 | ||
20588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20591 | { |
20592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20593 | result = (int)(arg1)->GetFlags(); | |
20594 | ||
20595 | wxPyEndAllowThreads(__tstate); | |
20596 | if (PyErr_Occurred()) SWIG_fail; | |
20597 | } | |
2f4c0a16 | 20598 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20599 | return resultobj; |
20600 | fail: | |
20601 | return NULL; | |
20602 | } | |
20603 | ||
20604 | ||
2f4c0a16 | 20605 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20606 | PyObject *resultobj; |
20607 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20608 | int result; | |
20609 | PyObject * obj0 = 0 ; | |
20610 | char *kwnames[] = { | |
20611 | (char *) "self", NULL | |
20612 | }; | |
20613 | ||
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20617 | { |
20618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20619 | result = (int)(arg1)->GetKeyCode(); | |
20620 | ||
20621 | wxPyEndAllowThreads(__tstate); | |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
20623 | } | |
2f4c0a16 | 20624 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20625 | return resultobj; |
20626 | fail: | |
20627 | return NULL; | |
20628 | } | |
20629 | ||
20630 | ||
2f4c0a16 | 20631 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20632 | PyObject *resultobj; |
20633 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20634 | int result; | |
20635 | PyObject * obj0 = 0 ; | |
20636 | char *kwnames[] = { | |
20637 | (char *) "self", NULL | |
20638 | }; | |
20639 | ||
20640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20643 | { |
20644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20645 | result = (int)(arg1)->GetCommand(); | |
20646 | ||
20647 | wxPyEndAllowThreads(__tstate); | |
20648 | if (PyErr_Occurred()) SWIG_fail; | |
20649 | } | |
2f4c0a16 | 20650 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20651 | return resultobj; |
20652 | fail: | |
20653 | return NULL; | |
20654 | } | |
20655 | ||
20656 | ||
2f4c0a16 | 20657 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
41f1cec7 RD |
20658 | PyObject *obj; |
20659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20660 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20661 | Py_INCREF(obj); | |
20662 | return Py_BuildValue((char *)""); | |
20663 | } | |
2f4c0a16 | 20664 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20665 | PyObject *resultobj; |
20666 | int arg1 ; | |
20667 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20668 | wxAcceleratorTable *result; | |
20669 | PyObject * obj0 = 0 ; | |
20670 | char *kwnames[] = { | |
20671 | (char *) "n", NULL | |
20672 | }; | |
20673 | ||
20674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20675 | { | |
20676 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20677 | if (arg2) arg1 = PyList_Size(obj0); | |
20678 | else arg1 = 0; | |
20679 | } | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
2f4c0a16 | 20687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
41f1cec7 RD |
20688 | { |
20689 | delete [] arg2; | |
20690 | } | |
20691 | return resultobj; | |
20692 | fail: | |
20693 | { | |
20694 | delete [] arg2; | |
20695 | } | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
2f4c0a16 | 20700 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20701 | PyObject *resultobj; |
20702 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20703 | PyObject * obj0 = 0 ; | |
20704 | char *kwnames[] = { | |
20705 | (char *) "self", NULL | |
20706 | }; | |
20707 | ||
20708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20711 | { |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | delete arg1; | |
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 | ||
2f4c0a16 | 20725 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20726 | PyObject *resultobj; |
20727 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 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:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20737 | { |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
02a34c4c | 20744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
41f1cec7 RD |
20745 | return resultobj; |
20746 | fail: | |
20747 | return NULL; | |
20748 | } | |
20749 | ||
20750 | ||
2f4c0a16 | 20751 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
41f1cec7 RD |
20752 | PyObject *obj; |
20753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20754 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
20755 | Py_INCREF(obj); | |
20756 | return Py_BuildValue((char *)""); | |
20757 | } | |
8edf1c75 | 20758 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
41f1cec7 RD |
20759 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
20760 | return 1; | |
20761 | } | |
20762 | ||
20763 | ||
20764 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
20765 | PyObject *pyobj; | |
20766 | ||
2f4c0a16 | 20767 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
41f1cec7 RD |
20768 | return pyobj; |
20769 | } | |
20770 | ||
20771 | ||
2f4c0a16 | 20772 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
41f1cec7 RD |
20773 | PyObject *resultobj; |
20774 | wxString *arg1 = 0 ; | |
20775 | wxAcceleratorEntry *result; | |
20776 | bool temp1 = False ; | |
20777 | PyObject * obj0 = 0 ; | |
20778 | char *kwnames[] = { | |
20779 | (char *) "label", NULL | |
20780 | }; | |
20781 | ||
20782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
20783 | { | |
20784 | arg1 = wxString_in_helper(obj0); | |
20785 | if (arg1 == NULL) SWIG_fail; | |
20786 | temp1 = True; | |
20787 | } | |
20788 | { | |
20789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20790 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
20791 | ||
20792 | wxPyEndAllowThreads(__tstate); | |
20793 | if (PyErr_Occurred()) SWIG_fail; | |
20794 | } | |
2f4c0a16 | 20795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
41f1cec7 RD |
20796 | { |
20797 | if (temp1) | |
20798 | delete arg1; | |
20799 | } | |
20800 | return resultobj; | |
20801 | fail: | |
20802 | { | |
20803 | if (temp1) | |
20804 | delete arg1; | |
20805 | } | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
8edf1c75 | 20810 | static int _wrap_PanelNameStr_set(PyObject *) { |
423f194a RD |
20811 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
20812 | return 1; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | static PyObject *_wrap_PanelNameStr_get() { | |
20817 | PyObject *pyobj; | |
20818 | ||
20819 | { | |
20820 | #if wxUSE_UNICODE | |
20821 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20822 | #else | |
20823 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20824 | #endif | |
20825 | } | |
20826 | return pyobj; | |
20827 | } | |
20828 | ||
20829 | ||
2f4c0a16 | 20830 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20831 | PyObject *resultobj; |
20832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20833 | int arg2 ; |
d14a1e28 RD |
20834 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20835 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20836 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20837 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20838 | long arg5 = (long) 0 ; | |
20839 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20840 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20841 | wxWindow *result; | |
20842 | wxPoint temp3 ; | |
20843 | wxSize temp4 ; | |
423f194a | 20844 | bool temp6 = False ; |
d14a1e28 | 20845 | PyObject * obj0 = 0 ; |
8edf1c75 | 20846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20847 | PyObject * obj2 = 0 ; |
20848 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20849 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20850 | PyObject * obj5 = 0 ; |
20851 | char *kwnames[] = { | |
20852 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20853 | }; | |
20854 | ||
8edf1c75 | 20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
20856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20858 | arg2 = (int const) SWIG_AsInt(obj1); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20860 | if (obj2) { |
20861 | { | |
20862 | arg3 = &temp3; | |
20863 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20864 | } | |
20865 | } | |
20866 | if (obj3) { | |
20867 | { | |
20868 | arg4 = &temp4; | |
20869 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20870 | } | |
20871 | } | |
8edf1c75 | 20872 | if (obj4) { |
2f4c0a16 RD |
20873 | arg5 = (long) SWIG_AsLong(obj4); |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20875 | } |
d14a1e28 RD |
20876 | if (obj5) { |
20877 | { | |
20878 | arg6 = wxString_in_helper(obj5); | |
20879 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 20880 | temp6 = True; |
d14a1e28 RD |
20881 | } |
20882 | } | |
20883 | { | |
20884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20885 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20886 | ||
20887 | wxPyEndAllowThreads(__tstate); | |
20888 | if (PyErr_Occurred()) SWIG_fail; | |
20889 | } | |
20890 | { | |
20891 | resultobj = wxPyMake_wxObject(result); | |
20892 | } | |
20893 | { | |
20894 | if (temp6) | |
20895 | delete arg6; | |
20896 | } | |
20897 | return resultobj; | |
20898 | fail: | |
20899 | { | |
20900 | if (temp6) | |
20901 | delete arg6; | |
20902 | } | |
20903 | return NULL; | |
20904 | } | |
20905 | ||
20906 | ||
2f4c0a16 | 20907 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20908 | PyObject *resultobj; |
20909 | wxWindow *result; | |
20910 | char *kwnames[] = { | |
20911 | NULL | |
20912 | }; | |
20913 | ||
20914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
20915 | { | |
20916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20917 | result = (wxWindow *)new wxWindow(); | |
20918 | ||
20919 | wxPyEndAllowThreads(__tstate); | |
20920 | if (PyErr_Occurred()) SWIG_fail; | |
20921 | } | |
20922 | { | |
20923 | resultobj = wxPyMake_wxObject(result); | |
20924 | } | |
20925 | return resultobj; | |
20926 | fail: | |
20927 | return NULL; | |
20928 | } | |
20929 | ||
20930 | ||
2f4c0a16 | 20931 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20932 | PyObject *resultobj; |
20933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20934 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20935 | int arg3 ; |
d14a1e28 RD |
20936 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20937 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20938 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20939 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20940 | long arg6 = (long) 0 ; | |
20941 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20942 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20943 | bool result; | |
20944 | wxPoint temp4 ; | |
20945 | wxSize temp5 ; | |
423f194a | 20946 | bool temp7 = False ; |
d14a1e28 RD |
20947 | PyObject * obj0 = 0 ; |
20948 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20949 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20950 | PyObject * obj3 = 0 ; |
20951 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20952 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20953 | PyObject * obj6 = 0 ; |
20954 | char *kwnames[] = { | |
20955 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20956 | }; | |
20957 | ||
8edf1c75 | 20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20963 | arg3 = (int const) SWIG_AsInt(obj2); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20965 | if (obj3) { |
20966 | { | |
20967 | arg4 = &temp4; | |
20968 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20969 | } | |
20970 | } | |
20971 | if (obj4) { | |
20972 | { | |
20973 | arg5 = &temp5; | |
20974 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20975 | } | |
20976 | } | |
8edf1c75 | 20977 | if (obj5) { |
2f4c0a16 RD |
20978 | arg6 = (long) SWIG_AsLong(obj5); |
20979 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20980 | } |
d14a1e28 RD |
20981 | if (obj6) { |
20982 | { | |
20983 | arg7 = wxString_in_helper(obj6); | |
20984 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20985 | temp7 = True; |
d14a1e28 RD |
20986 | } |
20987 | } | |
20988 | { | |
20989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20990 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20991 | ||
20992 | wxPyEndAllowThreads(__tstate); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
20994 | } | |
02a34c4c | 20995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20996 | { |
20997 | if (temp7) | |
20998 | delete arg7; | |
20999 | } | |
21000 | return resultobj; | |
21001 | fail: | |
21002 | { | |
21003 | if (temp7) | |
21004 | delete arg7; | |
21005 | } | |
21006 | return NULL; | |
21007 | } | |
21008 | ||
21009 | ||
2f4c0a16 | 21010 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21011 | PyObject *resultobj; |
21012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21013 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21014 | bool result; |
21015 | PyObject * obj0 = 0 ; | |
21016 | PyObject * obj1 = 0 ; | |
21017 | char *kwnames[] = { | |
21018 | (char *) "self",(char *) "force", NULL | |
21019 | }; | |
21020 | ||
21021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21024 | if (obj1) { |
2f4c0a16 RD |
21025 | arg2 = (bool) SWIG_AsBool(obj1); |
21026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21027 | } |
21028 | { | |
21029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21030 | result = (bool)(arg1)->Close(arg2); | |
21031 | ||
21032 | wxPyEndAllowThreads(__tstate); | |
21033 | if (PyErr_Occurred()) SWIG_fail; | |
21034 | } | |
02a34c4c | 21035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21036 | return resultobj; |
21037 | fail: | |
21038 | return NULL; | |
21039 | } | |
21040 | ||
21041 | ||
2f4c0a16 | 21042 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21043 | PyObject *resultobj; |
21044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21045 | bool result; | |
21046 | PyObject * obj0 = 0 ; | |
21047 | char *kwnames[] = { | |
21048 | (char *) "self", NULL | |
21049 | }; | |
21050 | ||
21051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21054 | { |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | result = (bool)(arg1)->Destroy(); | |
21057 | ||
21058 | wxPyEndAllowThreads(__tstate); | |
21059 | if (PyErr_Occurred()) SWIG_fail; | |
21060 | } | |
02a34c4c | 21061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21062 | return resultobj; |
21063 | fail: | |
21064 | return NULL; | |
21065 | } | |
21066 | ||
21067 | ||
2f4c0a16 | 21068 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21069 | PyObject *resultobj; |
21070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21071 | bool result; | |
21072 | PyObject * obj0 = 0 ; | |
21073 | char *kwnames[] = { | |
21074 | (char *) "self", NULL | |
21075 | }; | |
21076 | ||
21077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21080 | { |
21081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21082 | result = (bool)(arg1)->DestroyChildren(); | |
21083 | ||
21084 | wxPyEndAllowThreads(__tstate); | |
21085 | if (PyErr_Occurred()) SWIG_fail; | |
21086 | } | |
02a34c4c | 21087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21088 | return resultobj; |
21089 | fail: | |
21090 | return NULL; | |
21091 | } | |
21092 | ||
21093 | ||
2f4c0a16 | 21094 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21095 | PyObject *resultobj; |
21096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21097 | bool result; | |
21098 | PyObject * obj0 = 0 ; | |
21099 | char *kwnames[] = { | |
21100 | (char *) "self", NULL | |
21101 | }; | |
21102 | ||
21103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21106 | { |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21109 | ||
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
02a34c4c | 21113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21114 | return resultobj; |
21115 | fail: | |
21116 | return NULL; | |
21117 | } | |
21118 | ||
21119 | ||
2f4c0a16 | 21120 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21121 | PyObject *resultobj; |
21122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21123 | wxString *arg2 = 0 ; | |
423f194a | 21124 | bool temp2 = False ; |
d14a1e28 RD |
21125 | PyObject * obj0 = 0 ; |
21126 | PyObject * obj1 = 0 ; | |
21127 | char *kwnames[] = { | |
21128 | (char *) "self",(char *) "title", NULL | |
21129 | }; | |
21130 | ||
21131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21134 | { |
21135 | arg2 = wxString_in_helper(obj1); | |
21136 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21137 | temp2 = True; |
d14a1e28 RD |
21138 | } |
21139 | { | |
21140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21141 | (arg1)->SetTitle((wxString const &)*arg2); | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | Py_INCREF(Py_None); resultobj = Py_None; | |
21147 | { | |
21148 | if (temp2) | |
21149 | delete arg2; | |
21150 | } | |
21151 | return resultobj; | |
21152 | fail: | |
21153 | { | |
21154 | if (temp2) | |
21155 | delete arg2; | |
21156 | } | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
2f4c0a16 | 21161 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21162 | PyObject *resultobj; |
21163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21164 | wxString result; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "self", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21173 | { |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | { | |
21181 | #if wxUSE_UNICODE | |
21182 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21183 | #else | |
21184 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21185 | #endif | |
21186 | } | |
21187 | return resultobj; | |
21188 | fail: | |
21189 | return NULL; | |
21190 | } | |
21191 | ||
21192 | ||
2f4c0a16 | 21193 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21194 | PyObject *resultobj; |
21195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21196 | wxString *arg2 = 0 ; | |
423f194a | 21197 | bool temp2 = False ; |
d14a1e28 RD |
21198 | PyObject * obj0 = 0 ; |
21199 | PyObject * obj1 = 0 ; | |
21200 | char *kwnames[] = { | |
21201 | (char *) "self",(char *) "label", NULL | |
21202 | }; | |
21203 | ||
21204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21207 | { |
21208 | arg2 = wxString_in_helper(obj1); | |
21209 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21210 | temp2 = True; |
d14a1e28 RD |
21211 | } |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | (arg1)->SetLabel((wxString const &)*arg2); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | Py_INCREF(Py_None); resultobj = Py_None; | |
21220 | { | |
21221 | if (temp2) | |
21222 | delete arg2; | |
21223 | } | |
21224 | return resultobj; | |
21225 | fail: | |
21226 | { | |
21227 | if (temp2) | |
21228 | delete arg2; | |
21229 | } | |
21230 | return NULL; | |
21231 | } | |
21232 | ||
21233 | ||
2f4c0a16 | 21234 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21235 | PyObject *resultobj; |
21236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21237 | wxString result; | |
21238 | PyObject * obj0 = 0 ; | |
21239 | char *kwnames[] = { | |
21240 | (char *) "self", NULL | |
21241 | }; | |
21242 | ||
21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21246 | { |
21247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21248 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21249 | ||
21250 | wxPyEndAllowThreads(__tstate); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | { | |
21254 | #if wxUSE_UNICODE | |
21255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21256 | #else | |
21257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21258 | #endif | |
21259 | } | |
21260 | return resultobj; | |
21261 | fail: | |
21262 | return NULL; | |
21263 | } | |
21264 | ||
21265 | ||
2f4c0a16 | 21266 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21267 | PyObject *resultobj; |
21268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21269 | wxString *arg2 = 0 ; | |
423f194a | 21270 | bool temp2 = False ; |
d14a1e28 RD |
21271 | PyObject * obj0 = 0 ; |
21272 | PyObject * obj1 = 0 ; | |
21273 | char *kwnames[] = { | |
21274 | (char *) "self",(char *) "name", NULL | |
21275 | }; | |
21276 | ||
21277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21280 | { |
21281 | arg2 = wxString_in_helper(obj1); | |
21282 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21283 | temp2 = True; |
d14a1e28 RD |
21284 | } |
21285 | { | |
21286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21287 | (arg1)->SetName((wxString const &)*arg2); | |
21288 | ||
21289 | wxPyEndAllowThreads(__tstate); | |
21290 | if (PyErr_Occurred()) SWIG_fail; | |
21291 | } | |
21292 | Py_INCREF(Py_None); resultobj = Py_None; | |
21293 | { | |
21294 | if (temp2) | |
21295 | delete arg2; | |
21296 | } | |
21297 | return resultobj; | |
21298 | fail: | |
21299 | { | |
21300 | if (temp2) | |
21301 | delete arg2; | |
21302 | } | |
21303 | return NULL; | |
21304 | } | |
21305 | ||
21306 | ||
2f4c0a16 | 21307 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21308 | PyObject *resultobj; |
21309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21310 | wxString result; | |
21311 | PyObject * obj0 = 0 ; | |
21312 | char *kwnames[] = { | |
21313 | (char *) "self", NULL | |
21314 | }; | |
21315 | ||
21316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21319 | { |
21320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21321 | result = ((wxWindow const *)arg1)->GetName(); | |
21322 | ||
21323 | wxPyEndAllowThreads(__tstate); | |
21324 | if (PyErr_Occurred()) SWIG_fail; | |
21325 | } | |
21326 | { | |
21327 | #if wxUSE_UNICODE | |
21328 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21329 | #else | |
21330 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21331 | #endif | |
21332 | } | |
21333 | return resultobj; | |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
2f4c0a16 | 21339 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21340 | PyObject *resultobj; |
21341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21342 | int arg2 ; |
d14a1e28 | 21343 | PyObject * obj0 = 0 ; |
8edf1c75 | 21344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21345 | char *kwnames[] = { |
21346 | (char *) "self",(char *) "winid", NULL | |
21347 | }; | |
21348 | ||
8edf1c75 | 21349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21352 | arg2 = (int) SWIG_AsInt(obj1); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21354 | { |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | (arg1)->SetId(arg2); | |
21357 | ||
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | Py_INCREF(Py_None); resultobj = Py_None; | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
2f4c0a16 | 21368 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21369 | PyObject *resultobj; |
21370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21371 | int result; |
d14a1e28 RD |
21372 | PyObject * obj0 = 0 ; |
21373 | char *kwnames[] = { | |
21374 | (char *) "self", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21380 | { |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21382 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21383 | |
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
2f4c0a16 | 21387 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21388 | return resultobj; |
21389 | fail: | |
21390 | return NULL; | |
21391 | } | |
21392 | ||
21393 | ||
2f4c0a16 | 21394 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21395 | PyObject *resultobj; |
21396 | int result; | |
21397 | char *kwnames[] = { | |
21398 | NULL | |
21399 | }; | |
21400 | ||
21401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | result = (int)wxWindow::NewControlId(); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
2f4c0a16 | 21409 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21410 | return resultobj; |
21411 | fail: | |
21412 | return NULL; | |
21413 | } | |
21414 | ||
21415 | ||
2f4c0a16 | 21416 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21417 | PyObject *resultobj; |
21418 | int arg1 ; | |
21419 | int result; | |
8edf1c75 | 21420 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21421 | char *kwnames[] = { |
21422 | (char *) "winid", NULL | |
21423 | }; | |
21424 | ||
8edf1c75 | 21425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21426 | arg1 = (int) SWIG_AsInt(obj0); |
21427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21428 | { |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = (int)wxWindow::NextControlId(arg1); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
2f4c0a16 | 21435 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21436 | return resultobj; |
21437 | fail: | |
21438 | return NULL; | |
21439 | } | |
21440 | ||
21441 | ||
2f4c0a16 | 21442 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21443 | PyObject *resultobj; |
21444 | int arg1 ; | |
21445 | int result; | |
8edf1c75 | 21446 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21447 | char *kwnames[] = { |
21448 | (char *) "winid", NULL | |
21449 | }; | |
21450 | ||
8edf1c75 | 21451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21452 | arg1 = (int) SWIG_AsInt(obj0); |
21453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21454 | { |
21455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21456 | result = (int)wxWindow::PrevControlId(arg1); | |
21457 | ||
21458 | wxPyEndAllowThreads(__tstate); | |
21459 | if (PyErr_Occurred()) SWIG_fail; | |
21460 | } | |
2f4c0a16 | 21461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21462 | return resultobj; |
21463 | fail: | |
21464 | return NULL; | |
21465 | } | |
21466 | ||
21467 | ||
2f4c0a16 | 21468 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21469 | PyObject *resultobj; |
21470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21471 | wxSize *arg2 = 0 ; | |
21472 | wxSize temp2 ; | |
21473 | PyObject * obj0 = 0 ; | |
21474 | PyObject * obj1 = 0 ; | |
21475 | char *kwnames[] = { | |
21476 | (char *) "self",(char *) "size", NULL | |
21477 | }; | |
21478 | ||
21479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21482 | { |
21483 | arg2 = &temp2; | |
21484 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21485 | } | |
21486 | { | |
21487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21488 | (arg1)->SetSize((wxSize const &)*arg2); | |
21489 | ||
21490 | wxPyEndAllowThreads(__tstate); | |
21491 | if (PyErr_Occurred()) SWIG_fail; | |
21492 | } | |
21493 | Py_INCREF(Py_None); resultobj = Py_None; | |
21494 | return resultobj; | |
21495 | fail: | |
21496 | return NULL; | |
21497 | } | |
21498 | ||
21499 | ||
2f4c0a16 | 21500 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21501 | PyObject *resultobj; |
21502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21503 | int arg2 ; | |
21504 | int arg3 ; | |
21505 | int arg4 ; | |
21506 | int arg5 ; | |
21507 | int arg6 = (int) wxSIZE_AUTO ; | |
21508 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21509 | PyObject * obj1 = 0 ; |
21510 | PyObject * obj2 = 0 ; | |
21511 | PyObject * obj3 = 0 ; | |
21512 | PyObject * obj4 = 0 ; | |
21513 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21514 | char *kwnames[] = { |
21515 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21516 | }; | |
21517 | ||
8edf1c75 | 21518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21521 | arg2 = (int) SWIG_AsInt(obj1); | |
21522 | if (PyErr_Occurred()) SWIG_fail; | |
21523 | arg3 = (int) SWIG_AsInt(obj2); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | arg4 = (int) SWIG_AsInt(obj3); | |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
21527 | arg5 = (int) SWIG_AsInt(obj4); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21529 | if (obj5) { |
2f4c0a16 RD |
21530 | arg6 = (int) SWIG_AsInt(obj5); |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21532 | } |
d14a1e28 RD |
21533 | { |
21534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21535 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21536 | ||
21537 | wxPyEndAllowThreads(__tstate); | |
21538 | if (PyErr_Occurred()) SWIG_fail; | |
21539 | } | |
21540 | Py_INCREF(Py_None); resultobj = Py_None; | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
2f4c0a16 | 21547 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21548 | PyObject *resultobj; |
21549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21550 | wxRect *arg2 = 0 ; | |
21551 | int arg3 = (int) wxSIZE_AUTO ; | |
21552 | wxRect temp2 ; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21555 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21556 | char *kwnames[] = { |
21557 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21558 | }; | |
21559 | ||
8edf1c75 | 21560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21563 | { |
21564 | arg2 = &temp2; | |
21565 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21566 | } | |
8edf1c75 | 21567 | if (obj2) { |
2f4c0a16 RD |
21568 | arg3 = (int) SWIG_AsInt(obj2); |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21570 | } |
d14a1e28 RD |
21571 | { |
21572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21573 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21574 | ||
21575 | wxPyEndAllowThreads(__tstate); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
21578 | Py_INCREF(Py_None); resultobj = Py_None; | |
21579 | return resultobj; | |
21580 | fail: | |
21581 | return NULL; | |
21582 | } | |
21583 | ||
21584 | ||
2f4c0a16 | 21585 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21586 | PyObject *resultobj; |
21587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21588 | int arg2 ; | |
21589 | int arg3 ; | |
21590 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21591 | PyObject * obj1 = 0 ; |
21592 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21593 | char *kwnames[] = { |
21594 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21595 | }; | |
21596 | ||
8edf1c75 | 21597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21600 | arg2 = (int) SWIG_AsInt(obj1); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
21602 | arg3 = (int) SWIG_AsInt(obj2); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21604 | { |
21605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21606 | (arg1)->SetSize(arg2,arg3); | |
21607 | ||
21608 | wxPyEndAllowThreads(__tstate); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
21611 | Py_INCREF(Py_None); resultobj = Py_None; | |
21612 | return resultobj; | |
21613 | fail: | |
21614 | return NULL; | |
21615 | } | |
21616 | ||
21617 | ||
2f4c0a16 | 21618 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21619 | PyObject *resultobj; |
21620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21621 | wxPoint *arg2 = 0 ; | |
21622 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21623 | wxPoint temp2 ; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21626 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21627 | char *kwnames[] = { |
21628 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21629 | }; | |
21630 | ||
8edf1c75 | 21631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21634 | { |
21635 | arg2 = &temp2; | |
21636 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21637 | } | |
8edf1c75 | 21638 | if (obj2) { |
2f4c0a16 RD |
21639 | arg3 = (int) SWIG_AsInt(obj2); |
21640 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21641 | } |
d14a1e28 RD |
21642 | { |
21643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21644 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21645 | ||
21646 | wxPyEndAllowThreads(__tstate); | |
21647 | if (PyErr_Occurred()) SWIG_fail; | |
21648 | } | |
21649 | Py_INCREF(Py_None); resultobj = Py_None; | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
2f4c0a16 | 21656 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21657 | PyObject *resultobj; |
21658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21659 | int arg2 ; | |
21660 | int arg3 ; | |
21661 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21662 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21663 | PyObject * obj1 = 0 ; |
21664 | PyObject * obj2 = 0 ; | |
21665 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21666 | char *kwnames[] = { |
21667 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21668 | }; | |
21669 | ||
8edf1c75 | 21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21673 | arg2 = (int) SWIG_AsInt(obj1); | |
21674 | if (PyErr_Occurred()) SWIG_fail; | |
21675 | arg3 = (int) SWIG_AsInt(obj2); | |
21676 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21677 | if (obj3) { |
2f4c0a16 RD |
21678 | arg4 = (int) SWIG_AsInt(obj3); |
21679 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21680 | } |
d14a1e28 RD |
21681 | { |
21682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21683 | (arg1)->Move(arg2,arg3,arg4); | |
21684 | ||
21685 | wxPyEndAllowThreads(__tstate); | |
21686 | if (PyErr_Occurred()) SWIG_fail; | |
21687 | } | |
21688 | Py_INCREF(Py_None); resultobj = Py_None; | |
21689 | return resultobj; | |
21690 | fail: | |
21691 | return NULL; | |
21692 | } | |
21693 | ||
21694 | ||
2f4c0a16 | 21695 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21696 | PyObject *resultobj; |
21697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21698 | PyObject * obj0 = 0 ; | |
21699 | char *kwnames[] = { | |
21700 | (char *) "self", NULL | |
21701 | }; | |
21702 | ||
21703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21706 | { |
21707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21708 | (arg1)->Raise(); | |
21709 | ||
21710 | wxPyEndAllowThreads(__tstate); | |
21711 | if (PyErr_Occurred()) SWIG_fail; | |
21712 | } | |
21713 | Py_INCREF(Py_None); resultobj = Py_None; | |
21714 | return resultobj; | |
21715 | fail: | |
21716 | return NULL; | |
21717 | } | |
21718 | ||
21719 | ||
2f4c0a16 | 21720 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21721 | PyObject *resultobj; |
21722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21723 | PyObject * obj0 = 0 ; | |
21724 | char *kwnames[] = { | |
21725 | (char *) "self", NULL | |
21726 | }; | |
21727 | ||
21728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21731 | { |
21732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21733 | (arg1)->Lower(); | |
21734 | ||
21735 | wxPyEndAllowThreads(__tstate); | |
21736 | if (PyErr_Occurred()) SWIG_fail; | |
21737 | } | |
21738 | Py_INCREF(Py_None); resultobj = Py_None; | |
21739 | return resultobj; | |
21740 | fail: | |
21741 | return NULL; | |
21742 | } | |
21743 | ||
21744 | ||
2f4c0a16 | 21745 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21746 | PyObject *resultobj; |
21747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21748 | wxSize *arg2 = 0 ; | |
21749 | wxSize temp2 ; | |
21750 | PyObject * obj0 = 0 ; | |
21751 | PyObject * obj1 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "self",(char *) "size", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21759 | { |
21760 | arg2 = &temp2; | |
21761 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21762 | } | |
21763 | { | |
21764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21765 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
21766 | ||
21767 | wxPyEndAllowThreads(__tstate); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | } | |
21770 | Py_INCREF(Py_None); resultobj = Py_None; | |
21771 | return resultobj; | |
21772 | fail: | |
21773 | return NULL; | |
21774 | } | |
21775 | ||
21776 | ||
2f4c0a16 | 21777 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21778 | PyObject *resultobj; |
21779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21780 | int arg2 ; | |
21781 | int arg3 ; | |
21782 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21783 | PyObject * obj1 = 0 ; |
21784 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21785 | char *kwnames[] = { |
21786 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21787 | }; | |
21788 | ||
8edf1c75 | 21789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21792 | arg2 = (int) SWIG_AsInt(obj1); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | arg3 = (int) SWIG_AsInt(obj2); | |
21795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21796 | { |
21797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21798 | (arg1)->SetClientSize(arg2,arg3); | |
21799 | ||
21800 | wxPyEndAllowThreads(__tstate); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
21803 | Py_INCREF(Py_None); resultobj = Py_None; | |
21804 | return resultobj; | |
21805 | fail: | |
21806 | return NULL; | |
21807 | } | |
21808 | ||
21809 | ||
2f4c0a16 | 21810 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21811 | PyObject *resultobj; |
21812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21813 | wxRect *arg2 = 0 ; | |
21814 | wxRect temp2 ; | |
21815 | PyObject * obj0 = 0 ; | |
21816 | PyObject * obj1 = 0 ; | |
21817 | char *kwnames[] = { | |
21818 | (char *) "self",(char *) "rect", NULL | |
21819 | }; | |
21820 | ||
21821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21824 | { |
21825 | arg2 = &temp2; | |
21826 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21827 | } | |
21828 | { | |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
21831 | ||
21832 | wxPyEndAllowThreads(__tstate); | |
21833 | if (PyErr_Occurred()) SWIG_fail; | |
21834 | } | |
21835 | Py_INCREF(Py_None); resultobj = Py_None; | |
21836 | return resultobj; | |
21837 | fail: | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
2f4c0a16 | 21842 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21843 | PyObject *resultobj; |
21844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21845 | wxPoint result; | |
21846 | PyObject * obj0 = 0 ; | |
21847 | char *kwnames[] = { | |
21848 | (char *) "self", NULL | |
21849 | }; | |
21850 | ||
21851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21854 | { |
21855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21856 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
21857 | |
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | { | |
21862 | wxPoint * resultptr; | |
21863 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 21864 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21865 | } |
21866 | return resultobj; | |
21867 | fail: | |
21868 | return NULL; | |
21869 | } | |
21870 | ||
21871 | ||
2f4c0a16 | 21872 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21873 | PyObject *resultobj; |
21874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21875 | int *arg2 = (int *) 0 ; | |
21876 | int *arg3 = (int *) 0 ; | |
21877 | int temp2 ; | |
21878 | int temp3 ; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | char *kwnames[] = { | |
21881 | (char *) "self", NULL | |
21882 | }; | |
21883 | ||
21884 | arg2 = &temp2; | |
21885 | arg3 = &temp3; | |
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21889 | { |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21891 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
21892 | |
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | Py_INCREF(Py_None); resultobj = Py_None; | |
21897 | { | |
21898 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21899 | resultobj = t_output_helper(resultobj,o); | |
21900 | } | |
21901 | { | |
21902 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21903 | resultobj = t_output_helper(resultobj,o); | |
21904 | } | |
21905 | return resultobj; | |
21906 | fail: | |
21907 | return NULL; | |
21908 | } | |
21909 | ||
21910 | ||
2f4c0a16 | 21911 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21912 | PyObject *resultobj; |
21913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21914 | wxSize result; | |
21915 | PyObject * obj0 = 0 ; | |
21916 | char *kwnames[] = { | |
21917 | (char *) "self", NULL | |
21918 | }; | |
21919 | ||
21920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21923 | { |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21925 | result = ((wxWindow const *)arg1)->GetSize(); | |
21926 | ||
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | wxSize * resultptr; | |
21932 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 21933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21934 | } |
21935 | return resultobj; | |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
2f4c0a16 | 21941 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21942 | PyObject *resultobj; |
21943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21944 | int *arg2 = (int *) 0 ; | |
21945 | int *arg3 = (int *) 0 ; | |
21946 | int temp2 ; | |
21947 | int temp3 ; | |
21948 | PyObject * obj0 = 0 ; | |
21949 | char *kwnames[] = { | |
21950 | (char *) "self", NULL | |
21951 | }; | |
21952 | ||
21953 | arg2 = &temp2; | |
21954 | arg3 = &temp3; | |
21955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21958 | { |
21959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21960 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
21961 | ||
21962 | wxPyEndAllowThreads(__tstate); | |
21963 | if (PyErr_Occurred()) SWIG_fail; | |
21964 | } | |
21965 | Py_INCREF(Py_None); resultobj = Py_None; | |
21966 | { | |
21967 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21968 | resultobj = t_output_helper(resultobj,o); | |
21969 | } | |
21970 | { | |
21971 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21972 | resultobj = t_output_helper(resultobj,o); | |
21973 | } | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
2f4c0a16 | 21980 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21981 | PyObject *resultobj; |
21982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21983 | wxRect result; | |
21984 | PyObject * obj0 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21992 | { |
21993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21994 | result = ((wxWindow const *)arg1)->GetRect(); | |
21995 | ||
21996 | wxPyEndAllowThreads(__tstate); | |
21997 | if (PyErr_Occurred()) SWIG_fail; | |
21998 | } | |
21999 | { | |
22000 | wxRect * resultptr; | |
22001 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22003 | } |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
2f4c0a16 | 22010 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22011 | PyObject *resultobj; |
22012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22013 | wxSize result; | |
22014 | PyObject * obj0 = 0 ; | |
22015 | char *kwnames[] = { | |
22016 | (char *) "self", NULL | |
22017 | }; | |
22018 | ||
22019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22022 | { |
22023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22024 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22025 | ||
22026 | wxPyEndAllowThreads(__tstate); | |
22027 | if (PyErr_Occurred()) SWIG_fail; | |
22028 | } | |
22029 | { | |
22030 | wxSize * resultptr; | |
22031 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22033 | } |
22034 | return resultobj; | |
22035 | fail: | |
22036 | return NULL; | |
22037 | } | |
22038 | ||
22039 | ||
2f4c0a16 | 22040 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22041 | PyObject *resultobj; |
22042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22043 | int *arg2 = (int *) 0 ; | |
22044 | int *arg3 = (int *) 0 ; | |
22045 | int temp2 ; | |
22046 | int temp3 ; | |
22047 | PyObject * obj0 = 0 ; | |
22048 | char *kwnames[] = { | |
22049 | (char *) "self", NULL | |
22050 | }; | |
22051 | ||
22052 | arg2 = &temp2; | |
22053 | arg3 = &temp3; | |
22054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22057 | { |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | Py_INCREF(Py_None); resultobj = Py_None; | |
22065 | { | |
22066 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22067 | resultobj = t_output_helper(resultobj,o); | |
22068 | } | |
22069 | { | |
22070 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22071 | resultobj = t_output_helper(resultobj,o); | |
22072 | } | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
2f4c0a16 | 22079 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22080 | PyObject *resultobj; |
22081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22082 | wxPoint result; | |
22083 | PyObject * obj0 = 0 ; | |
22084 | char *kwnames[] = { | |
22085 | (char *) "self", NULL | |
22086 | }; | |
22087 | ||
22088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22091 | { |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | { | |
22099 | wxPoint * resultptr; | |
22100 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22102 | } |
22103 | return resultobj; | |
22104 | fail: | |
22105 | return NULL; | |
22106 | } | |
22107 | ||
22108 | ||
2f4c0a16 | 22109 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22110 | PyObject *resultobj; |
22111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22112 | wxRect result; | |
22113 | PyObject * obj0 = 0 ; | |
22114 | char *kwnames[] = { | |
22115 | (char *) "self", NULL | |
22116 | }; | |
22117 | ||
22118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22121 | { |
22122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22123 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22124 | ||
22125 | wxPyEndAllowThreads(__tstate); | |
22126 | if (PyErr_Occurred()) SWIG_fail; | |
22127 | } | |
22128 | { | |
22129 | wxRect * resultptr; | |
22130 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22132 | } |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
2f4c0a16 | 22139 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22140 | PyObject *resultobj; |
22141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22142 | wxSize result; | |
22143 | PyObject * obj0 = 0 ; | |
22144 | char *kwnames[] = { | |
22145 | (char *) "self", NULL | |
22146 | }; | |
22147 | ||
22148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22151 | { |
22152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22153 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22154 | ||
22155 | wxPyEndAllowThreads(__tstate); | |
22156 | if (PyErr_Occurred()) SWIG_fail; | |
22157 | } | |
22158 | { | |
22159 | wxSize * resultptr; | |
22160 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22161 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22162 | } |
22163 | return resultobj; | |
22164 | fail: | |
22165 | return NULL; | |
22166 | } | |
22167 | ||
22168 | ||
2f4c0a16 | 22169 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22170 | PyObject *resultobj; |
22171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22172 | int *arg2 = (int *) 0 ; | |
22173 | int *arg3 = (int *) 0 ; | |
22174 | int temp2 ; | |
22175 | int temp3 ; | |
22176 | PyObject * obj0 = 0 ; | |
22177 | char *kwnames[] = { | |
22178 | (char *) "self", NULL | |
22179 | }; | |
22180 | ||
22181 | arg2 = &temp2; | |
22182 | arg3 = &temp3; | |
22183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22186 | { |
22187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22188 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22189 | ||
22190 | wxPyEndAllowThreads(__tstate); | |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
22192 | } | |
22193 | Py_INCREF(Py_None); resultobj = Py_None; | |
22194 | { | |
22195 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22196 | resultobj = t_output_helper(resultobj,o); | |
22197 | } | |
22198 | { | |
22199 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22200 | resultobj = t_output_helper(resultobj,o); | |
22201 | } | |
22202 | return resultobj; | |
22203 | fail: | |
22204 | return NULL; | |
22205 | } | |
22206 | ||
22207 | ||
2f4c0a16 | 22208 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22209 | PyObject *resultobj; |
22210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22211 | wxSize result; | |
22212 | PyObject * obj0 = 0 ; | |
22213 | char *kwnames[] = { | |
22214 | (char *) "self", NULL | |
22215 | }; | |
22216 | ||
22217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22220 | { |
22221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22222 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22223 | ||
22224 | wxPyEndAllowThreads(__tstate); | |
22225 | if (PyErr_Occurred()) SWIG_fail; | |
22226 | } | |
22227 | { | |
22228 | wxSize * resultptr; | |
22229 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22231 | } |
22232 | return resultobj; | |
22233 | fail: | |
22234 | return NULL; | |
22235 | } | |
22236 | ||
22237 | ||
2f4c0a16 | 22238 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22239 | PyObject *resultobj; |
22240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22241 | int arg2 = (int) wxBOTH ; | |
22242 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22243 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22244 | char *kwnames[] = { |
22245 | (char *) "self",(char *) "direction", NULL | |
22246 | }; | |
22247 | ||
8edf1c75 | 22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22251 | if (obj1) { |
2f4c0a16 RD |
22252 | arg2 = (int) SWIG_AsInt(obj1); |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22254 | } |
d14a1e28 RD |
22255 | { |
22256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22257 | (arg1)->Center(arg2); | |
22258 | ||
22259 | wxPyEndAllowThreads(__tstate); | |
22260 | if (PyErr_Occurred()) SWIG_fail; | |
22261 | } | |
22262 | Py_INCREF(Py_None); resultobj = Py_None; | |
22263 | return resultobj; | |
22264 | fail: | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
2f4c0a16 | 22269 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22270 | PyObject *resultobj; |
22271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22272 | int arg2 = (int) wxBOTH ; | |
22273 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22274 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22275 | char *kwnames[] = { |
22276 | (char *) "self",(char *) "dir", NULL | |
22277 | }; | |
22278 | ||
8edf1c75 | 22279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22282 | if (obj1) { |
2f4c0a16 RD |
22283 | arg2 = (int) SWIG_AsInt(obj1); |
22284 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22285 | } |
d14a1e28 RD |
22286 | { |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | (arg1)->CenterOnScreen(arg2); | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
22293 | Py_INCREF(Py_None); resultobj = Py_None; | |
22294 | return resultobj; | |
22295 | fail: | |
22296 | return NULL; | |
22297 | } | |
22298 | ||
22299 | ||
2f4c0a16 | 22300 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22301 | PyObject *resultobj; |
22302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22303 | int arg2 = (int) wxBOTH ; | |
22304 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22305 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22306 | char *kwnames[] = { |
22307 | (char *) "self",(char *) "dir", NULL | |
22308 | }; | |
22309 | ||
8edf1c75 | 22310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22313 | if (obj1) { |
2f4c0a16 RD |
22314 | arg2 = (int) SWIG_AsInt(obj1); |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22316 | } |
d14a1e28 RD |
22317 | { |
22318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22319 | (arg1)->CenterOnParent(arg2); | |
22320 | ||
22321 | wxPyEndAllowThreads(__tstate); | |
22322 | if (PyErr_Occurred()) SWIG_fail; | |
22323 | } | |
22324 | Py_INCREF(Py_None); resultobj = Py_None; | |
22325 | return resultobj; | |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
2f4c0a16 | 22331 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22332 | PyObject *resultobj; |
22333 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22334 | PyObject * obj0 = 0 ; | |
22335 | char *kwnames[] = { | |
22336 | (char *) "self", NULL | |
22337 | }; | |
22338 | ||
22339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22342 | { |
22343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22344 | (arg1)->Fit(); | |
22345 | ||
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | Py_INCREF(Py_None); resultobj = Py_None; | |
22350 | return resultobj; | |
22351 | fail: | |
22352 | return NULL; | |
22353 | } | |
22354 | ||
22355 | ||
2f4c0a16 | 22356 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22357 | PyObject *resultobj; |
22358 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22359 | PyObject * obj0 = 0 ; | |
22360 | char *kwnames[] = { | |
22361 | (char *) "self", NULL | |
22362 | }; | |
22363 | ||
22364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22367 | { |
22368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22369 | (arg1)->FitInside(); | |
22370 | ||
22371 | wxPyEndAllowThreads(__tstate); | |
22372 | if (PyErr_Occurred()) SWIG_fail; | |
22373 | } | |
22374 | Py_INCREF(Py_None); resultobj = Py_None; | |
22375 | return resultobj; | |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
2f4c0a16 | 22381 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22382 | PyObject *resultobj; |
22383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22384 | int arg2 ; | |
22385 | int arg3 ; | |
22386 | int arg4 = (int) -1 ; | |
22387 | int arg5 = (int) -1 ; | |
22388 | int arg6 = (int) -1 ; | |
22389 | int arg7 = (int) -1 ; | |
22390 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22391 | PyObject * obj1 = 0 ; |
22392 | PyObject * obj2 = 0 ; | |
22393 | PyObject * obj3 = 0 ; | |
22394 | PyObject * obj4 = 0 ; | |
22395 | PyObject * obj5 = 0 ; | |
22396 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22397 | char *kwnames[] = { |
22398 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22399 | }; | |
22400 | ||
8edf1c75 | 22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22404 | arg2 = (int) SWIG_AsInt(obj1); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | arg3 = (int) SWIG_AsInt(obj2); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22408 | if (obj3) { |
2f4c0a16 RD |
22409 | arg4 = (int) SWIG_AsInt(obj3); |
22410 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22411 | } |
22412 | if (obj4) { | |
2f4c0a16 RD |
22413 | arg5 = (int) SWIG_AsInt(obj4); |
22414 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22415 | } |
22416 | if (obj5) { | |
2f4c0a16 RD |
22417 | arg6 = (int) SWIG_AsInt(obj5); |
22418 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22419 | } |
22420 | if (obj6) { | |
2f4c0a16 RD |
22421 | arg7 = (int) SWIG_AsInt(obj6); |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22423 | } |
d14a1e28 RD |
22424 | { |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22427 | ||
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | Py_INCREF(Py_None); resultobj = Py_None; | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | return NULL; | |
22435 | } | |
22436 | ||
22437 | ||
2f4c0a16 | 22438 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22439 | PyObject *resultobj; |
22440 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22441 | int arg2 ; | |
22442 | int arg3 ; | |
22443 | int arg4 = (int) -1 ; | |
22444 | int arg5 = (int) -1 ; | |
22445 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22446 | PyObject * obj1 = 0 ; |
22447 | PyObject * obj2 = 0 ; | |
22448 | PyObject * obj3 = 0 ; | |
22449 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22450 | char *kwnames[] = { |
22451 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22452 | }; | |
22453 | ||
8edf1c75 | 22454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22457 | arg2 = (int) SWIG_AsInt(obj1); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | arg3 = (int) SWIG_AsInt(obj2); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22461 | if (obj3) { |
2f4c0a16 RD |
22462 | arg4 = (int) SWIG_AsInt(obj3); |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22464 | } |
22465 | if (obj4) { | |
2f4c0a16 RD |
22466 | arg5 = (int) SWIG_AsInt(obj4); |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22468 | } |
d14a1e28 RD |
22469 | { |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22472 | ||
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
22476 | Py_INCREF(Py_None); resultobj = Py_None; | |
22477 | return resultobj; | |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
2f4c0a16 | 22483 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22484 | PyObject *resultobj; |
22485 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22486 | int result; | |
22487 | PyObject * obj0 = 0 ; | |
22488 | char *kwnames[] = { | |
22489 | (char *) "self", NULL | |
22490 | }; | |
22491 | ||
22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22495 | { |
22496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22497 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
2f4c0a16 | 22502 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22503 | return resultobj; |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
2f4c0a16 | 22509 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22510 | PyObject *resultobj; |
22511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22512 | int result; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | char *kwnames[] = { | |
22515 | (char *) "self", NULL | |
22516 | }; | |
22517 | ||
22518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22521 | { |
22522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22523 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22524 | ||
22525 | wxPyEndAllowThreads(__tstate); | |
22526 | if (PyErr_Occurred()) SWIG_fail; | |
22527 | } | |
2f4c0a16 | 22528 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22529 | return resultobj; |
22530 | fail: | |
22531 | return NULL; | |
22532 | } | |
22533 | ||
22534 | ||
2f4c0a16 | 22535 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22536 | PyObject *resultobj; |
22537 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22538 | int result; | |
22539 | PyObject * obj0 = 0 ; | |
22540 | char *kwnames[] = { | |
22541 | (char *) "self", NULL | |
22542 | }; | |
22543 | ||
22544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22547 | { |
22548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22549 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22550 | ||
22551 | wxPyEndAllowThreads(__tstate); | |
22552 | if (PyErr_Occurred()) SWIG_fail; | |
22553 | } | |
2f4c0a16 | 22554 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22555 | return resultobj; |
22556 | fail: | |
22557 | return NULL; | |
22558 | } | |
22559 | ||
22560 | ||
2f4c0a16 | 22561 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22562 | PyObject *resultobj; |
22563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22564 | int result; | |
22565 | PyObject * obj0 = 0 ; | |
22566 | char *kwnames[] = { | |
22567 | (char *) "self", NULL | |
22568 | }; | |
22569 | ||
22570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22573 | { |
22574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22575 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22576 | ||
22577 | wxPyEndAllowThreads(__tstate); | |
22578 | if (PyErr_Occurred()) SWIG_fail; | |
22579 | } | |
2f4c0a16 | 22580 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22581 | return resultobj; |
22582 | fail: | |
22583 | return NULL; | |
22584 | } | |
22585 | ||
22586 | ||
2f4c0a16 | 22587 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22588 | PyObject *resultobj; |
22589 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22590 | wxSize result; | |
22591 | PyObject * obj0 = 0 ; | |
22592 | char *kwnames[] = { | |
22593 | (char *) "self", NULL | |
22594 | }; | |
22595 | ||
22596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22599 | { |
22600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22601 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | { | |
22607 | wxSize * resultptr; | |
22608 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22609 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22610 | } |
22611 | return resultobj; | |
22612 | fail: | |
22613 | return NULL; | |
22614 | } | |
22615 | ||
22616 | ||
2f4c0a16 | 22617 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22618 | PyObject *resultobj; |
22619 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22620 | wxSize *arg2 = 0 ; | |
22621 | wxSize temp2 ; | |
22622 | PyObject * obj0 = 0 ; | |
22623 | PyObject * obj1 = 0 ; | |
22624 | char *kwnames[] = { | |
22625 | (char *) "self",(char *) "size", NULL | |
22626 | }; | |
22627 | ||
22628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22631 | { |
22632 | arg2 = &temp2; | |
22633 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22634 | } | |
22635 | { | |
22636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22637 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22638 | ||
22639 | wxPyEndAllowThreads(__tstate); | |
22640 | if (PyErr_Occurred()) SWIG_fail; | |
22641 | } | |
22642 | Py_INCREF(Py_None); resultobj = Py_None; | |
22643 | return resultobj; | |
22644 | fail: | |
22645 | return NULL; | |
22646 | } | |
22647 | ||
22648 | ||
2f4c0a16 | 22649 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22650 | PyObject *resultobj; |
22651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22652 | int arg2 ; | |
22653 | int arg3 ; | |
22654 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22655 | PyObject * obj1 = 0 ; |
22656 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22657 | char *kwnames[] = { |
22658 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22659 | }; | |
22660 | ||
8edf1c75 | 22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22664 | arg2 = (int) SWIG_AsInt(obj1); | |
22665 | if (PyErr_Occurred()) SWIG_fail; | |
22666 | arg3 = (int) SWIG_AsInt(obj2); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22668 | { |
22669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22670 | (arg1)->SetVirtualSize(arg2,arg3); | |
22671 | ||
22672 | wxPyEndAllowThreads(__tstate); | |
22673 | if (PyErr_Occurred()) SWIG_fail; | |
22674 | } | |
22675 | Py_INCREF(Py_None); resultobj = Py_None; | |
22676 | return resultobj; | |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
2f4c0a16 | 22682 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22683 | PyObject *resultobj; |
22684 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22685 | wxSize result; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | char *kwnames[] = { | |
22688 | (char *) "self", NULL | |
22689 | }; | |
22690 | ||
22691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22694 | { |
22695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22696 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
22697 | ||
22698 | wxPyEndAllowThreads(__tstate); | |
22699 | if (PyErr_Occurred()) SWIG_fail; | |
22700 | } | |
22701 | { | |
22702 | wxSize * resultptr; | |
22703 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22705 | } |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
2f4c0a16 | 22712 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22713 | PyObject *resultobj; |
22714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22715 | int *arg2 = (int *) 0 ; | |
22716 | int *arg3 = (int *) 0 ; | |
22717 | int temp2 ; | |
22718 | int temp3 ; | |
22719 | PyObject * obj0 = 0 ; | |
22720 | char *kwnames[] = { | |
22721 | (char *) "self", NULL | |
22722 | }; | |
22723 | ||
22724 | arg2 = &temp2; | |
22725 | arg3 = &temp3; | |
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22729 | { |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | Py_INCREF(Py_None); resultobj = Py_None; | |
22737 | { | |
22738 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22739 | resultobj = t_output_helper(resultobj,o); | |
22740 | } | |
22741 | { | |
22742 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22743 | resultobj = t_output_helper(resultobj,o); | |
22744 | } | |
22745 | return resultobj; | |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
2f4c0a16 | 22751 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22752 | PyObject *resultobj; |
22753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22754 | wxSize result; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22763 | { |
22764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22765 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
22766 | ||
22767 | wxPyEndAllowThreads(__tstate); | |
22768 | if (PyErr_Occurred()) SWIG_fail; | |
22769 | } | |
22770 | { | |
22771 | wxSize * resultptr; | |
22772 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22773 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22774 | } |
22775 | return resultobj; | |
22776 | fail: | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
2f4c0a16 | 22781 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22782 | PyObject *resultobj; |
22783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22784 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22785 | bool result; |
22786 | PyObject * obj0 = 0 ; | |
22787 | PyObject * obj1 = 0 ; | |
22788 | char *kwnames[] = { | |
22789 | (char *) "self",(char *) "show", NULL | |
22790 | }; | |
22791 | ||
22792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 22795 | if (obj1) { |
2f4c0a16 RD |
22796 | arg2 = (bool) SWIG_AsBool(obj1); |
22797 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22798 | } |
22799 | { | |
22800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22801 | result = (bool)(arg1)->Show(arg2); | |
22802 | ||
22803 | wxPyEndAllowThreads(__tstate); | |
22804 | if (PyErr_Occurred()) SWIG_fail; | |
22805 | } | |
02a34c4c | 22806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22807 | return resultobj; |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
2f4c0a16 | 22813 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22814 | PyObject *resultobj; |
22815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22816 | bool result; | |
22817 | PyObject * obj0 = 0 ; | |
22818 | char *kwnames[] = { | |
22819 | (char *) "self", NULL | |
22820 | }; | |
22821 | ||
22822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22825 | { |
22826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22827 | result = (bool)(arg1)->Hide(); | |
22828 | ||
22829 | wxPyEndAllowThreads(__tstate); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | } | |
02a34c4c | 22832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22833 | return resultobj; |
22834 | fail: | |
22835 | return NULL; | |
22836 | } | |
22837 | ||
22838 | ||
2f4c0a16 | 22839 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22840 | PyObject *resultobj; |
22841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22842 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22843 | bool result; |
22844 | PyObject * obj0 = 0 ; | |
22845 | PyObject * obj1 = 0 ; | |
22846 | char *kwnames[] = { | |
22847 | (char *) "self",(char *) "enable", NULL | |
22848 | }; | |
22849 | ||
22850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 22853 | if (obj1) { |
2f4c0a16 RD |
22854 | arg2 = (bool) SWIG_AsBool(obj1); |
22855 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22856 | } |
22857 | { | |
22858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22859 | result = (bool)(arg1)->Enable(arg2); | |
22860 | ||
22861 | wxPyEndAllowThreads(__tstate); | |
22862 | if (PyErr_Occurred()) SWIG_fail; | |
22863 | } | |
02a34c4c | 22864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22865 | return resultobj; |
22866 | fail: | |
22867 | return NULL; | |
22868 | } | |
22869 | ||
22870 | ||
2f4c0a16 | 22871 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22872 | PyObject *resultobj; |
22873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22874 | bool result; | |
22875 | PyObject * obj0 = 0 ; | |
22876 | char *kwnames[] = { | |
22877 | (char *) "self", NULL | |
22878 | }; | |
22879 | ||
22880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22883 | { |
22884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22885 | result = (bool)(arg1)->Disable(); | |
22886 | ||
22887 | wxPyEndAllowThreads(__tstate); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | } | |
02a34c4c | 22890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22891 | return resultobj; |
22892 | fail: | |
22893 | return NULL; | |
22894 | } | |
22895 | ||
22896 | ||
2f4c0a16 | 22897 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22898 | PyObject *resultobj; |
22899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22900 | bool result; | |
22901 | PyObject * obj0 = 0 ; | |
22902 | char *kwnames[] = { | |
22903 | (char *) "self", NULL | |
22904 | }; | |
22905 | ||
22906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22909 | { |
22910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22911 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
22912 | ||
22913 | wxPyEndAllowThreads(__tstate); | |
22914 | if (PyErr_Occurred()) SWIG_fail; | |
22915 | } | |
02a34c4c | 22916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22917 | return resultobj; |
22918 | fail: | |
22919 | return NULL; | |
22920 | } | |
22921 | ||
22922 | ||
2f4c0a16 | 22923 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22924 | PyObject *resultobj; |
22925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22926 | bool result; | |
22927 | PyObject * obj0 = 0 ; | |
22928 | char *kwnames[] = { | |
22929 | (char *) "self", NULL | |
22930 | }; | |
22931 | ||
22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22935 | { |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
22938 | ||
22939 | wxPyEndAllowThreads(__tstate); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
22941 | } | |
02a34c4c | 22942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22943 | return resultobj; |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
2f4c0a16 | 22949 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22950 | PyObject *resultobj; |
22951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22952 | long arg2 ; | |
22953 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22955 | char *kwnames[] = { |
22956 | (char *) "self",(char *) "style", NULL | |
22957 | }; | |
22958 | ||
8edf1c75 | 22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22962 | arg2 = (long) SWIG_AsLong(obj1); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22964 | { |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | (arg1)->SetWindowStyleFlag(arg2); | |
22967 | ||
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
22971 | Py_INCREF(Py_None); resultobj = Py_None; | |
22972 | return resultobj; | |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
2f4c0a16 | 22978 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22979 | PyObject *resultobj; |
22980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22981 | long result; | |
22982 | PyObject * obj0 = 0 ; | |
22983 | char *kwnames[] = { | |
22984 | (char *) "self", NULL | |
22985 | }; | |
22986 | ||
22987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22990 | { |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
22993 | ||
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
2f4c0a16 | 22997 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22998 | return resultobj; |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
2f4c0a16 | 23004 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23005 | PyObject *resultobj; |
23006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23007 | int arg2 ; | |
23008 | bool result; | |
23009 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23010 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23011 | char *kwnames[] = { |
23012 | (char *) "self",(char *) "flag", NULL | |
23013 | }; | |
23014 | ||
8edf1c75 | 23015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23018 | arg2 = (int) SWIG_AsInt(obj1); | |
23019 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23020 | { |
23021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23022 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23023 | ||
23024 | wxPyEndAllowThreads(__tstate); | |
23025 | if (PyErr_Occurred()) SWIG_fail; | |
23026 | } | |
02a34c4c | 23027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23028 | return resultobj; |
23029 | fail: | |
23030 | return NULL; | |
23031 | } | |
23032 | ||
23033 | ||
2f4c0a16 | 23034 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23035 | PyObject *resultobj; |
23036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23037 | bool result; | |
23038 | PyObject * obj0 = 0 ; | |
23039 | char *kwnames[] = { | |
23040 | (char *) "self", NULL | |
23041 | }; | |
23042 | ||
23043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23046 | { |
23047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23048 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23049 | ||
23050 | wxPyEndAllowThreads(__tstate); | |
23051 | if (PyErr_Occurred()) SWIG_fail; | |
23052 | } | |
02a34c4c | 23053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23054 | return resultobj; |
23055 | fail: | |
23056 | return NULL; | |
23057 | } | |
23058 | ||
23059 | ||
2f4c0a16 | 23060 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23061 | PyObject *resultobj; |
23062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23063 | long arg2 ; | |
23064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23066 | char *kwnames[] = { |
23067 | (char *) "self",(char *) "exStyle", NULL | |
23068 | }; | |
23069 | ||
8edf1c75 | 23070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23073 | arg2 = (long) SWIG_AsLong(obj1); | |
23074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23075 | { |
23076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23077 | (arg1)->SetExtraStyle(arg2); | |
23078 | ||
23079 | wxPyEndAllowThreads(__tstate); | |
23080 | if (PyErr_Occurred()) SWIG_fail; | |
23081 | } | |
23082 | Py_INCREF(Py_None); resultobj = Py_None; | |
23083 | return resultobj; | |
23084 | fail: | |
23085 | return NULL; | |
23086 | } | |
23087 | ||
23088 | ||
2f4c0a16 | 23089 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23090 | PyObject *resultobj; |
23091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23092 | long result; | |
23093 | PyObject * obj0 = 0 ; | |
23094 | char *kwnames[] = { | |
23095 | (char *) "self", NULL | |
23096 | }; | |
23097 | ||
23098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23101 | { |
23102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23103 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23104 | ||
23105 | wxPyEndAllowThreads(__tstate); | |
23106 | if (PyErr_Occurred()) SWIG_fail; | |
23107 | } | |
2f4c0a16 | 23108 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23109 | return resultobj; |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
2f4c0a16 | 23115 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23116 | PyObject *resultobj; |
23117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23118 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23119 | PyObject * obj0 = 0 ; |
23120 | PyObject * obj1 = 0 ; | |
23121 | char *kwnames[] = { | |
23122 | (char *) "self",(char *) "modal", NULL | |
23123 | }; | |
23124 | ||
23125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23128 | if (obj1) { |
2f4c0a16 RD |
23129 | arg2 = (bool) SWIG_AsBool(obj1); |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23131 | } |
23132 | { | |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | (arg1)->MakeModal(arg2); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
23139 | Py_INCREF(Py_None); resultobj = Py_None; | |
23140 | return resultobj; | |
23141 | fail: | |
23142 | return NULL; | |
23143 | } | |
23144 | ||
23145 | ||
2f4c0a16 | 23146 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23147 | PyObject *resultobj; |
23148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23149 | bool arg2 ; | |
23150 | PyObject * obj0 = 0 ; | |
23151 | PyObject * obj1 = 0 ; | |
23152 | char *kwnames[] = { | |
23153 | (char *) "self",(char *) "enableTheme", NULL | |
23154 | }; | |
23155 | ||
23156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23159 | arg2 = (bool) SWIG_AsBool(obj1); | |
23160 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23161 | { |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | (arg1)->SetThemeEnabled(arg2); | |
23164 | ||
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
23168 | Py_INCREF(Py_None); resultobj = Py_None; | |
23169 | return resultobj; | |
23170 | fail: | |
23171 | return NULL; | |
23172 | } | |
23173 | ||
23174 | ||
2f4c0a16 | 23175 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23176 | PyObject *resultobj; |
23177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23178 | bool result; | |
23179 | PyObject * obj0 = 0 ; | |
23180 | char *kwnames[] = { | |
23181 | (char *) "self", NULL | |
23182 | }; | |
23183 | ||
23184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23187 | { |
23188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23189 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
23190 | ||
23191 | wxPyEndAllowThreads(__tstate); | |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
23193 | } | |
02a34c4c | 23194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23195 | return resultobj; |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
2f4c0a16 | 23201 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23202 | PyObject *resultobj; |
23203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23204 | PyObject * obj0 = 0 ; | |
23205 | char *kwnames[] = { | |
23206 | (char *) "self", NULL | |
23207 | }; | |
23208 | ||
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23212 | { |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | (arg1)->SetFocus(); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
23219 | Py_INCREF(Py_None); resultobj = Py_None; | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
2f4c0a16 | 23226 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23227 | PyObject *resultobj; |
23228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23229 | PyObject * obj0 = 0 ; | |
23230 | char *kwnames[] = { | |
23231 | (char *) "self", NULL | |
23232 | }; | |
23233 | ||
23234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23237 | { |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | (arg1)->SetFocusFromKbd(); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | Py_INCREF(Py_None); resultobj = Py_None; | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
2f4c0a16 | 23251 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23252 | PyObject *resultobj; |
23253 | wxWindow *result; | |
23254 | char *kwnames[] = { | |
23255 | NULL | |
23256 | }; | |
23257 | ||
23258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23259 | { | |
23260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23261 | result = (wxWindow *)wxWindow::FindFocus(); | |
23262 | ||
23263 | wxPyEndAllowThreads(__tstate); | |
23264 | if (PyErr_Occurred()) SWIG_fail; | |
23265 | } | |
23266 | { | |
23267 | resultobj = wxPyMake_wxObject(result); | |
23268 | } | |
23269 | return resultobj; | |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
2f4c0a16 | 23275 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23276 | PyObject *resultobj; |
23277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23278 | bool result; | |
23279 | PyObject * obj0 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23287 | { |
23288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23289 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23290 | ||
23291 | wxPyEndAllowThreads(__tstate); | |
23292 | if (PyErr_Occurred()) SWIG_fail; | |
23293 | } | |
02a34c4c | 23294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23295 | return resultobj; |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
2f4c0a16 | 23301 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23302 | PyObject *resultobj; |
23303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23304 | bool result; | |
23305 | PyObject * obj0 = 0 ; | |
23306 | char *kwnames[] = { | |
23307 | (char *) "self", NULL | |
23308 | }; | |
23309 | ||
23310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23313 | { |
23314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23315 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23316 | ||
23317 | wxPyEndAllowThreads(__tstate); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
23319 | } | |
02a34c4c | 23320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23321 | return resultobj; |
23322 | fail: | |
23323 | return NULL; | |
23324 | } | |
23325 | ||
23326 | ||
2f4c0a16 | 23327 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23328 | PyObject *resultobj; |
23329 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23330 | wxWindow *result; | |
23331 | PyObject * obj0 = 0 ; | |
23332 | char *kwnames[] = { | |
23333 | (char *) "self", NULL | |
23334 | }; | |
23335 | ||
23336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23339 | { |
23340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23341 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23342 | ||
23343 | wxPyEndAllowThreads(__tstate); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
23345 | } | |
23346 | { | |
23347 | resultobj = wxPyMake_wxObject(result); | |
23348 | } | |
23349 | return resultobj; | |
23350 | fail: | |
23351 | return NULL; | |
23352 | } | |
23353 | ||
23354 | ||
2f4c0a16 | 23355 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23356 | PyObject *resultobj; |
23357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23358 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23359 | wxWindow *result; | |
23360 | PyObject * obj0 = 0 ; | |
23361 | PyObject * obj1 = 0 ; | |
23362 | char *kwnames[] = { | |
23363 | (char *) "self",(char *) "child", NULL | |
23364 | }; | |
23365 | ||
23366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23371 | { |
23372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23373 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23374 | ||
23375 | wxPyEndAllowThreads(__tstate); | |
23376 | if (PyErr_Occurred()) SWIG_fail; | |
23377 | } | |
23378 | { | |
23379 | resultobj = wxPyMake_wxObject(result); | |
23380 | } | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
2f4c0a16 | 23387 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23388 | PyObject *resultobj; |
23389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23390 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23391 | PyObject * obj0 = 0 ; | |
23392 | PyObject * obj1 = 0 ; | |
23393 | char *kwnames[] = { | |
23394 | (char *) "self",(char *) "win", NULL | |
23395 | }; | |
23396 | ||
23397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23402 | { |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | (arg1)->SetTmpDefaultItem(arg2); | |
23405 | ||
23406 | wxPyEndAllowThreads(__tstate); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | Py_INCREF(Py_None); resultobj = Py_None; | |
23410 | return resultobj; | |
23411 | fail: | |
23412 | return NULL; | |
23413 | } | |
23414 | ||
23415 | ||
2f4c0a16 | 23416 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23417 | PyObject *resultobj; |
23418 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23419 | PyObject *result; | |
23420 | PyObject * obj0 = 0 ; | |
23421 | char *kwnames[] = { | |
23422 | (char *) "self", NULL | |
23423 | }; | |
23424 | ||
23425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23428 | { |
23429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23430 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23431 | ||
23432 | wxPyEndAllowThreads(__tstate); | |
23433 | if (PyErr_Occurred()) SWIG_fail; | |
23434 | } | |
23435 | resultobj = result; | |
23436 | return resultobj; | |
23437 | fail: | |
23438 | return NULL; | |
23439 | } | |
23440 | ||
23441 | ||
2f4c0a16 | 23442 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23443 | PyObject *resultobj; |
23444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23445 | wxWindow *result; | |
23446 | PyObject * obj0 = 0 ; | |
23447 | char *kwnames[] = { | |
23448 | (char *) "self", NULL | |
23449 | }; | |
23450 | ||
23451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23454 | { |
23455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23456 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23457 | ||
23458 | wxPyEndAllowThreads(__tstate); | |
23459 | if (PyErr_Occurred()) SWIG_fail; | |
23460 | } | |
23461 | { | |
23462 | resultobj = wxPyMake_wxObject(result); | |
23463 | } | |
23464 | return resultobj; | |
23465 | fail: | |
23466 | return NULL; | |
23467 | } | |
23468 | ||
23469 | ||
2f4c0a16 | 23470 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23471 | PyObject *resultobj; |
23472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23473 | wxWindow *result; | |
23474 | PyObject * obj0 = 0 ; | |
23475 | char *kwnames[] = { | |
23476 | (char *) "self", NULL | |
23477 | }; | |
23478 | ||
23479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23482 | { |
23483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23484 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23485 | ||
23486 | wxPyEndAllowThreads(__tstate); | |
23487 | if (PyErr_Occurred()) SWIG_fail; | |
23488 | } | |
23489 | { | |
23490 | resultobj = wxPyMake_wxObject(result); | |
23491 | } | |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
2f4c0a16 | 23498 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23499 | PyObject *resultobj; |
23500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23501 | bool result; | |
23502 | PyObject * obj0 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
2f4c0a16 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 = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
02a34c4c | 23517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23518 | return resultobj; |
23519 | fail: | |
23520 | return NULL; | |
23521 | } | |
23522 | ||
23523 | ||
2f4c0a16 | 23524 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23525 | PyObject *resultobj; |
23526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23527 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23528 | bool result; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | PyObject * obj1 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self",(char *) "newParent", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23540 | { |
23541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23542 | result = (bool)(arg1)->Reparent(arg2); | |
23543 | ||
23544 | wxPyEndAllowThreads(__tstate); | |
23545 | if (PyErr_Occurred()) SWIG_fail; | |
23546 | } | |
02a34c4c | 23547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23548 | return resultobj; |
23549 | fail: | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
2f4c0a16 | 23554 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23555 | PyObject *resultobj; |
23556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23557 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23558 | PyObject * obj0 = 0 ; | |
23559 | PyObject * obj1 = 0 ; | |
23560 | char *kwnames[] = { | |
23561 | (char *) "self",(char *) "child", NULL | |
23562 | }; | |
23563 | ||
23564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23569 | { |
23570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23571 | (arg1)->AddChild(arg2); | |
23572 | ||
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
23576 | Py_INCREF(Py_None); resultobj = Py_None; | |
23577 | return resultobj; | |
23578 | fail: | |
23579 | return NULL; | |
23580 | } | |
23581 | ||
23582 | ||
2f4c0a16 | 23583 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23584 | PyObject *resultobj; |
23585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23586 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23587 | PyObject * obj0 = 0 ; | |
23588 | PyObject * obj1 = 0 ; | |
23589 | char *kwnames[] = { | |
23590 | (char *) "self",(char *) "child", NULL | |
23591 | }; | |
23592 | ||
23593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23598 | { |
23599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23600 | (arg1)->RemoveChild(arg2); | |
23601 | ||
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | Py_INCREF(Py_None); resultobj = Py_None; | |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
2f4c0a16 | 23612 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23613 | PyObject *resultobj; |
23614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23615 | long arg2 ; | |
23616 | wxWindow *result; | |
23617 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23619 | char *kwnames[] = { |
23620 | (char *) "self",(char *) "winid", NULL | |
23621 | }; | |
23622 | ||
8edf1c75 | 23623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23626 | arg2 = (long) SWIG_AsLong(obj1); | |
23627 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23628 | { |
23629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23630 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23631 | ||
23632 | wxPyEndAllowThreads(__tstate); | |
23633 | if (PyErr_Occurred()) SWIG_fail; | |
23634 | } | |
23635 | { | |
23636 | resultobj = wxPyMake_wxObject(result); | |
23637 | } | |
23638 | return resultobj; | |
23639 | fail: | |
23640 | return NULL; | |
23641 | } | |
23642 | ||
23643 | ||
2f4c0a16 | 23644 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23645 | PyObject *resultobj; |
23646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23647 | wxString *arg2 = 0 ; | |
23648 | wxWindow *result; | |
423f194a | 23649 | bool temp2 = False ; |
d14a1e28 RD |
23650 | PyObject * obj0 = 0 ; |
23651 | PyObject * obj1 = 0 ; | |
23652 | char *kwnames[] = { | |
23653 | (char *) "self",(char *) "name", NULL | |
23654 | }; | |
23655 | ||
23656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23659 | { |
23660 | arg2 = wxString_in_helper(obj1); | |
23661 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23662 | temp2 = True; |
d14a1e28 RD |
23663 | } |
23664 | { | |
23665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23666 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
23667 | ||
23668 | wxPyEndAllowThreads(__tstate); | |
23669 | if (PyErr_Occurred()) SWIG_fail; | |
23670 | } | |
23671 | { | |
23672 | resultobj = wxPyMake_wxObject(result); | |
23673 | } | |
23674 | { | |
23675 | if (temp2) | |
23676 | delete arg2; | |
23677 | } | |
23678 | return resultobj; | |
23679 | fail: | |
23680 | { | |
23681 | if (temp2) | |
23682 | delete arg2; | |
23683 | } | |
23684 | return NULL; | |
23685 | } | |
23686 | ||
23687 | ||
2f4c0a16 | 23688 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23689 | PyObject *resultobj; |
23690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23691 | wxEvtHandler *result; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | char *kwnames[] = { | |
23694 | (char *) "self", NULL | |
23695 | }; | |
23696 | ||
23697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23700 | { |
23701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23702 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
23703 | ||
23704 | wxPyEndAllowThreads(__tstate); | |
23705 | if (PyErr_Occurred()) SWIG_fail; | |
23706 | } | |
23707 | { | |
23708 | resultobj = wxPyMake_wxObject(result); | |
23709 | } | |
23710 | return resultobj; | |
23711 | fail: | |
23712 | return NULL; | |
23713 | } | |
23714 | ||
23715 | ||
2f4c0a16 | 23716 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23717 | PyObject *resultobj; |
23718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23719 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23720 | PyObject * obj0 = 0 ; | |
23721 | PyObject * obj1 = 0 ; | |
23722 | char *kwnames[] = { | |
23723 | (char *) "self",(char *) "handler", NULL | |
23724 | }; | |
23725 | ||
23726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23731 | { |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | (arg1)->SetEventHandler(arg2); | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | Py_INCREF(Py_None); resultobj = Py_None; | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
2f4c0a16 | 23745 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23746 | PyObject *resultobj; |
23747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23748 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | PyObject * obj1 = 0 ; | |
23751 | char *kwnames[] = { | |
23752 | (char *) "self",(char *) "handler", NULL | |
23753 | }; | |
23754 | ||
23755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23760 | { |
23761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23762 | (arg1)->PushEventHandler(arg2); | |
23763 | ||
23764 | wxPyEndAllowThreads(__tstate); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
23767 | Py_INCREF(Py_None); resultobj = Py_None; | |
23768 | return resultobj; | |
23769 | fail: | |
23770 | return NULL; | |
23771 | } | |
23772 | ||
23773 | ||
2f4c0a16 | 23774 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23775 | PyObject *resultobj; |
23776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23777 | bool arg2 = (bool) False ; |
d14a1e28 RD |
23778 | wxEvtHandler *result; |
23779 | PyObject * obj0 = 0 ; | |
23780 | PyObject * obj1 = 0 ; | |
23781 | char *kwnames[] = { | |
23782 | (char *) "self",(char *) "deleteHandler", NULL | |
23783 | }; | |
23784 | ||
23785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23788 | if (obj1) { |
2f4c0a16 RD |
23789 | arg2 = (bool) SWIG_AsBool(obj1); |
23790 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23791 | } |
23792 | { | |
23793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23794 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
23795 | ||
23796 | wxPyEndAllowThreads(__tstate); | |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | } | |
23799 | { | |
23800 | resultobj = wxPyMake_wxObject(result); | |
23801 | } | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
2f4c0a16 | 23808 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23809 | PyObject *resultobj; |
23810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23811 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23812 | bool result; | |
23813 | PyObject * obj0 = 0 ; | |
23814 | PyObject * obj1 = 0 ; | |
23815 | char *kwnames[] = { | |
23816 | (char *) "self",(char *) "handler", NULL | |
23817 | }; | |
23818 | ||
23819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23824 | { |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
02a34c4c | 23831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23832 | return resultobj; |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
2f4c0a16 | 23838 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23839 | PyObject *resultobj; |
23840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23841 | wxValidator *arg2 = 0 ; | |
23842 | PyObject * obj0 = 0 ; | |
23843 | PyObject * obj1 = 0 ; | |
23844 | char *kwnames[] = { | |
23845 | (char *) "self",(char *) "validator", NULL | |
23846 | }; | |
23847 | ||
23848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
23852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23853 | SWIG_fail; | |
d14a1e28 | 23854 | if (arg2 == NULL) { |
2f4c0a16 RD |
23855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23856 | SWIG_fail; | |
d14a1e28 RD |
23857 | } |
23858 | { | |
23859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23860 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
23861 | ||
23862 | wxPyEndAllowThreads(__tstate); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
23864 | } | |
23865 | Py_INCREF(Py_None); resultobj = Py_None; | |
23866 | return resultobj; | |
23867 | fail: | |
23868 | return NULL; | |
23869 | } | |
23870 | ||
23871 | ||
2f4c0a16 | 23872 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23873 | PyObject *resultobj; |
23874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23875 | wxValidator *result; | |
23876 | PyObject * obj0 = 0 ; | |
23877 | char *kwnames[] = { | |
23878 | (char *) "self", NULL | |
23879 | }; | |
23880 | ||
23881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23884 | { |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23886 | result = (wxValidator *)(arg1)->GetValidator(); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
23891 | { | |
23892 | resultobj = wxPyMake_wxObject(result); | |
23893 | } | |
23894 | return resultobj; | |
23895 | fail: | |
23896 | return NULL; | |
23897 | } | |
23898 | ||
23899 | ||
2f4c0a16 | 23900 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23901 | PyObject *resultobj; |
23902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23903 | wxAcceleratorTable *arg2 = 0 ; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | PyObject * obj1 = 0 ; | |
23906 | char *kwnames[] = { | |
23907 | (char *) "self",(char *) "accel", NULL | |
23908 | }; | |
23909 | ||
23910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
23914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23915 | SWIG_fail; | |
d14a1e28 | 23916 | if (arg2 == NULL) { |
2f4c0a16 RD |
23917 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23918 | SWIG_fail; | |
d14a1e28 RD |
23919 | } |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | Py_INCREF(Py_None); resultobj = Py_None; | |
23928 | return resultobj; | |
23929 | fail: | |
23930 | return NULL; | |
23931 | } | |
23932 | ||
23933 | ||
2f4c0a16 | 23934 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23935 | PyObject *resultobj; |
23936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23937 | wxAcceleratorTable *result; | |
23938 | PyObject * obj0 = 0 ; | |
23939 | char *kwnames[] = { | |
23940 | (char *) "self", NULL | |
23941 | }; | |
23942 | ||
23943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23946 | { |
23947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23948 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
23949 | ||
23950 | wxPyEndAllowThreads(__tstate); | |
23951 | if (PyErr_Occurred()) SWIG_fail; | |
23952 | } | |
2f4c0a16 | 23953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
23954 | return resultobj; |
23955 | fail: | |
23956 | return NULL; | |
23957 | } | |
23958 | ||
23959 | ||
2f4c0a16 | 23960 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23961 | PyObject *resultobj; |
23962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23963 | int arg2 ; | |
23964 | int arg3 ; | |
23965 | int arg4 ; | |
23966 | bool result; | |
23967 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23968 | PyObject * obj1 = 0 ; |
23969 | PyObject * obj2 = 0 ; | |
23970 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23971 | char *kwnames[] = { |
23972 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
23973 | }; | |
23974 | ||
8edf1c75 | 23975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
23976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23978 | arg2 = (int) SWIG_AsInt(obj1); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | arg3 = (int) SWIG_AsInt(obj2); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | arg4 = (int) SWIG_AsInt(obj3); | |
23983 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23984 | { |
23985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23986 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
23987 | ||
23988 | wxPyEndAllowThreads(__tstate); | |
23989 | if (PyErr_Occurred()) SWIG_fail; | |
23990 | } | |
02a34c4c | 23991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23992 | return resultobj; |
23993 | fail: | |
23994 | return NULL; | |
23995 | } | |
23996 | ||
23997 | ||
2f4c0a16 | 23998 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23999 | PyObject *resultobj; |
24000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24001 | int arg2 ; | |
24002 | bool result; | |
24003 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24005 | char *kwnames[] = { |
24006 | (char *) "self",(char *) "hotkeyId", NULL | |
24007 | }; | |
24008 | ||
8edf1c75 | 24009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24012 | arg2 = (int) SWIG_AsInt(obj1); | |
24013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24014 | { |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
02a34c4c | 24021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24022 | return resultobj; |
24023 | fail: | |
24024 | return NULL; | |
24025 | } | |
24026 | ||
24027 | ||
2f4c0a16 | 24028 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24029 | PyObject *resultobj; |
24030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24031 | wxPoint *arg2 = 0 ; | |
24032 | wxPoint result; | |
24033 | wxPoint temp2 ; | |
24034 | PyObject * obj0 = 0 ; | |
24035 | PyObject * obj1 = 0 ; | |
24036 | char *kwnames[] = { | |
24037 | (char *) "self",(char *) "pt", NULL | |
24038 | }; | |
24039 | ||
24040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24043 | { |
24044 | arg2 = &temp2; | |
24045 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24046 | } | |
24047 | { | |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24050 | ||
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | { | |
24055 | wxPoint * resultptr; | |
24056 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24058 | } |
24059 | return resultobj; | |
24060 | fail: | |
24061 | return NULL; | |
24062 | } | |
24063 | ||
24064 | ||
2f4c0a16 | 24065 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24066 | PyObject *resultobj; |
24067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24068 | wxSize *arg2 = 0 ; | |
24069 | wxSize result; | |
24070 | wxSize temp2 ; | |
24071 | PyObject * obj0 = 0 ; | |
24072 | PyObject * obj1 = 0 ; | |
24073 | char *kwnames[] = { | |
24074 | (char *) "self",(char *) "sz", NULL | |
24075 | }; | |
24076 | ||
24077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24080 | { |
24081 | arg2 = &temp2; | |
24082 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24083 | } | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24087 | ||
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
24091 | { | |
24092 | wxSize * resultptr; | |
24093 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24094 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24095 | } |
24096 | return resultobj; | |
24097 | fail: | |
24098 | return NULL; | |
24099 | } | |
24100 | ||
24101 | ||
2f4c0a16 | 24102 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24103 | PyObject *resultobj; |
24104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24105 | wxPoint *arg2 = 0 ; | |
24106 | wxPoint result; | |
24107 | wxPoint temp2 ; | |
24108 | PyObject * obj0 = 0 ; | |
24109 | PyObject * obj1 = 0 ; | |
24110 | char *kwnames[] = { | |
24111 | (char *) "self",(char *) "pt", NULL | |
24112 | }; | |
24113 | ||
24114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24117 | { |
24118 | arg2 = &temp2; | |
24119 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24120 | } | |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24124 | ||
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
24128 | { | |
24129 | wxPoint * resultptr; | |
24130 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24132 | } |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
2f4c0a16 | 24139 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24140 | PyObject *resultobj; |
24141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24142 | wxSize *arg2 = 0 ; | |
24143 | wxSize result; | |
24144 | wxSize temp2 ; | |
24145 | PyObject * obj0 = 0 ; | |
24146 | PyObject * obj1 = 0 ; | |
24147 | char *kwnames[] = { | |
24148 | (char *) "self",(char *) "sz", NULL | |
24149 | }; | |
24150 | ||
24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24154 | { |
24155 | arg2 = &temp2; | |
24156 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24157 | } | |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24161 | ||
24162 | wxPyEndAllowThreads(__tstate); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
24164 | } | |
24165 | { | |
24166 | wxSize * resultptr; | |
24167 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24169 | } |
24170 | return resultobj; | |
24171 | fail: | |
24172 | return NULL; | |
24173 | } | |
24174 | ||
24175 | ||
2f4c0a16 | 24176 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24177 | PyObject *resultobj; |
24178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24179 | wxPoint *arg2 = 0 ; | |
24180 | wxPoint result; | |
24181 | wxPoint temp2 ; | |
24182 | PyObject * obj0 = 0 ; | |
24183 | PyObject * obj1 = 0 ; | |
24184 | char *kwnames[] = { | |
24185 | (char *) "self",(char *) "pt", NULL | |
24186 | }; | |
24187 | ||
24188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24191 | { |
24192 | arg2 = &temp2; | |
24193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24194 | } | |
24195 | { | |
24196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24197 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
24198 | ||
24199 | wxPyEndAllowThreads(__tstate); | |
24200 | if (PyErr_Occurred()) SWIG_fail; | |
24201 | } | |
24202 | { | |
24203 | wxPoint * resultptr; | |
24204 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24206 | } |
24207 | return resultobj; | |
24208 | fail: | |
24209 | return NULL; | |
24210 | } | |
24211 | ||
24212 | ||
2f4c0a16 | 24213 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24214 | PyObject *resultobj; |
24215 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24216 | wxSize *arg2 = 0 ; | |
24217 | wxSize result; | |
24218 | wxSize temp2 ; | |
24219 | PyObject * obj0 = 0 ; | |
24220 | PyObject * obj1 = 0 ; | |
24221 | char *kwnames[] = { | |
24222 | (char *) "self",(char *) "sz", NULL | |
24223 | }; | |
24224 | ||
24225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24228 | { |
24229 | arg2 = &temp2; | |
24230 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24231 | } | |
24232 | { | |
24233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24234 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24235 | ||
24236 | wxPyEndAllowThreads(__tstate); | |
24237 | if (PyErr_Occurred()) SWIG_fail; | |
24238 | } | |
24239 | { | |
24240 | wxSize * resultptr; | |
24241 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24243 | } |
24244 | return resultobj; | |
24245 | fail: | |
24246 | return NULL; | |
24247 | } | |
24248 | ||
24249 | ||
2f4c0a16 | 24250 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24251 | PyObject *resultobj; |
24252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24253 | int arg2 ; | |
24254 | int arg3 ; | |
24255 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24256 | PyObject * obj1 = 0 ; |
24257 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24258 | char *kwnames[] = { |
24259 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24260 | }; | |
24261 | ||
8edf1c75 | 24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24265 | arg2 = (int) SWIG_AsInt(obj1); | |
24266 | if (PyErr_Occurred()) SWIG_fail; | |
24267 | arg3 = (int) SWIG_AsInt(obj2); | |
24268 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24269 | { |
24270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24271 | (arg1)->WarpPointer(arg2,arg3); | |
24272 | ||
24273 | wxPyEndAllowThreads(__tstate); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | Py_INCREF(Py_None); resultobj = Py_None; | |
24277 | return resultobj; | |
24278 | fail: | |
24279 | return NULL; | |
24280 | } | |
24281 | ||
24282 | ||
2f4c0a16 | 24283 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24284 | PyObject *resultobj; |
24285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24294 | { |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | (arg1)->CaptureMouse(); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
24301 | Py_INCREF(Py_None); resultobj = Py_None; | |
24302 | return resultobj; | |
24303 | fail: | |
24304 | return NULL; | |
24305 | } | |
24306 | ||
24307 | ||
2f4c0a16 | 24308 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24309 | PyObject *resultobj; |
24310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24311 | PyObject * obj0 = 0 ; | |
24312 | char *kwnames[] = { | |
24313 | (char *) "self", NULL | |
24314 | }; | |
24315 | ||
24316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24319 | { |
24320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24321 | (arg1)->ReleaseMouse(); | |
24322 | ||
24323 | wxPyEndAllowThreads(__tstate); | |
24324 | if (PyErr_Occurred()) SWIG_fail; | |
24325 | } | |
24326 | Py_INCREF(Py_None); resultobj = Py_None; | |
24327 | return resultobj; | |
24328 | fail: | |
24329 | return NULL; | |
24330 | } | |
24331 | ||
24332 | ||
2f4c0a16 | 24333 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24334 | PyObject *resultobj; |
24335 | wxWindow *result; | |
24336 | char *kwnames[] = { | |
24337 | NULL | |
24338 | }; | |
24339 | ||
24340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24341 | { | |
24342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24343 | result = (wxWindow *)wxWindow::GetCapture(); | |
24344 | ||
24345 | wxPyEndAllowThreads(__tstate); | |
24346 | if (PyErr_Occurred()) SWIG_fail; | |
24347 | } | |
24348 | { | |
24349 | resultobj = wxPyMake_wxObject(result); | |
24350 | } | |
24351 | return resultobj; | |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
2f4c0a16 | 24357 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24358 | PyObject *resultobj; |
24359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24360 | bool result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | char *kwnames[] = { | |
24363 | (char *) "self", NULL | |
24364 | }; | |
24365 | ||
24366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24369 | { |
24370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24371 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24372 | ||
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
02a34c4c | 24376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24377 | return resultobj; |
24378 | fail: | |
24379 | return NULL; | |
24380 | } | |
24381 | ||
24382 | ||
2f4c0a16 | 24383 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24384 | PyObject *resultobj; |
24385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24386 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24387 | wxRect *arg3 = (wxRect *) NULL ; |
24388 | PyObject * obj0 = 0 ; | |
24389 | PyObject * obj1 = 0 ; | |
24390 | PyObject * obj2 = 0 ; | |
24391 | char *kwnames[] = { | |
24392 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24393 | }; | |
24394 | ||
24395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24398 | if (obj1) { |
2f4c0a16 RD |
24399 | arg2 = (bool) SWIG_AsBool(obj1); |
24400 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24401 | } |
24402 | if (obj2) { | |
2f4c0a16 RD |
24403 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
24404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24405 | } |
24406 | { | |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
24413 | Py_INCREF(Py_None); resultobj = Py_None; | |
24414 | return resultobj; | |
24415 | fail: | |
24416 | return NULL; | |
24417 | } | |
24418 | ||
24419 | ||
2f4c0a16 | 24420 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24421 | PyObject *resultobj; |
24422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24423 | wxRect *arg2 = 0 ; | |
24424 | wxRect temp2 ; | |
24425 | PyObject * obj0 = 0 ; | |
24426 | PyObject * obj1 = 0 ; | |
24427 | char *kwnames[] = { | |
24428 | (char *) "self",(char *) "rect", NULL | |
24429 | }; | |
24430 | ||
24431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24434 | { |
24435 | arg2 = &temp2; | |
24436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24437 | } | |
24438 | { | |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24441 | ||
24442 | wxPyEndAllowThreads(__tstate); | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
24445 | Py_INCREF(Py_None); resultobj = Py_None; | |
24446 | return resultobj; | |
24447 | fail: | |
24448 | return NULL; | |
24449 | } | |
24450 | ||
24451 | ||
2f4c0a16 | 24452 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24453 | PyObject *resultobj; |
24454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24455 | PyObject * obj0 = 0 ; | |
24456 | char *kwnames[] = { | |
24457 | (char *) "self", NULL | |
24458 | }; | |
24459 | ||
24460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24463 | { |
24464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24465 | (arg1)->Update(); | |
24466 | ||
24467 | wxPyEndAllowThreads(__tstate); | |
24468 | if (PyErr_Occurred()) SWIG_fail; | |
24469 | } | |
24470 | Py_INCREF(Py_None); resultobj = Py_None; | |
24471 | return resultobj; | |
24472 | fail: | |
24473 | return NULL; | |
24474 | } | |
24475 | ||
24476 | ||
2f4c0a16 | 24477 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24478 | PyObject *resultobj; |
24479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24480 | PyObject * obj0 = 0 ; | |
24481 | char *kwnames[] = { | |
24482 | (char *) "self", NULL | |
24483 | }; | |
24484 | ||
24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 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 | (arg1)->ClearBackground(); | |
24491 | ||
24492 | wxPyEndAllowThreads(__tstate); | |
24493 | if (PyErr_Occurred()) SWIG_fail; | |
24494 | } | |
24495 | Py_INCREF(Py_None); resultobj = Py_None; | |
24496 | return resultobj; | |
24497 | fail: | |
24498 | return NULL; | |
24499 | } | |
24500 | ||
24501 | ||
2f4c0a16 | 24502 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24503 | PyObject *resultobj; |
24504 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24505 | PyObject * obj0 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "self", NULL | |
24508 | }; | |
24509 | ||
24510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24513 | { |
24514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24515 | (arg1)->Freeze(); | |
24516 | ||
24517 | wxPyEndAllowThreads(__tstate); | |
24518 | if (PyErr_Occurred()) SWIG_fail; | |
24519 | } | |
24520 | Py_INCREF(Py_None); resultobj = Py_None; | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
24524 | } | |
24525 | ||
24526 | ||
2f4c0a16 | 24527 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24528 | PyObject *resultobj; |
24529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24530 | PyObject * obj0 = 0 ; | |
24531 | char *kwnames[] = { | |
24532 | (char *) "self", NULL | |
24533 | }; | |
24534 | ||
24535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24538 | { |
24539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24540 | (arg1)->Thaw(); | |
24541 | ||
24542 | wxPyEndAllowThreads(__tstate); | |
24543 | if (PyErr_Occurred()) SWIG_fail; | |
24544 | } | |
24545 | Py_INCREF(Py_None); resultobj = Py_None; | |
24546 | return resultobj; | |
24547 | fail: | |
24548 | return NULL; | |
24549 | } | |
24550 | ||
24551 | ||
2f4c0a16 | 24552 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24553 | PyObject *resultobj; |
24554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24555 | wxDC *arg2 = 0 ; | |
24556 | PyObject * obj0 = 0 ; | |
24557 | PyObject * obj1 = 0 ; | |
24558 | char *kwnames[] = { | |
24559 | (char *) "self",(char *) "dc", NULL | |
24560 | }; | |
24561 | ||
24562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24567 | SWIG_fail; | |
d14a1e28 | 24568 | if (arg2 == NULL) { |
2f4c0a16 RD |
24569 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24570 | SWIG_fail; | |
d14a1e28 RD |
24571 | } |
24572 | { | |
24573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24574 | (arg1)->PrepareDC(*arg2); | |
24575 | ||
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | Py_INCREF(Py_None); resultobj = Py_None; | |
24580 | return resultobj; | |
24581 | fail: | |
24582 | return NULL; | |
24583 | } | |
24584 | ||
24585 | ||
2f4c0a16 | 24586 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24587 | PyObject *resultobj; |
24588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24589 | wxRegion *result; | |
24590 | PyObject * obj0 = 0 ; | |
24591 | char *kwnames[] = { | |
24592 | (char *) "self", NULL | |
24593 | }; | |
24594 | ||
24595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24598 | { |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | { | |
24601 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24602 | result = (wxRegion *) &_result_ref; | |
24603 | } | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
2f4c0a16 | 24608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
24609 | return resultobj; |
24610 | fail: | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
2f4c0a16 | 24615 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24616 | PyObject *resultobj; |
24617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24618 | wxRect result; | |
24619 | PyObject * obj0 = 0 ; | |
24620 | char *kwnames[] = { | |
24621 | (char *) "self", NULL | |
24622 | }; | |
24623 | ||
24624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24627 | { |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | wxRect * resultptr; | |
24636 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 24637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24638 | } |
24639 | return resultobj; | |
24640 | fail: | |
24641 | return NULL; | |
24642 | } | |
24643 | ||
24644 | ||
2f4c0a16 | 24645 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24646 | PyObject *resultobj; |
24647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24648 | int arg2 ; | |
24649 | int arg3 ; | |
24650 | int arg4 = (int) 1 ; | |
24651 | int arg5 = (int) 1 ; | |
24652 | bool result; | |
24653 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24654 | PyObject * obj1 = 0 ; |
24655 | PyObject * obj2 = 0 ; | |
24656 | PyObject * obj3 = 0 ; | |
24657 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
24658 | char *kwnames[] = { |
24659 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24660 | }; | |
24661 | ||
8edf1c75 | 24662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24665 | arg2 = (int) SWIG_AsInt(obj1); | |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
24667 | arg3 = (int) SWIG_AsInt(obj2); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24669 | if (obj3) { |
2f4c0a16 RD |
24670 | arg4 = (int) SWIG_AsInt(obj3); |
24671 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
24672 | } |
24673 | if (obj4) { | |
2f4c0a16 RD |
24674 | arg5 = (int) SWIG_AsInt(obj4); |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24676 | } |
d14a1e28 RD |
24677 | { |
24678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24679 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
24680 | ||
24681 | wxPyEndAllowThreads(__tstate); | |
24682 | if (PyErr_Occurred()) SWIG_fail; | |
24683 | } | |
02a34c4c | 24684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24685 | return resultobj; |
24686 | fail: | |
24687 | return NULL; | |
24688 | } | |
24689 | ||
24690 | ||
2f4c0a16 | 24691 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24692 | PyObject *resultobj; |
24693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24694 | wxPoint *arg2 = 0 ; | |
24695 | bool result; | |
24696 | wxPoint temp2 ; | |
24697 | PyObject * obj0 = 0 ; | |
24698 | PyObject * obj1 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self",(char *) "pt", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24706 | { |
24707 | arg2 = &temp2; | |
24708 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24709 | } | |
24710 | { | |
24711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24712 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
24713 | ||
24714 | wxPyEndAllowThreads(__tstate); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
02a34c4c | 24717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24718 | return resultobj; |
24719 | fail: | |
24720 | return NULL; | |
24721 | } | |
24722 | ||
24723 | ||
2f4c0a16 | 24724 | static PyObject *_wrap_Window_isExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24725 | PyObject *resultobj; |
24726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24727 | wxRect *arg2 = 0 ; | |
24728 | bool result; | |
24729 | wxRect temp2 ; | |
24730 | PyObject * obj0 = 0 ; | |
24731 | PyObject * obj1 = 0 ; | |
24732 | char *kwnames[] = { | |
24733 | (char *) "self",(char *) "rect", NULL | |
24734 | }; | |
24735 | ||
24736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24739 | { |
24740 | arg2 = &temp2; | |
24741 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24742 | } | |
24743 | { | |
24744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24745 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
24746 | ||
24747 | wxPyEndAllowThreads(__tstate); | |
24748 | if (PyErr_Occurred()) SWIG_fail; | |
24749 | } | |
02a34c4c | 24750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24751 | return resultobj; |
24752 | fail: | |
24753 | return NULL; | |
24754 | } | |
24755 | ||
24756 | ||
2f4c0a16 | 24757 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24758 | PyObject *resultobj; |
24759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24760 | wxColour *arg2 = 0 ; | |
24761 | bool result; | |
24762 | wxColour temp2 ; | |
24763 | PyObject * obj0 = 0 ; | |
24764 | PyObject * obj1 = 0 ; | |
24765 | char *kwnames[] = { | |
24766 | (char *) "self",(char *) "colour", NULL | |
24767 | }; | |
24768 | ||
24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24772 | { |
24773 | arg2 = &temp2; | |
24774 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24775 | } | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
02a34c4c | 24783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24784 | return resultobj; |
24785 | fail: | |
24786 | return NULL; | |
24787 | } | |
24788 | ||
24789 | ||
2f4c0a16 | 24790 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24791 | PyObject *resultobj; |
24792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24793 | wxColour *arg2 = 0 ; | |
24794 | bool result; | |
24795 | wxColour temp2 ; | |
24796 | PyObject * obj0 = 0 ; | |
24797 | PyObject * obj1 = 0 ; | |
24798 | char *kwnames[] = { | |
24799 | (char *) "self",(char *) "colour", NULL | |
24800 | }; | |
24801 | ||
24802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24805 | { |
24806 | arg2 = &temp2; | |
24807 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24808 | } | |
24809 | { | |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24811 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24812 | ||
24813 | wxPyEndAllowThreads(__tstate); | |
24814 | if (PyErr_Occurred()) SWIG_fail; | |
24815 | } | |
02a34c4c | 24816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24817 | return resultobj; |
24818 | fail: | |
24819 | return NULL; | |
24820 | } | |
24821 | ||
24822 | ||
2f4c0a16 | 24823 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24824 | PyObject *resultobj; |
24825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24826 | wxColour result; | |
24827 | PyObject * obj0 = 0 ; | |
24828 | char *kwnames[] = { | |
24829 | (char *) "self", NULL | |
24830 | }; | |
24831 | ||
24832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24835 | { |
24836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24837 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
24838 | ||
24839 | wxPyEndAllowThreads(__tstate); | |
24840 | if (PyErr_Occurred()) SWIG_fail; | |
24841 | } | |
24842 | { | |
24843 | wxColour * resultptr; | |
24844 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24845 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24846 | } |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
2f4c0a16 | 24853 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24854 | PyObject *resultobj; |
24855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24856 | wxColour result; | |
24857 | PyObject * obj0 = 0 ; | |
24858 | char *kwnames[] = { | |
24859 | (char *) "self", NULL | |
24860 | }; | |
24861 | ||
24862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24865 | { |
24866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24867 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
24868 | ||
24869 | wxPyEndAllowThreads(__tstate); | |
24870 | if (PyErr_Occurred()) SWIG_fail; | |
24871 | } | |
24872 | { | |
24873 | wxColour * resultptr; | |
24874 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24876 | } |
24877 | return resultobj; | |
24878 | fail: | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
2f4c0a16 | 24883 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24884 | PyObject *resultobj; |
24885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24886 | wxCursor *arg2 = 0 ; | |
24887 | bool result; | |
24888 | PyObject * obj0 = 0 ; | |
24889 | PyObject * obj1 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self",(char *) "cursor", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24897 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
24898 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24899 | SWIG_fail; | |
d14a1e28 | 24900 | if (arg2 == NULL) { |
2f4c0a16 RD |
24901 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24902 | SWIG_fail; | |
d14a1e28 RD |
24903 | } |
24904 | { | |
24905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24906 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
24907 | ||
24908 | wxPyEndAllowThreads(__tstate); | |
24909 | if (PyErr_Occurred()) SWIG_fail; | |
24910 | } | |
02a34c4c | 24911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24912 | return resultobj; |
24913 | fail: | |
24914 | return NULL; | |
24915 | } | |
24916 | ||
24917 | ||
2f4c0a16 | 24918 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24919 | PyObject *resultobj; |
24920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24921 | wxCursor *result; | |
24922 | PyObject * obj0 = 0 ; | |
24923 | char *kwnames[] = { | |
24924 | (char *) "self", NULL | |
24925 | }; | |
24926 | ||
24927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24930 | { |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | { | |
24933 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
24934 | result = (wxCursor *) &_result_ref; | |
24935 | } | |
24936 | ||
24937 | wxPyEndAllowThreads(__tstate); | |
24938 | if (PyErr_Occurred()) SWIG_fail; | |
24939 | } | |
2f4c0a16 | 24940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
24941 | return resultobj; |
24942 | fail: | |
24943 | return NULL; | |
24944 | } | |
24945 | ||
24946 | ||
2f4c0a16 | 24947 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24948 | PyObject *resultobj; |
24949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24950 | wxFont *arg2 = 0 ; | |
24951 | bool result; | |
24952 | PyObject * obj0 = 0 ; | |
24953 | PyObject * obj1 = 0 ; | |
24954 | char *kwnames[] = { | |
24955 | (char *) "self",(char *) "font", NULL | |
24956 | }; | |
24957 | ||
24958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
24962 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24963 | SWIG_fail; | |
d14a1e28 | 24964 | if (arg2 == NULL) { |
2f4c0a16 RD |
24965 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24966 | SWIG_fail; | |
d14a1e28 RD |
24967 | } |
24968 | { | |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24970 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
24971 | ||
24972 | wxPyEndAllowThreads(__tstate); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | } | |
02a34c4c | 24975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24976 | return resultobj; |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
2f4c0a16 | 24982 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24983 | PyObject *resultobj; |
24984 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24985 | wxFont *result; | |
24986 | PyObject * obj0 = 0 ; | |
24987 | char *kwnames[] = { | |
24988 | (char *) "self", NULL | |
24989 | }; | |
24990 | ||
24991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24994 | { |
24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24996 | { | |
24997 | wxFont &_result_ref = (arg1)->GetFont(); | |
24998 | result = (wxFont *) &_result_ref; | |
24999 | } | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
2f4c0a16 | 25004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
25005 | return resultobj; |
25006 | fail: | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
2f4c0a16 | 25011 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25012 | PyObject *resultobj; |
25013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25014 | wxCaret *arg2 = (wxCaret *) 0 ; | |
25015 | PyObject * obj0 = 0 ; | |
25016 | PyObject * obj1 = 0 ; | |
25017 | char *kwnames[] = { | |
25018 | (char *) "self",(char *) "caret", NULL | |
25019 | }; | |
25020 | ||
25021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25026 | { |
25027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25028 | (arg1)->SetCaret(arg2); | |
25029 | ||
25030 | wxPyEndAllowThreads(__tstate); | |
25031 | if (PyErr_Occurred()) SWIG_fail; | |
25032 | } | |
25033 | Py_INCREF(Py_None); resultobj = Py_None; | |
25034 | return resultobj; | |
25035 | fail: | |
25036 | return NULL; | |
25037 | } | |
25038 | ||
25039 | ||
2f4c0a16 | 25040 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25041 | PyObject *resultobj; |
25042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25043 | wxCaret *result; | |
25044 | PyObject * obj0 = 0 ; | |
25045 | char *kwnames[] = { | |
25046 | (char *) "self", NULL | |
25047 | }; | |
25048 | ||
25049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25052 | { |
25053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25054 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
25055 | ||
25056 | wxPyEndAllowThreads(__tstate); | |
25057 | if (PyErr_Occurred()) SWIG_fail; | |
25058 | } | |
2f4c0a16 | 25059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
25060 | return resultobj; |
25061 | fail: | |
25062 | return NULL; | |
25063 | } | |
25064 | ||
25065 | ||
2f4c0a16 | 25066 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25067 | PyObject *resultobj; |
25068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25069 | int result; | |
25070 | PyObject * obj0 = 0 ; | |
25071 | char *kwnames[] = { | |
25072 | (char *) "self", NULL | |
25073 | }; | |
25074 | ||
25075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25078 | { |
25079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25080 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
25081 | ||
25082 | wxPyEndAllowThreads(__tstate); | |
25083 | if (PyErr_Occurred()) SWIG_fail; | |
25084 | } | |
2f4c0a16 | 25085 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25086 | return resultobj; |
25087 | fail: | |
25088 | return NULL; | |
25089 | } | |
25090 | ||
25091 | ||
2f4c0a16 | 25092 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25093 | PyObject *resultobj; |
25094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25095 | int result; | |
25096 | PyObject * obj0 = 0 ; | |
25097 | char *kwnames[] = { | |
25098 | (char *) "self", NULL | |
25099 | }; | |
25100 | ||
25101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25104 | { |
25105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25106 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
25107 | ||
25108 | wxPyEndAllowThreads(__tstate); | |
25109 | if (PyErr_Occurred()) SWIG_fail; | |
25110 | } | |
2f4c0a16 | 25111 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25112 | return resultobj; |
25113 | fail: | |
25114 | return NULL; | |
25115 | } | |
25116 | ||
25117 | ||
2f4c0a16 | 25118 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25119 | PyObject *resultobj; |
25120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25121 | wxString *arg2 = 0 ; | |
25122 | int *arg3 = (int *) 0 ; | |
25123 | int *arg4 = (int *) 0 ; | |
423f194a | 25124 | bool temp2 = False ; |
d14a1e28 RD |
25125 | int temp3 ; |
25126 | int temp4 ; | |
25127 | PyObject * obj0 = 0 ; | |
25128 | PyObject * obj1 = 0 ; | |
25129 | char *kwnames[] = { | |
25130 | (char *) "self",(char *) "string", NULL | |
25131 | }; | |
25132 | ||
25133 | arg3 = &temp3; | |
25134 | arg4 = &temp4; | |
25135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25138 | { |
25139 | arg2 = wxString_in_helper(obj1); | |
25140 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25141 | temp2 = True; |
d14a1e28 RD |
25142 | } |
25143 | { | |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25145 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | Py_INCREF(Py_None); resultobj = Py_None; | |
25151 | { | |
25152 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25153 | resultobj = t_output_helper(resultobj,o); | |
25154 | } | |
25155 | { | |
25156 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25157 | resultobj = t_output_helper(resultobj,o); | |
25158 | } | |
25159 | { | |
25160 | if (temp2) | |
25161 | delete arg2; | |
25162 | } | |
25163 | return resultobj; | |
25164 | fail: | |
25165 | { | |
25166 | if (temp2) | |
25167 | delete arg2; | |
25168 | } | |
25169 | return NULL; | |
25170 | } | |
25171 | ||
25172 | ||
2f4c0a16 | 25173 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25174 | PyObject *resultobj; |
25175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25176 | wxString *arg2 = 0 ; | |
25177 | int *arg3 = (int *) 0 ; | |
25178 | int *arg4 = (int *) 0 ; | |
25179 | int *arg5 = (int *) 0 ; | |
25180 | int *arg6 = (int *) 0 ; | |
25181 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 25182 | bool temp2 = False ; |
d14a1e28 RD |
25183 | int temp3 ; |
25184 | int temp4 ; | |
25185 | int temp5 ; | |
25186 | int temp6 ; | |
25187 | PyObject * obj0 = 0 ; | |
25188 | PyObject * obj1 = 0 ; | |
25189 | PyObject * obj2 = 0 ; | |
25190 | char *kwnames[] = { | |
25191 | (char *) "self",(char *) "string",(char *) "font", NULL | |
25192 | }; | |
25193 | ||
25194 | arg3 = &temp3; | |
25195 | arg4 = &temp4; | |
25196 | arg5 = &temp5; | |
25197 | arg6 = &temp6; | |
25198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25201 | { |
25202 | arg2 = wxString_in_helper(obj1); | |
25203 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25204 | temp2 = True; |
d14a1e28 RD |
25205 | } |
25206 | if (obj2) { | |
2f4c0a16 RD |
25207 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
25208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25209 | } |
25210 | { | |
25211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25212 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
25213 | ||
25214 | wxPyEndAllowThreads(__tstate); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | Py_INCREF(Py_None); resultobj = Py_None; | |
25218 | { | |
25219 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25220 | resultobj = t_output_helper(resultobj,o); | |
25221 | } | |
25222 | { | |
25223 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25224 | resultobj = t_output_helper(resultobj,o); | |
25225 | } | |
25226 | { | |
25227 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
25228 | resultobj = t_output_helper(resultobj,o); | |
25229 | } | |
25230 | { | |
25231 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
25232 | resultobj = t_output_helper(resultobj,o); | |
25233 | } | |
25234 | { | |
25235 | if (temp2) | |
25236 | delete arg2; | |
25237 | } | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | { | |
25241 | if (temp2) | |
25242 | delete arg2; | |
25243 | } | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
2f4c0a16 | 25248 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25249 | PyObject *resultobj; |
25250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25251 | int *arg2 = (int *) 0 ; | |
25252 | int *arg3 = (int *) 0 ; | |
25253 | int temp2 ; | |
25254 | int temp3 ; | |
25255 | PyObject * obj0 = 0 ; | |
25256 | PyObject * obj1 = 0 ; | |
25257 | PyObject * obj2 = 0 ; | |
25258 | char *kwnames[] = { | |
25259 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25260 | }; | |
25261 | ||
25262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25265 | { |
25266 | temp2 = PyInt_AsLong(obj1); | |
25267 | if (PyErr_Occurred()) SWIG_fail; | |
25268 | arg2 = &temp2; | |
25269 | } | |
25270 | { | |
25271 | temp3 = PyInt_AsLong(obj2); | |
25272 | if (PyErr_Occurred()) SWIG_fail; | |
25273 | arg3 = &temp3; | |
25274 | } | |
25275 | { | |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | Py_INCREF(Py_None); resultobj = Py_None; | |
25283 | { | |
25284 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25285 | resultobj = t_output_helper(resultobj,o); | |
25286 | } | |
25287 | { | |
25288 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25289 | resultobj = t_output_helper(resultobj,o); | |
25290 | } | |
25291 | return resultobj; | |
25292 | fail: | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
2f4c0a16 | 25297 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25298 | PyObject *resultobj; |
25299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25300 | int *arg2 = (int *) 0 ; | |
25301 | int *arg3 = (int *) 0 ; | |
25302 | int temp2 ; | |
25303 | int temp3 ; | |
25304 | PyObject * obj0 = 0 ; | |
25305 | PyObject * obj1 = 0 ; | |
25306 | PyObject * obj2 = 0 ; | |
25307 | char *kwnames[] = { | |
25308 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25309 | }; | |
25310 | ||
25311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25314 | { |
25315 | temp2 = PyInt_AsLong(obj1); | |
25316 | if (PyErr_Occurred()) SWIG_fail; | |
25317 | arg2 = &temp2; | |
25318 | } | |
25319 | { | |
25320 | temp3 = PyInt_AsLong(obj2); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | arg3 = &temp3; | |
25323 | } | |
25324 | { | |
25325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25326 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25327 | ||
25328 | wxPyEndAllowThreads(__tstate); | |
25329 | if (PyErr_Occurred()) SWIG_fail; | |
25330 | } | |
25331 | Py_INCREF(Py_None); resultobj = Py_None; | |
25332 | { | |
25333 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25334 | resultobj = t_output_helper(resultobj,o); | |
25335 | } | |
25336 | { | |
25337 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25338 | resultobj = t_output_helper(resultobj,o); | |
25339 | } | |
25340 | return resultobj; | |
25341 | fail: | |
25342 | return NULL; | |
25343 | } | |
25344 | ||
25345 | ||
2f4c0a16 | 25346 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25347 | PyObject *resultobj; |
25348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25349 | wxPoint *arg2 = 0 ; | |
25350 | wxPoint result; | |
25351 | wxPoint temp2 ; | |
25352 | PyObject * obj0 = 0 ; | |
25353 | PyObject * obj1 = 0 ; | |
25354 | char *kwnames[] = { | |
25355 | (char *) "self",(char *) "pt", NULL | |
25356 | }; | |
25357 | ||
25358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25361 | { |
25362 | arg2 = &temp2; | |
25363 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25364 | } | |
25365 | { | |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25367 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25368 | ||
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
25372 | { | |
25373 | wxPoint * resultptr; | |
25374 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25376 | } |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
2f4c0a16 | 25383 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25384 | PyObject *resultobj; |
25385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25386 | wxPoint *arg2 = 0 ; | |
25387 | wxPoint result; | |
25388 | wxPoint temp2 ; | |
25389 | PyObject * obj0 = 0 ; | |
25390 | PyObject * obj1 = 0 ; | |
25391 | char *kwnames[] = { | |
25392 | (char *) "self",(char *) "pt", NULL | |
25393 | }; | |
25394 | ||
25395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25398 | { |
25399 | arg2 = &temp2; | |
25400 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25401 | } | |
25402 | { | |
25403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25404 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25405 | ||
25406 | wxPyEndAllowThreads(__tstate); | |
25407 | if (PyErr_Occurred()) SWIG_fail; | |
25408 | } | |
25409 | { | |
25410 | wxPoint * resultptr; | |
25411 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25413 | } |
25414 | return resultobj; | |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
2f4c0a16 | 25420 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25421 | PyObject *resultobj; |
25422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25423 | int arg2 ; |
25424 | int arg3 ; | |
d14a1e28 RD |
25425 | int result; |
25426 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25427 | PyObject * obj1 = 0 ; |
25428 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25429 | char *kwnames[] = { |
25430 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25431 | }; | |
25432 | ||
8edf1c75 | 25433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25436 | arg2 = (int) SWIG_AsInt(obj1); | |
25437 | if (PyErr_Occurred()) SWIG_fail; | |
25438 | arg3 = (int) SWIG_AsInt(obj2); | |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25440 | { |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
2f4c0a16 | 25447 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25448 | return resultobj; |
25449 | fail: | |
25450 | return NULL; | |
25451 | } | |
25452 | ||
25453 | ||
2f4c0a16 | 25454 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25455 | PyObject *resultobj; |
25456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25457 | wxPoint *arg2 = 0 ; | |
25458 | int result; | |
25459 | wxPoint temp2 ; | |
25460 | PyObject * obj0 = 0 ; | |
25461 | PyObject * obj1 = 0 ; | |
25462 | char *kwnames[] = { | |
25463 | (char *) "self",(char *) "pt", NULL | |
25464 | }; | |
25465 | ||
25466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25469 | { |
25470 | arg2 = &temp2; | |
25471 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25472 | } | |
25473 | { | |
25474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25475 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25476 | ||
25477 | wxPyEndAllowThreads(__tstate); | |
25478 | if (PyErr_Occurred()) SWIG_fail; | |
25479 | } | |
2f4c0a16 | 25480 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25481 | return resultobj; |
25482 | fail: | |
25483 | return NULL; | |
25484 | } | |
25485 | ||
25486 | ||
2f4c0a16 | 25487 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
25488 | PyObject *resultobj; |
25489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25490 | long arg2 ; | |
25491 | int result; | |
25492 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25493 | PyObject * obj1 = 0 ; |
d14a1e28 | 25494 | |
2f4c0a16 RD |
25495 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | arg2 = (long) SWIG_AsLong(obj1); | |
25499 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25500 | { |
25501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25502 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25503 | ||
25504 | wxPyEndAllowThreads(__tstate); | |
25505 | if (PyErr_Occurred()) SWIG_fail; | |
25506 | } | |
2f4c0a16 | 25507 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25508 | return resultobj; |
25509 | fail: | |
25510 | return NULL; | |
25511 | } | |
25512 | ||
25513 | ||
2f4c0a16 | 25514 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
25515 | PyObject *resultobj; |
25516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25517 | int result; | |
25518 | PyObject * obj0 = 0 ; | |
d14a1e28 | 25519 | |
2f4c0a16 RD |
25520 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
25521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25523 | { |
25524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25525 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25526 | ||
25527 | wxPyEndAllowThreads(__tstate); | |
25528 | if (PyErr_Occurred()) SWIG_fail; | |
25529 | } | |
2f4c0a16 | 25530 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25531 | return resultobj; |
25532 | fail: | |
25533 | return NULL; | |
25534 | } | |
25535 | ||
25536 | ||
2f4c0a16 RD |
25537 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
25538 | int argc; | |
25539 | PyObject *argv[3]; | |
25540 | int ii; | |
25541 | ||
25542 | argc = PyObject_Length(args); | |
25543 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
25544 | argv[ii] = PyTuple_GetItem(args,ii); | |
25545 | } | |
25546 | if (argc == 1) { | |
25547 | int _v; | |
25548 | { | |
25549 | void *ptr; | |
25550 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25551 | _v = 0; | |
25552 | PyErr_Clear(); | |
25553 | } else { | |
25554 | _v = 1; | |
25555 | } | |
25556 | } | |
25557 | if (_v) { | |
25558 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
25559 | } | |
25560 | } | |
25561 | if (argc == 2) { | |
25562 | int _v; | |
25563 | { | |
25564 | void *ptr; | |
25565 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25566 | _v = 0; | |
25567 | PyErr_Clear(); | |
25568 | } else { | |
25569 | _v = 1; | |
25570 | } | |
25571 | } | |
25572 | if (_v) { | |
25573 | _v = SWIG_CheckLong(argv[1]); | |
25574 | if (_v) { | |
25575 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
25576 | } | |
25577 | } | |
25578 | } | |
25579 | ||
25580 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
25581 | return NULL; | |
25582 | } | |
25583 | ||
25584 | ||
25585 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
25586 | PyObject *resultobj; |
25587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25588 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25589 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25590 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25591 | char *kwnames[] = { |
25592 | (char *) "self",(char *) "flags", NULL | |
25593 | }; | |
25594 | ||
8edf1c75 | 25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25598 | if (obj1) { |
2f4c0a16 RD |
25599 | arg2 = (long) SWIG_AsLong(obj1); |
25600 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25601 | } |
d14a1e28 RD |
25602 | { |
25603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25604 | (arg1)->UpdateWindowUI(arg2); | |
25605 | ||
25606 | wxPyEndAllowThreads(__tstate); | |
25607 | if (PyErr_Occurred()) SWIG_fail; | |
25608 | } | |
25609 | Py_INCREF(Py_None); resultobj = Py_None; | |
25610 | return resultobj; | |
25611 | fail: | |
25612 | return NULL; | |
25613 | } | |
25614 | ||
25615 | ||
2f4c0a16 | 25616 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25617 | PyObject *resultobj; |
25618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25619 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25620 | int arg3 ; | |
25621 | int arg4 ; | |
25622 | bool result; | |
25623 | PyObject * obj0 = 0 ; | |
25624 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25625 | PyObject * obj2 = 0 ; |
25626 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25627 | char *kwnames[] = { |
25628 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
25629 | }; | |
25630 | ||
8edf1c75 | 25631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
25635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25636 | arg3 = (int) SWIG_AsInt(obj2); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | arg4 = (int) SWIG_AsInt(obj3); | |
25639 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25640 | { |
25641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25642 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
25643 | ||
25644 | wxPyEndAllowThreads(__tstate); | |
25645 | if (PyErr_Occurred()) SWIG_fail; | |
25646 | } | |
02a34c4c | 25647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25648 | return resultobj; |
25649 | fail: | |
25650 | return NULL; | |
25651 | } | |
25652 | ||
25653 | ||
2f4c0a16 | 25654 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25655 | PyObject *resultobj; |
25656 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25657 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25658 | wxPoint *arg3 = 0 ; | |
25659 | bool result; | |
25660 | wxPoint temp3 ; | |
25661 | PyObject * obj0 = 0 ; | |
25662 | PyObject * obj1 = 0 ; | |
25663 | PyObject * obj2 = 0 ; | |
25664 | char *kwnames[] = { | |
25665 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
25666 | }; | |
25667 | ||
25668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
25672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25673 | { |
25674 | arg3 = &temp3; | |
25675 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25676 | } | |
25677 | { | |
25678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25679 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
25680 | ||
25681 | wxPyEndAllowThreads(__tstate); | |
25682 | if (PyErr_Occurred()) SWIG_fail; | |
25683 | } | |
02a34c4c | 25684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25685 | return resultobj; |
25686 | fail: | |
25687 | return NULL; | |
25688 | } | |
25689 | ||
25690 | ||
2f4c0a16 | 25691 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25692 | PyObject *resultobj; |
25693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25694 | long result; | |
25695 | PyObject * obj0 = 0 ; | |
25696 | char *kwnames[] = { | |
25697 | (char *) "self", NULL | |
25698 | }; | |
25699 | ||
25700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25703 | { |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | result = (long)wxWindow_GetHandle(arg1); | |
25706 | ||
25707 | wxPyEndAllowThreads(__tstate); | |
25708 | if (PyErr_Occurred()) SWIG_fail; | |
25709 | } | |
2f4c0a16 | 25710 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
25711 | return resultobj; |
25712 | fail: | |
25713 | return NULL; | |
25714 | } | |
25715 | ||
25716 | ||
2f4c0a16 | 25717 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25718 | PyObject *resultobj; |
25719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25720 | int arg2 ; | |
25721 | bool result; | |
25722 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25723 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25724 | char *kwnames[] = { |
25725 | (char *) "self",(char *) "orient", NULL | |
25726 | }; | |
25727 | ||
8edf1c75 | 25728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25731 | arg2 = (int) SWIG_AsInt(obj1); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25733 | { |
25734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25735 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
25736 | ||
25737 | wxPyEndAllowThreads(__tstate); | |
25738 | if (PyErr_Occurred()) SWIG_fail; | |
25739 | } | |
02a34c4c | 25740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25741 | return resultobj; |
25742 | fail: | |
25743 | return NULL; | |
25744 | } | |
25745 | ||
25746 | ||
2f4c0a16 | 25747 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25748 | PyObject *resultobj; |
25749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25750 | int arg2 ; | |
25751 | int arg3 ; | |
25752 | int arg4 ; | |
25753 | int arg5 ; | |
423f194a | 25754 | bool arg6 = (bool) True ; |
d14a1e28 | 25755 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25756 | PyObject * obj1 = 0 ; |
25757 | PyObject * obj2 = 0 ; | |
25758 | PyObject * obj3 = 0 ; | |
25759 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25760 | PyObject * obj5 = 0 ; |
25761 | char *kwnames[] = { | |
2f4c0a16 | 25762 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
25763 | }; |
25764 | ||
8edf1c75 | 25765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
25766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25768 | arg2 = (int) SWIG_AsInt(obj1); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | arg3 = (int) SWIG_AsInt(obj2); | |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | arg4 = (int) SWIG_AsInt(obj3); | |
25773 | if (PyErr_Occurred()) SWIG_fail; | |
25774 | arg5 = (int) SWIG_AsInt(obj4); | |
25775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25776 | if (obj5) { |
2f4c0a16 RD |
25777 | arg6 = (bool) SWIG_AsBool(obj5); |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25779 | } |
25780 | { | |
25781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25782 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
25783 | ||
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | Py_INCREF(Py_None); resultobj = Py_None; | |
25788 | return resultobj; | |
25789 | fail: | |
25790 | return NULL; | |
25791 | } | |
25792 | ||
25793 | ||
2f4c0a16 | 25794 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25795 | PyObject *resultobj; |
25796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25797 | int arg2 ; | |
25798 | int arg3 ; | |
423f194a | 25799 | bool arg4 = (bool) True ; |
d14a1e28 | 25800 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25801 | PyObject * obj1 = 0 ; |
25802 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25803 | PyObject * obj3 = 0 ; |
25804 | char *kwnames[] = { | |
2f4c0a16 | 25805 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
25806 | }; |
25807 | ||
8edf1c75 | 25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25811 | arg2 = (int) SWIG_AsInt(obj1); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | arg3 = (int) SWIG_AsInt(obj2); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25815 | if (obj3) { |
2f4c0a16 RD |
25816 | arg4 = (bool) SWIG_AsBool(obj3); |
25817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25818 | } |
25819 | { | |
25820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25821 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
25822 | ||
25823 | wxPyEndAllowThreads(__tstate); | |
25824 | if (PyErr_Occurred()) SWIG_fail; | |
25825 | } | |
25826 | Py_INCREF(Py_None); resultobj = Py_None; | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
2f4c0a16 | 25833 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25834 | PyObject *resultobj; |
25835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25836 | int arg2 ; | |
25837 | int result; | |
25838 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25839 | PyObject * obj1 = 0 ; |
d14a1e28 | 25840 | char *kwnames[] = { |
2f4c0a16 | 25841 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25842 | }; |
25843 | ||
8edf1c75 | 25844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25847 | arg2 = (int) SWIG_AsInt(obj1); | |
25848 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25849 | { |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
2f4c0a16 | 25856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25857 | return resultobj; |
25858 | fail: | |
25859 | return NULL; | |
25860 | } | |
25861 | ||
25862 | ||
2f4c0a16 | 25863 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25864 | PyObject *resultobj; |
25865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25866 | int arg2 ; | |
25867 | int result; | |
25868 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25869 | PyObject * obj1 = 0 ; |
d14a1e28 | 25870 | char *kwnames[] = { |
2f4c0a16 | 25871 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25872 | }; |
25873 | ||
8edf1c75 | 25874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25877 | arg2 = (int) SWIG_AsInt(obj1); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25879 | { |
25880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25881 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
25882 | ||
25883 | wxPyEndAllowThreads(__tstate); | |
25884 | if (PyErr_Occurred()) SWIG_fail; | |
25885 | } | |
2f4c0a16 | 25886 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25887 | return resultobj; |
25888 | fail: | |
25889 | return NULL; | |
25890 | } | |
25891 | ||
25892 | ||
2f4c0a16 | 25893 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25894 | PyObject *resultobj; |
25895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25896 | int arg2 ; | |
25897 | int result; | |
25898 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25899 | PyObject * obj1 = 0 ; |
d14a1e28 | 25900 | char *kwnames[] = { |
2f4c0a16 | 25901 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25902 | }; |
25903 | ||
8edf1c75 | 25904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25907 | arg2 = (int) SWIG_AsInt(obj1); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25909 | { |
25910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25911 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
25912 | ||
25913 | wxPyEndAllowThreads(__tstate); | |
25914 | if (PyErr_Occurred()) SWIG_fail; | |
25915 | } | |
2f4c0a16 | 25916 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25917 | return resultobj; |
25918 | fail: | |
25919 | return NULL; | |
25920 | } | |
25921 | ||
25922 | ||
2f4c0a16 | 25923 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25924 | PyObject *resultobj; |
25925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25926 | int arg2 ; | |
25927 | int arg3 ; | |
25928 | wxRect *arg4 = (wxRect *) NULL ; | |
25929 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25930 | PyObject * obj1 = 0 ; |
25931 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25932 | PyObject * obj3 = 0 ; |
25933 | char *kwnames[] = { | |
25934 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
25935 | }; | |
25936 | ||
8edf1c75 | 25937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25940 | arg2 = (int) SWIG_AsInt(obj1); | |
25941 | if (PyErr_Occurred()) SWIG_fail; | |
25942 | arg3 = (int) SWIG_AsInt(obj2); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25944 | if (obj3) { |
2f4c0a16 RD |
25945 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
25946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25947 | } |
25948 | { | |
25949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25950 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
25951 | ||
25952 | wxPyEndAllowThreads(__tstate); | |
25953 | if (PyErr_Occurred()) SWIG_fail; | |
25954 | } | |
25955 | Py_INCREF(Py_None); resultobj = Py_None; | |
25956 | return resultobj; | |
25957 | fail: | |
25958 | return NULL; | |
25959 | } | |
25960 | ||
25961 | ||
2f4c0a16 | 25962 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25963 | PyObject *resultobj; |
25964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25965 | int arg2 ; | |
25966 | bool result; | |
25967 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25969 | char *kwnames[] = { |
25970 | (char *) "self",(char *) "lines", NULL | |
25971 | }; | |
25972 | ||
8edf1c75 | 25973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25976 | arg2 = (int) SWIG_AsInt(obj1); | |
25977 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25978 | { |
25979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25980 | result = (bool)(arg1)->ScrollLines(arg2); | |
25981 | ||
25982 | wxPyEndAllowThreads(__tstate); | |
25983 | if (PyErr_Occurred()) SWIG_fail; | |
25984 | } | |
02a34c4c | 25985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25986 | return resultobj; |
25987 | fail: | |
25988 | return NULL; | |
25989 | } | |
25990 | ||
25991 | ||
2f4c0a16 | 25992 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25993 | PyObject *resultobj; |
25994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25995 | int arg2 ; | |
25996 | bool result; | |
25997 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25999 | char *kwnames[] = { |
26000 | (char *) "self",(char *) "pages", NULL | |
26001 | }; | |
26002 | ||
8edf1c75 | 26003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26006 | arg2 = (int) SWIG_AsInt(obj1); | |
26007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26008 | { |
26009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26010 | result = (bool)(arg1)->ScrollPages(arg2); | |
26011 | ||
26012 | wxPyEndAllowThreads(__tstate); | |
26013 | if (PyErr_Occurred()) SWIG_fail; | |
26014 | } | |
02a34c4c | 26015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26016 | return resultobj; |
26017 | fail: | |
26018 | return NULL; | |
26019 | } | |
26020 | ||
26021 | ||
2f4c0a16 | 26022 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26023 | PyObject *resultobj; |
26024 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26025 | bool result; | |
26026 | PyObject * obj0 = 0 ; | |
26027 | char *kwnames[] = { | |
26028 | (char *) "self", NULL | |
26029 | }; | |
26030 | ||
26031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26034 | { |
26035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26036 | result = (bool)(arg1)->LineUp(); | |
26037 | ||
26038 | wxPyEndAllowThreads(__tstate); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
26040 | } | |
02a34c4c | 26041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26042 | return resultobj; |
26043 | fail: | |
26044 | return NULL; | |
26045 | } | |
26046 | ||
26047 | ||
2f4c0a16 | 26048 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26049 | PyObject *resultobj; |
26050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26051 | bool result; | |
26052 | PyObject * obj0 = 0 ; | |
26053 | char *kwnames[] = { | |
26054 | (char *) "self", NULL | |
26055 | }; | |
26056 | ||
26057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26060 | { |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | result = (bool)(arg1)->LineDown(); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
02a34c4c | 26067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26068 | return resultobj; |
26069 | fail: | |
26070 | return NULL; | |
26071 | } | |
26072 | ||
26073 | ||
2f4c0a16 | 26074 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26075 | PyObject *resultobj; |
26076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26077 | bool result; | |
26078 | PyObject * obj0 = 0 ; | |
26079 | char *kwnames[] = { | |
26080 | (char *) "self", NULL | |
26081 | }; | |
26082 | ||
26083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26086 | { |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | result = (bool)(arg1)->PageUp(); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
02a34c4c | 26093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26094 | return resultobj; |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
2f4c0a16 | 26100 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26101 | PyObject *resultobj; |
26102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26103 | bool result; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | char *kwnames[] = { | |
26106 | (char *) "self", NULL | |
26107 | }; | |
26108 | ||
26109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26112 | { |
26113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26114 | result = (bool)(arg1)->PageDown(); | |
26115 | ||
26116 | wxPyEndAllowThreads(__tstate); | |
26117 | if (PyErr_Occurred()) SWIG_fail; | |
26118 | } | |
02a34c4c | 26119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26120 | return resultobj; |
26121 | fail: | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
2f4c0a16 | 26126 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26127 | PyObject *resultobj; |
26128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26129 | wxString *arg2 = 0 ; | |
423f194a | 26130 | bool temp2 = False ; |
d14a1e28 RD |
26131 | PyObject * obj0 = 0 ; |
26132 | PyObject * obj1 = 0 ; | |
26133 | char *kwnames[] = { | |
26134 | (char *) "self",(char *) "text", NULL | |
26135 | }; | |
26136 | ||
26137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26140 | { |
26141 | arg2 = wxString_in_helper(obj1); | |
26142 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26143 | temp2 = True; |
d14a1e28 RD |
26144 | } |
26145 | { | |
26146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26147 | (arg1)->SetHelpText((wxString const &)*arg2); | |
26148 | ||
26149 | wxPyEndAllowThreads(__tstate); | |
26150 | if (PyErr_Occurred()) SWIG_fail; | |
26151 | } | |
26152 | Py_INCREF(Py_None); resultobj = Py_None; | |
26153 | { | |
26154 | if (temp2) | |
26155 | delete arg2; | |
26156 | } | |
26157 | return resultobj; | |
26158 | fail: | |
26159 | { | |
26160 | if (temp2) | |
26161 | delete arg2; | |
26162 | } | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
2f4c0a16 | 26167 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26168 | PyObject *resultobj; |
26169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26170 | wxString *arg2 = 0 ; | |
423f194a | 26171 | bool temp2 = False ; |
d14a1e28 RD |
26172 | PyObject * obj0 = 0 ; |
26173 | PyObject * obj1 = 0 ; | |
26174 | char *kwnames[] = { | |
26175 | (char *) "self",(char *) "text", NULL | |
26176 | }; | |
26177 | ||
26178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26181 | { |
26182 | arg2 = wxString_in_helper(obj1); | |
26183 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26184 | temp2 = True; |
d14a1e28 RD |
26185 | } |
26186 | { | |
26187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26188 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
26189 | ||
26190 | wxPyEndAllowThreads(__tstate); | |
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | } | |
26193 | Py_INCREF(Py_None); resultobj = Py_None; | |
26194 | { | |
26195 | if (temp2) | |
26196 | delete arg2; | |
26197 | } | |
26198 | return resultobj; | |
26199 | fail: | |
26200 | { | |
26201 | if (temp2) | |
26202 | delete arg2; | |
26203 | } | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
2f4c0a16 | 26208 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26209 | PyObject *resultobj; |
26210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26211 | wxString result; | |
26212 | PyObject * obj0 = 0 ; | |
26213 | char *kwnames[] = { | |
26214 | (char *) "self", NULL | |
26215 | }; | |
26216 | ||
26217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26220 | { |
26221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26222 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
26223 | ||
26224 | wxPyEndAllowThreads(__tstate); | |
26225 | if (PyErr_Occurred()) SWIG_fail; | |
26226 | } | |
26227 | { | |
26228 | #if wxUSE_UNICODE | |
26229 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26230 | #else | |
26231 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26232 | #endif | |
26233 | } | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
2f4c0a16 | 26240 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26241 | PyObject *resultobj; |
26242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26243 | wxString *arg2 = 0 ; | |
423f194a | 26244 | bool temp2 = False ; |
d14a1e28 RD |
26245 | PyObject * obj0 = 0 ; |
26246 | PyObject * obj1 = 0 ; | |
26247 | char *kwnames[] = { | |
26248 | (char *) "self",(char *) "tip", NULL | |
26249 | }; | |
26250 | ||
26251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26254 | { |
26255 | arg2 = wxString_in_helper(obj1); | |
26256 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26257 | temp2 = True; |
d14a1e28 RD |
26258 | } |
26259 | { | |
26260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26261 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26262 | ||
26263 | wxPyEndAllowThreads(__tstate); | |
26264 | if (PyErr_Occurred()) SWIG_fail; | |
26265 | } | |
26266 | Py_INCREF(Py_None); resultobj = Py_None; | |
26267 | { | |
26268 | if (temp2) | |
26269 | delete arg2; | |
26270 | } | |
26271 | return resultobj; | |
26272 | fail: | |
26273 | { | |
26274 | if (temp2) | |
26275 | delete arg2; | |
26276 | } | |
26277 | return NULL; | |
26278 | } | |
26279 | ||
26280 | ||
2f4c0a16 | 26281 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26282 | PyObject *resultobj; |
26283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26284 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26285 | PyObject * obj0 = 0 ; | |
26286 | PyObject * obj1 = 0 ; | |
26287 | char *kwnames[] = { | |
26288 | (char *) "self",(char *) "tip", NULL | |
26289 | }; | |
26290 | ||
26291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26294 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
26295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26296 | { |
26297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26298 | (arg1)->SetToolTip(arg2); | |
26299 | ||
26300 | wxPyEndAllowThreads(__tstate); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
26303 | Py_INCREF(Py_None); resultobj = Py_None; | |
26304 | return resultobj; | |
26305 | fail: | |
26306 | return NULL; | |
26307 | } | |
26308 | ||
26309 | ||
2f4c0a16 | 26310 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26311 | PyObject *resultobj; |
26312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26313 | wxToolTip *result; | |
26314 | PyObject * obj0 = 0 ; | |
26315 | char *kwnames[] = { | |
26316 | (char *) "self", NULL | |
26317 | }; | |
26318 | ||
26319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26322 | { |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26325 | ||
26326 | wxPyEndAllowThreads(__tstate); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | } | |
26329 | { | |
26330 | resultobj = wxPyMake_wxObject(result); | |
26331 | } | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
2f4c0a16 | 26338 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26339 | PyObject *resultobj; |
26340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26341 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26342 | PyObject * obj0 = 0 ; |
26343 | PyObject * obj1 = 0 ; | |
26344 | char *kwnames[] = { | |
26345 | (char *) "self",(char *) "dropTarget", NULL | |
26346 | }; | |
26347 | ||
26348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
26352 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26353 | { |
26354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26355 | (arg1)->SetDropTarget(arg2); | |
26356 | ||
26357 | wxPyEndAllowThreads(__tstate); | |
26358 | if (PyErr_Occurred()) SWIG_fail; | |
26359 | } | |
26360 | Py_INCREF(Py_None); resultobj = Py_None; | |
26361 | return resultobj; | |
26362 | fail: | |
26363 | return NULL; | |
26364 | } | |
26365 | ||
26366 | ||
2f4c0a16 | 26367 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26368 | PyObject *resultobj; |
26369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26370 | wxPyDropTarget *result; |
d14a1e28 RD |
26371 | PyObject * obj0 = 0 ; |
26372 | char *kwnames[] = { | |
26373 | (char *) "self", NULL | |
26374 | }; | |
26375 | ||
26376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26379 | { |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26381 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26382 | |
26383 | wxPyEndAllowThreads(__tstate); | |
26384 | if (PyErr_Occurred()) SWIG_fail; | |
26385 | } | |
2f4c0a16 | 26386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26387 | return resultobj; |
26388 | fail: | |
26389 | return NULL; | |
26390 | } | |
26391 | ||
26392 | ||
2f4c0a16 | 26393 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26394 | PyObject *resultobj; |
26395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26396 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26397 | PyObject * obj0 = 0 ; | |
26398 | PyObject * obj1 = 0 ; | |
26399 | char *kwnames[] = { | |
26400 | (char *) "self",(char *) "constraints", NULL | |
26401 | }; | |
26402 | ||
26403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26406 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
26407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26408 | { |
26409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26410 | (arg1)->SetConstraints(arg2); | |
26411 | ||
26412 | wxPyEndAllowThreads(__tstate); | |
26413 | if (PyErr_Occurred()) SWIG_fail; | |
26414 | } | |
26415 | Py_INCREF(Py_None); resultobj = Py_None; | |
26416 | return resultobj; | |
26417 | fail: | |
26418 | return NULL; | |
26419 | } | |
26420 | ||
26421 | ||
2f4c0a16 | 26422 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26423 | PyObject *resultobj; |
26424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26425 | wxLayoutConstraints *result; | |
26426 | PyObject * obj0 = 0 ; | |
26427 | char *kwnames[] = { | |
26428 | (char *) "self", NULL | |
26429 | }; | |
26430 | ||
26431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26434 | { |
26435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26436 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26437 | ||
26438 | wxPyEndAllowThreads(__tstate); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
26440 | } | |
2f4c0a16 | 26441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
26442 | return resultobj; |
26443 | fail: | |
26444 | return NULL; | |
26445 | } | |
26446 | ||
26447 | ||
2f4c0a16 | 26448 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26449 | PyObject *resultobj; |
26450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26451 | bool arg2 ; | |
26452 | PyObject * obj0 = 0 ; | |
26453 | PyObject * obj1 = 0 ; | |
26454 | char *kwnames[] = { | |
26455 | (char *) "self",(char *) "autoLayout", NULL | |
26456 | }; | |
26457 | ||
26458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26461 | arg2 = (bool) SWIG_AsBool(obj1); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26463 | { |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | (arg1)->SetAutoLayout(arg2); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
26470 | Py_INCREF(Py_None); resultobj = Py_None; | |
26471 | return resultobj; | |
26472 | fail: | |
26473 | return NULL; | |
26474 | } | |
26475 | ||
26476 | ||
2f4c0a16 | 26477 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26478 | PyObject *resultobj; |
26479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26480 | bool result; | |
26481 | PyObject * obj0 = 0 ; | |
26482 | char *kwnames[] = { | |
26483 | (char *) "self", NULL | |
26484 | }; | |
26485 | ||
26486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26489 | { |
26490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26491 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26492 | ||
26493 | wxPyEndAllowThreads(__tstate); | |
26494 | if (PyErr_Occurred()) SWIG_fail; | |
26495 | } | |
02a34c4c | 26496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26497 | return resultobj; |
26498 | fail: | |
26499 | return NULL; | |
26500 | } | |
26501 | ||
26502 | ||
2f4c0a16 | 26503 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26504 | PyObject *resultobj; |
26505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26506 | bool result; | |
26507 | PyObject * obj0 = 0 ; | |
26508 | char *kwnames[] = { | |
26509 | (char *) "self", NULL | |
26510 | }; | |
26511 | ||
26512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26515 | { |
26516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26517 | result = (bool)(arg1)->Layout(); | |
26518 | ||
26519 | wxPyEndAllowThreads(__tstate); | |
26520 | if (PyErr_Occurred()) SWIG_fail; | |
26521 | } | |
02a34c4c | 26522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26523 | return resultobj; |
26524 | fail: | |
26525 | return NULL; | |
26526 | } | |
26527 | ||
26528 | ||
2f4c0a16 | 26529 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26530 | PyObject *resultobj; |
26531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26532 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26533 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26534 | PyObject * obj0 = 0 ; |
26535 | PyObject * obj1 = 0 ; | |
26536 | PyObject * obj2 = 0 ; | |
26537 | char *kwnames[] = { | |
26538 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26539 | }; | |
26540 | ||
26541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
26545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26546 | if (obj2) { |
2f4c0a16 RD |
26547 | arg3 = (bool) SWIG_AsBool(obj2); |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26549 | } |
26550 | { | |
26551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26552 | (arg1)->SetSizer(arg2,arg3); | |
26553 | ||
26554 | wxPyEndAllowThreads(__tstate); | |
26555 | if (PyErr_Occurred()) SWIG_fail; | |
26556 | } | |
26557 | Py_INCREF(Py_None); resultobj = Py_None; | |
26558 | return resultobj; | |
26559 | fail: | |
26560 | return NULL; | |
26561 | } | |
26562 | ||
26563 | ||
2f4c0a16 | 26564 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26565 | PyObject *resultobj; |
26566 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26567 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26568 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26569 | PyObject * obj0 = 0 ; |
26570 | PyObject * obj1 = 0 ; | |
26571 | PyObject * obj2 = 0 ; | |
26572 | char *kwnames[] = { | |
26573 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26574 | }; | |
26575 | ||
26576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26581 | if (obj2) { |
2f4c0a16 RD |
26582 | arg3 = (bool) SWIG_AsBool(obj2); |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26584 | } |
26585 | { | |
26586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26587 | (arg1)->SetSizerAndFit(arg2,arg3); | |
26588 | ||
26589 | wxPyEndAllowThreads(__tstate); | |
26590 | if (PyErr_Occurred()) SWIG_fail; | |
26591 | } | |
26592 | Py_INCREF(Py_None); resultobj = Py_None; | |
26593 | return resultobj; | |
26594 | fail: | |
26595 | return NULL; | |
26596 | } | |
26597 | ||
26598 | ||
2f4c0a16 | 26599 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26600 | PyObject *resultobj; |
26601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26602 | wxSizer *result; | |
26603 | PyObject * obj0 = 0 ; | |
26604 | char *kwnames[] = { | |
26605 | (char *) "self", NULL | |
26606 | }; | |
26607 | ||
26608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26611 | { |
26612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26613 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
26614 | ||
26615 | wxPyEndAllowThreads(__tstate); | |
26616 | if (PyErr_Occurred()) SWIG_fail; | |
26617 | } | |
26618 | { | |
26619 | resultobj = wxPyMake_wxSizer(result); | |
26620 | } | |
26621 | return resultobj; | |
26622 | fail: | |
26623 | return NULL; | |
26624 | } | |
26625 | ||
26626 | ||
2f4c0a16 | 26627 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26628 | PyObject *resultobj; |
26629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26630 | wxSizer *arg2 = (wxSizer *) 0 ; | |
26631 | PyObject * obj0 = 0 ; | |
26632 | PyObject * obj1 = 0 ; | |
26633 | char *kwnames[] = { | |
26634 | (char *) "self",(char *) "sizer", NULL | |
26635 | }; | |
26636 | ||
26637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
26641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26642 | { |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | (arg1)->SetContainingSizer(arg2); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | Py_INCREF(Py_None); resultobj = Py_None; | |
26650 | return resultobj; | |
26651 | fail: | |
26652 | return NULL; | |
26653 | } | |
26654 | ||
26655 | ||
2f4c0a16 | 26656 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26657 | PyObject *resultobj; |
26658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26659 | wxSizer *result; | |
26660 | PyObject * obj0 = 0 ; | |
26661 | char *kwnames[] = { | |
26662 | (char *) "self", NULL | |
26663 | }; | |
26664 | ||
26665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26668 | { |
26669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26670 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
26671 | ||
26672 | wxPyEndAllowThreads(__tstate); | |
26673 | if (PyErr_Occurred()) SWIG_fail; | |
26674 | } | |
26675 | { | |
26676 | resultobj = wxPyMake_wxSizer(result); | |
26677 | } | |
26678 | return resultobj; | |
26679 | fail: | |
26680 | return NULL; | |
26681 | } | |
26682 | ||
26683 | ||
2f4c0a16 | 26684 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26685 | PyObject *obj; |
26686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26687 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
26688 | Py_INCREF(obj); | |
26689 | return Py_BuildValue((char *)""); | |
26690 | } | |
2f4c0a16 | 26691 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26692 | PyObject *resultobj; |
26693 | long arg1 ; | |
26694 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26695 | wxWindow *result; | |
8edf1c75 | 26696 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26697 | PyObject * obj1 = 0 ; |
26698 | char *kwnames[] = { | |
26699 | (char *) "id",(char *) "parent", NULL | |
26700 | }; | |
26701 | ||
8edf1c75 | 26702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26703 | arg1 = (long) SWIG_AsLong(obj0); |
26704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26705 | if (obj1) { |
2f4c0a16 RD |
26706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26708 | } |
26709 | { | |
26710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26711 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
26712 | ||
26713 | wxPyEndAllowThreads(__tstate); | |
26714 | if (PyErr_Occurred()) SWIG_fail; | |
26715 | } | |
26716 | { | |
26717 | resultobj = wxPyMake_wxObject(result); | |
26718 | } | |
26719 | return resultobj; | |
26720 | fail: | |
26721 | return NULL; | |
26722 | } | |
26723 | ||
26724 | ||
2f4c0a16 | 26725 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26726 | PyObject *resultobj; |
26727 | wxString *arg1 = 0 ; | |
26728 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26729 | wxWindow *result; | |
423f194a | 26730 | bool temp1 = False ; |
d14a1e28 RD |
26731 | PyObject * obj0 = 0 ; |
26732 | PyObject * obj1 = 0 ; | |
26733 | char *kwnames[] = { | |
26734 | (char *) "name",(char *) "parent", NULL | |
26735 | }; | |
26736 | ||
26737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
26738 | { | |
26739 | arg1 = wxString_in_helper(obj0); | |
26740 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26741 | temp1 = True; |
d14a1e28 RD |
26742 | } |
26743 | if (obj1) { | |
2f4c0a16 RD |
26744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26746 | } |
26747 | { | |
26748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26749 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
26750 | ||
26751 | wxPyEndAllowThreads(__tstate); | |
26752 | if (PyErr_Occurred()) SWIG_fail; | |
26753 | } | |
26754 | { | |
26755 | resultobj = wxPyMake_wxObject(result); | |
26756 | } | |
26757 | { | |
26758 | if (temp1) | |
26759 | delete arg1; | |
26760 | } | |
26761 | return resultobj; | |
26762 | fail: | |
26763 | { | |
26764 | if (temp1) | |
26765 | delete arg1; | |
26766 | } | |
26767 | return NULL; | |
26768 | } | |
26769 | ||
26770 | ||
2f4c0a16 | 26771 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26772 | PyObject *resultobj; |
26773 | wxString *arg1 = 0 ; | |
26774 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26775 | wxWindow *result; | |
423f194a | 26776 | bool temp1 = False ; |
d14a1e28 RD |
26777 | PyObject * obj0 = 0 ; |
26778 | PyObject * obj1 = 0 ; | |
26779 | char *kwnames[] = { | |
26780 | (char *) "label",(char *) "parent", NULL | |
26781 | }; | |
26782 | ||
26783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
26784 | { | |
26785 | arg1 = wxString_in_helper(obj0); | |
26786 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26787 | temp1 = True; |
d14a1e28 RD |
26788 | } |
26789 | if (obj1) { | |
2f4c0a16 RD |
26790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26792 | } |
26793 | { | |
26794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26795 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
26796 | ||
26797 | wxPyEndAllowThreads(__tstate); | |
26798 | if (PyErr_Occurred()) SWIG_fail; | |
26799 | } | |
26800 | { | |
26801 | resultobj = wxPyMake_wxObject(result); | |
26802 | } | |
26803 | { | |
26804 | if (temp1) | |
26805 | delete arg1; | |
26806 | } | |
26807 | return resultobj; | |
26808 | fail: | |
26809 | { | |
26810 | if (temp1) | |
26811 | delete arg1; | |
26812 | } | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
2f4c0a16 | 26817 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26818 | PyObject *resultobj; |
26819 | unsigned long arg1 ; | |
26820 | wxWindow *result; | |
26821 | PyObject * obj0 = 0 ; | |
26822 | char *kwnames[] = { | |
26823 | (char *) "hWnd", NULL | |
26824 | }; | |
26825 | ||
26826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26827 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26829 | { |
26830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26831 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
26832 | ||
26833 | wxPyEndAllowThreads(__tstate); | |
26834 | if (PyErr_Occurred()) SWIG_fail; | |
26835 | } | |
26836 | { | |
26837 | resultobj = wxPyMake_wxObject(result); | |
26838 | } | |
26839 | return resultobj; | |
26840 | fail: | |
26841 | return NULL; | |
26842 | } | |
26843 | ||
26844 | ||
2f4c0a16 | 26845 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26846 | PyObject *resultobj; |
26847 | wxValidator *result; | |
26848 | char *kwnames[] = { | |
26849 | NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
26853 | { | |
26854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26855 | result = (wxValidator *)new wxValidator(); | |
26856 | ||
26857 | wxPyEndAllowThreads(__tstate); | |
26858 | if (PyErr_Occurred()) SWIG_fail; | |
26859 | } | |
26860 | { | |
26861 | resultobj = wxPyMake_wxObject(result); | |
26862 | } | |
26863 | return resultobj; | |
26864 | fail: | |
26865 | return NULL; | |
26866 | } | |
26867 | ||
26868 | ||
2f4c0a16 | 26869 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26870 | PyObject *resultobj; |
26871 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26872 | wxValidator *result; | |
26873 | PyObject * obj0 = 0 ; | |
26874 | char *kwnames[] = { | |
26875 | (char *) "self", NULL | |
26876 | }; | |
26877 | ||
26878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26881 | { |
26882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26883 | result = (wxValidator *)(arg1)->Clone(); | |
26884 | ||
26885 | wxPyEndAllowThreads(__tstate); | |
26886 | if (PyErr_Occurred()) SWIG_fail; | |
26887 | } | |
26888 | { | |
26889 | resultobj = wxPyMake_wxObject(result); | |
26890 | } | |
26891 | return resultobj; | |
26892 | fail: | |
26893 | return NULL; | |
26894 | } | |
26895 | ||
26896 | ||
2f4c0a16 | 26897 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26898 | PyObject *resultobj; |
26899 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26900 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26901 | bool result; | |
26902 | PyObject * obj0 = 0 ; | |
26903 | PyObject * obj1 = 0 ; | |
26904 | char *kwnames[] = { | |
26905 | (char *) "self",(char *) "parent", NULL | |
26906 | }; | |
26907 | ||
26908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
26912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26913 | { |
26914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26915 | result = (bool)(arg1)->Validate(arg2); | |
26916 | ||
26917 | wxPyEndAllowThreads(__tstate); | |
26918 | if (PyErr_Occurred()) SWIG_fail; | |
26919 | } | |
02a34c4c | 26920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26921 | return resultobj; |
26922 | fail: | |
26923 | return NULL; | |
26924 | } | |
26925 | ||
26926 | ||
2f4c0a16 | 26927 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26928 | PyObject *resultobj; |
26929 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26930 | bool result; | |
26931 | PyObject * obj0 = 0 ; | |
26932 | char *kwnames[] = { | |
26933 | (char *) "self", NULL | |
26934 | }; | |
26935 | ||
26936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26939 | { |
26940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26941 | result = (bool)(arg1)->TransferToWindow(); | |
26942 | ||
26943 | wxPyEndAllowThreads(__tstate); | |
26944 | if (PyErr_Occurred()) SWIG_fail; | |
26945 | } | |
02a34c4c | 26946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26947 | return resultobj; |
26948 | fail: | |
26949 | return NULL; | |
26950 | } | |
26951 | ||
26952 | ||
2f4c0a16 | 26953 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26954 | PyObject *resultobj; |
26955 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26956 | bool result; | |
26957 | PyObject * obj0 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self", NULL | |
26960 | }; | |
26961 | ||
26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26965 | { |
26966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26967 | result = (bool)(arg1)->TransferFromWindow(); | |
26968 | ||
26969 | wxPyEndAllowThreads(__tstate); | |
26970 | if (PyErr_Occurred()) SWIG_fail; | |
26971 | } | |
02a34c4c | 26972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26973 | return resultobj; |
26974 | fail: | |
26975 | return NULL; | |
26976 | } | |
26977 | ||
26978 | ||
2f4c0a16 | 26979 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26980 | PyObject *resultobj; |
26981 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26982 | wxWindow *result; | |
26983 | PyObject * obj0 = 0 ; | |
26984 | char *kwnames[] = { | |
26985 | (char *) "self", NULL | |
26986 | }; | |
26987 | ||
26988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26991 | { |
26992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26993 | result = (wxWindow *)(arg1)->GetWindow(); | |
26994 | ||
26995 | wxPyEndAllowThreads(__tstate); | |
26996 | if (PyErr_Occurred()) SWIG_fail; | |
26997 | } | |
26998 | { | |
26999 | resultobj = wxPyMake_wxObject(result); | |
27000 | } | |
27001 | return resultobj; | |
27002 | fail: | |
27003 | return NULL; | |
27004 | } | |
27005 | ||
27006 | ||
2f4c0a16 | 27007 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27008 | PyObject *resultobj; |
27009 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27011 | PyObject * obj0 = 0 ; | |
27012 | PyObject * obj1 = 0 ; | |
27013 | char *kwnames[] = { | |
27014 | (char *) "self",(char *) "window", NULL | |
27015 | }; | |
27016 | ||
27017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27022 | { |
27023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27024 | (arg1)->SetWindow(arg2); | |
27025 | ||
27026 | wxPyEndAllowThreads(__tstate); | |
27027 | if (PyErr_Occurred()) SWIG_fail; | |
27028 | } | |
27029 | Py_INCREF(Py_None); resultobj = Py_None; | |
27030 | return resultobj; | |
27031 | fail: | |
27032 | return NULL; | |
27033 | } | |
27034 | ||
27035 | ||
2f4c0a16 | 27036 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27037 | PyObject *resultobj; |
27038 | bool result; | |
27039 | char *kwnames[] = { | |
27040 | NULL | |
27041 | }; | |
27042 | ||
27043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
27044 | { | |
27045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27046 | result = (bool)wxValidator::IsSilent(); | |
27047 | ||
27048 | wxPyEndAllowThreads(__tstate); | |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
27050 | } | |
02a34c4c | 27051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27052 | return resultobj; |
27053 | fail: | |
27054 | return NULL; | |
27055 | } | |
27056 | ||
27057 | ||
2f4c0a16 | 27058 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 27059 | PyObject *resultobj; |
423f194a | 27060 | int arg1 = (int) True ; |
8edf1c75 | 27061 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27062 | char *kwnames[] = { |
27063 | (char *) "doIt", NULL | |
27064 | }; | |
27065 | ||
8edf1c75 RD |
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
27067 | if (obj0) { | |
2f4c0a16 RD |
27068 | arg1 = (int) SWIG_AsInt(obj0); |
27069 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27070 | } |
d14a1e28 RD |
27071 | { |
27072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27073 | wxValidator::SetBellOnError(arg1); | |
27074 | ||
27075 | wxPyEndAllowThreads(__tstate); | |
27076 | if (PyErr_Occurred()) SWIG_fail; | |
27077 | } | |
27078 | Py_INCREF(Py_None); resultobj = Py_None; | |
27079 | return resultobj; | |
27080 | fail: | |
27081 | return NULL; | |
27082 | } | |
27083 | ||
27084 | ||
2f4c0a16 | 27085 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27086 | PyObject *obj; |
27087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27088 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
27089 | Py_INCREF(obj); | |
27090 | return Py_BuildValue((char *)""); | |
27091 | } | |
2f4c0a16 | 27092 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27093 | PyObject *resultobj; |
27094 | wxPyValidator *result; | |
27095 | char *kwnames[] = { | |
27096 | NULL | |
27097 | }; | |
27098 | ||
27099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
27100 | { | |
27101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27102 | result = (wxPyValidator *)new wxPyValidator(); | |
27103 | ||
27104 | wxPyEndAllowThreads(__tstate); | |
27105 | if (PyErr_Occurred()) SWIG_fail; | |
27106 | } | |
2f4c0a16 | 27107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
27108 | return resultobj; |
27109 | fail: | |
27110 | return NULL; | |
27111 | } | |
27112 | ||
27113 | ||
2f4c0a16 | 27114 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27115 | PyObject *resultobj; |
27116 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
27117 | PyObject *arg2 = (PyObject *) 0 ; | |
27118 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 27119 | int arg4 = (int) True ; |
d14a1e28 RD |
27120 | PyObject * obj0 = 0 ; |
27121 | PyObject * obj1 = 0 ; | |
27122 | PyObject * obj2 = 0 ; | |
8edf1c75 | 27123 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27124 | char *kwnames[] = { |
27125 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
27126 | }; | |
27127 | ||
8edf1c75 | 27128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
27130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27131 | arg2 = obj1; |
27132 | arg3 = obj2; | |
8edf1c75 | 27133 | if (obj3) { |
2f4c0a16 RD |
27134 | arg4 = (int) SWIG_AsInt(obj3); |
27135 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27136 | } |
d14a1e28 RD |
27137 | { |
27138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27139 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
27140 | ||
27141 | wxPyEndAllowThreads(__tstate); | |
27142 | if (PyErr_Occurred()) SWIG_fail; | |
27143 | } | |
27144 | Py_INCREF(Py_None); resultobj = Py_None; | |
27145 | return resultobj; | |
27146 | fail: | |
27147 | return NULL; | |
27148 | } | |
27149 | ||
27150 | ||
2f4c0a16 | 27151 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27152 | PyObject *obj; |
27153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27154 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
27155 | Py_INCREF(obj); | |
27156 | return Py_BuildValue((char *)""); | |
27157 | } | |
8edf1c75 | 27158 | static int _wrap_DefaultValidator_set(PyObject *) { |
d14a1e28 RD |
27159 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
27160 | return 1; | |
27161 | } | |
27162 | ||
27163 | ||
27164 | static PyObject *_wrap_DefaultValidator_get() { | |
27165 | PyObject *pyobj; | |
27166 | ||
2f4c0a16 | 27167 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
27168 | return pyobj; |
27169 | } | |
27170 | ||
27171 | ||
2f4c0a16 | 27172 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27173 | PyObject *resultobj; |
27174 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27175 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27176 | long arg2 = (long) 0 ; | |
27177 | wxMenu *result; | |
423f194a | 27178 | bool temp1 = False ; |
d14a1e28 | 27179 | PyObject * obj0 = 0 ; |
8edf1c75 | 27180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27181 | char *kwnames[] = { |
27182 | (char *) "title",(char *) "style", NULL | |
27183 | }; | |
27184 | ||
8edf1c75 | 27185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
27186 | if (obj0) { |
27187 | { | |
27188 | arg1 = wxString_in_helper(obj0); | |
27189 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27190 | temp1 = True; |
d14a1e28 RD |
27191 | } |
27192 | } | |
8edf1c75 | 27193 | if (obj1) { |
2f4c0a16 RD |
27194 | arg2 = (long) SWIG_AsLong(obj1); |
27195 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27196 | } |
d14a1e28 RD |
27197 | { |
27198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27199 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
27200 | ||
27201 | wxPyEndAllowThreads(__tstate); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
27203 | } | |
27204 | { | |
27205 | resultobj = wxPyMake_wxObject(result); | |
27206 | } | |
27207 | { | |
27208 | if (temp1) | |
27209 | delete arg1; | |
27210 | } | |
27211 | return resultobj; | |
27212 | fail: | |
27213 | { | |
27214 | if (temp1) | |
27215 | delete arg1; | |
27216 | } | |
27217 | return NULL; | |
27218 | } | |
27219 | ||
27220 | ||
2f4c0a16 | 27221 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27222 | PyObject *resultobj; |
27223 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27224 | int arg2 ; | |
27225 | wxString *arg3 = 0 ; | |
27226 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27227 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27228 | int arg5 = (int) wxITEM_NORMAL ; | |
2dbef272 | 27229 | wxMenuItem *result; |
423f194a RD |
27230 | bool temp3 = False ; |
27231 | bool temp4 = False ; | |
d14a1e28 | 27232 | PyObject * obj0 = 0 ; |
8edf1c75 | 27233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27234 | PyObject * obj2 = 0 ; |
27235 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27236 | PyObject * obj4 = 0 ; |
d14a1e28 | 27237 | char *kwnames[] = { |
0f774bef | 27238 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27239 | }; |
27240 | ||
8edf1c75 | 27241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27244 | arg2 = (int) SWIG_AsInt(obj1); | |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27246 | { |
27247 | arg3 = wxString_in_helper(obj2); | |
27248 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27249 | temp3 = True; |
d14a1e28 RD |
27250 | } |
27251 | if (obj3) { | |
27252 | { | |
27253 | arg4 = wxString_in_helper(obj3); | |
27254 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27255 | temp4 = True; |
d14a1e28 RD |
27256 | } |
27257 | } | |
8edf1c75 | 27258 | if (obj4) { |
2f4c0a16 RD |
27259 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
27260 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27261 | } |
d14a1e28 RD |
27262 | { |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27264 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27265 | |
27266 | wxPyEndAllowThreads(__tstate); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | } | |
2dbef272 RD |
27269 | { |
27270 | resultobj = wxPyMake_wxObject(result); | |
27271 | } | |
d14a1e28 RD |
27272 | { |
27273 | if (temp3) | |
27274 | delete arg3; | |
27275 | } | |
27276 | { | |
27277 | if (temp4) | |
27278 | delete arg4; | |
27279 | } | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | { | |
27283 | if (temp3) | |
27284 | delete arg3; | |
27285 | } | |
27286 | { | |
27287 | if (temp4) | |
27288 | delete arg4; | |
27289 | } | |
27290 | return NULL; | |
27291 | } | |
27292 | ||
27293 | ||
2f4c0a16 | 27294 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27295 | PyObject *resultobj; |
27296 | wxMenu *arg1 = (wxMenu *) 0 ; | |
2dbef272 | 27297 | wxMenuItem *result; |
d14a1e28 RD |
27298 | PyObject * obj0 = 0 ; |
27299 | char *kwnames[] = { | |
27300 | (char *) "self", NULL | |
27301 | }; | |
27302 | ||
27303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27306 | { |
27307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27308 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27309 | |
27310 | wxPyEndAllowThreads(__tstate); | |
27311 | if (PyErr_Occurred()) SWIG_fail; | |
27312 | } | |
2dbef272 RD |
27313 | { |
27314 | resultobj = wxPyMake_wxObject(result); | |
27315 | } | |
d14a1e28 RD |
27316 | return resultobj; |
27317 | fail: | |
27318 | return NULL; | |
27319 | } | |
27320 | ||
27321 | ||
2f4c0a16 | 27322 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27323 | PyObject *resultobj; |
27324 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27325 | int arg2 ; | |
27326 | wxString *arg3 = 0 ; | |
27327 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27328 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2dbef272 | 27329 | wxMenuItem *result; |
423f194a RD |
27330 | bool temp3 = False ; |
27331 | bool temp4 = False ; | |
d14a1e28 | 27332 | PyObject * obj0 = 0 ; |
8edf1c75 | 27333 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27334 | PyObject * obj2 = 0 ; |
27335 | PyObject * obj3 = 0 ; | |
27336 | char *kwnames[] = { | |
0f774bef | 27337 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27338 | }; |
27339 | ||
8edf1c75 | 27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | arg2 = (int) SWIG_AsInt(obj1); | |
27344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27345 | { |
27346 | arg3 = wxString_in_helper(obj2); | |
27347 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27348 | temp3 = True; |
d14a1e28 RD |
27349 | } |
27350 | if (obj3) { | |
27351 | { | |
27352 | arg4 = wxString_in_helper(obj3); | |
27353 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27354 | temp4 = True; |
d14a1e28 RD |
27355 | } |
27356 | } | |
27357 | { | |
27358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27359 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27360 | |
27361 | wxPyEndAllowThreads(__tstate); | |
27362 | if (PyErr_Occurred()) SWIG_fail; | |
27363 | } | |
2dbef272 RD |
27364 | { |
27365 | resultobj = wxPyMake_wxObject(result); | |
27366 | } | |
d14a1e28 RD |
27367 | { |
27368 | if (temp3) | |
27369 | delete arg3; | |
27370 | } | |
27371 | { | |
27372 | if (temp4) | |
27373 | delete arg4; | |
27374 | } | |
27375 | return resultobj; | |
27376 | fail: | |
27377 | { | |
27378 | if (temp3) | |
27379 | delete arg3; | |
27380 | } | |
27381 | { | |
27382 | if (temp4) | |
27383 | delete arg4; | |
27384 | } | |
27385 | return NULL; | |
27386 | } | |
27387 | ||
27388 | ||
2f4c0a16 | 27389 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27390 | PyObject *resultobj; |
27391 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27392 | int arg2 ; | |
27393 | wxString *arg3 = 0 ; | |
27394 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27395 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2dbef272 | 27396 | wxMenuItem *result; |
423f194a RD |
27397 | bool temp3 = False ; |
27398 | bool temp4 = False ; | |
d14a1e28 | 27399 | PyObject * obj0 = 0 ; |
8edf1c75 | 27400 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27401 | PyObject * obj2 = 0 ; |
27402 | PyObject * obj3 = 0 ; | |
27403 | char *kwnames[] = { | |
0f774bef | 27404 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27405 | }; |
27406 | ||
8edf1c75 | 27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27410 | arg2 = (int) SWIG_AsInt(obj1); | |
27411 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27412 | { |
27413 | arg3 = wxString_in_helper(obj2); | |
27414 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27415 | temp3 = True; |
d14a1e28 RD |
27416 | } |
27417 | if (obj3) { | |
27418 | { | |
27419 | arg4 = wxString_in_helper(obj3); | |
27420 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27421 | temp4 = True; |
d14a1e28 RD |
27422 | } |
27423 | } | |
27424 | { | |
27425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27426 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27427 | |
27428 | wxPyEndAllowThreads(__tstate); | |
27429 | if (PyErr_Occurred()) SWIG_fail; | |
27430 | } | |
2dbef272 RD |
27431 | { |
27432 | resultobj = wxPyMake_wxObject(result); | |
27433 | } | |
d14a1e28 RD |
27434 | { |
27435 | if (temp3) | |
27436 | delete arg3; | |
27437 | } | |
27438 | { | |
27439 | if (temp4) | |
27440 | delete arg4; | |
27441 | } | |
27442 | return resultobj; | |
27443 | fail: | |
27444 | { | |
27445 | if (temp3) | |
27446 | delete arg3; | |
27447 | } | |
27448 | { | |
27449 | if (temp4) | |
27450 | delete arg4; | |
27451 | } | |
27452 | return NULL; | |
27453 | } | |
27454 | ||
27455 | ||
2f4c0a16 | 27456 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27457 | PyObject *resultobj; |
27458 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27459 | int arg2 ; | |
27460 | wxString *arg3 = 0 ; | |
27461 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27462 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27463 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2dbef272 | 27464 | wxMenuItem *result; |
423f194a RD |
27465 | bool temp3 = False ; |
27466 | bool temp5 = False ; | |
d14a1e28 | 27467 | PyObject * obj0 = 0 ; |
8edf1c75 | 27468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27469 | PyObject * obj2 = 0 ; |
27470 | PyObject * obj3 = 0 ; | |
27471 | PyObject * obj4 = 0 ; | |
27472 | char *kwnames[] = { | |
0f774bef | 27473 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27474 | }; |
27475 | ||
8edf1c75 | 27476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27479 | arg2 = (int) SWIG_AsInt(obj1); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27481 | { |
27482 | arg3 = wxString_in_helper(obj2); | |
27483 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27484 | temp3 = True; |
d14a1e28 | 27485 | } |
2f4c0a16 RD |
27486 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
27487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27488 | if (obj4) { |
27489 | { | |
27490 | arg5 = wxString_in_helper(obj4); | |
27491 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27492 | temp5 = True; |
d14a1e28 RD |
27493 | } |
27494 | } | |
27495 | { | |
27496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27497 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27498 | |
27499 | wxPyEndAllowThreads(__tstate); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
2dbef272 RD |
27502 | { |
27503 | resultobj = wxPyMake_wxObject(result); | |
27504 | } | |
d14a1e28 RD |
27505 | { |
27506 | if (temp3) | |
27507 | delete arg3; | |
27508 | } | |
27509 | { | |
27510 | if (temp5) | |
27511 | delete arg5; | |
27512 | } | |
27513 | return resultobj; | |
27514 | fail: | |
27515 | { | |
27516 | if (temp3) | |
27517 | delete arg3; | |
27518 | } | |
27519 | { | |
27520 | if (temp5) | |
27521 | delete arg5; | |
27522 | } | |
27523 | return NULL; | |
27524 | } | |
27525 | ||
27526 | ||
2f4c0a16 | 27527 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27528 | PyObject *resultobj; |
27529 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27530 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
2dbef272 | 27531 | wxMenuItem *result; |
d14a1e28 RD |
27532 | PyObject * obj0 = 0 ; |
27533 | PyObject * obj1 = 0 ; | |
27534 | char *kwnames[] = { | |
27535 | (char *) "self",(char *) "item", NULL | |
27536 | }; | |
27537 | ||
27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
27542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27543 | { |
27544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27545 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
27546 | |
27547 | wxPyEndAllowThreads(__tstate); | |
27548 | if (PyErr_Occurred()) SWIG_fail; | |
27549 | } | |
2dbef272 RD |
27550 | { |
27551 | resultobj = wxPyMake_wxObject(result); | |
27552 | } | |
d14a1e28 RD |
27553 | return resultobj; |
27554 | fail: | |
27555 | return NULL; | |
27556 | } | |
27557 | ||
27558 | ||
2f4c0a16 | 27559 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27560 | PyObject *resultobj; |
27561 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27562 | PyObject * obj0 = 0 ; | |
27563 | char *kwnames[] = { | |
27564 | (char *) "self", NULL | |
27565 | }; | |
27566 | ||
27567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27570 | { |
27571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27572 | (arg1)->Break(); | |
27573 | ||
27574 | wxPyEndAllowThreads(__tstate); | |
27575 | if (PyErr_Occurred()) SWIG_fail; | |
27576 | } | |
27577 | Py_INCREF(Py_None); resultobj = Py_None; | |
27578 | return resultobj; | |
27579 | fail: | |
27580 | return NULL; | |
27581 | } | |
27582 | ||
27583 | ||
2f4c0a16 | 27584 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27585 | PyObject *resultobj; |
27586 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27587 | size_t arg2 ; | |
27588 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
2dbef272 | 27589 | wxMenuItem *result; |
d14a1e28 RD |
27590 | PyObject * obj0 = 0 ; |
27591 | PyObject * obj1 = 0 ; | |
27592 | PyObject * obj2 = 0 ; | |
27593 | char *kwnames[] = { | |
27594 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
27595 | }; | |
27596 | ||
27597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27600 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27601 | if (PyErr_Occurred()) SWIG_fail; | |
27602 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
27603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27604 | { |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27606 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
27607 | |
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
2dbef272 RD |
27611 | { |
27612 | resultobj = wxPyMake_wxObject(result); | |
27613 | } | |
d14a1e28 RD |
27614 | return resultobj; |
27615 | fail: | |
27616 | return NULL; | |
27617 | } | |
27618 | ||
27619 | ||
2f4c0a16 | 27620 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27621 | PyObject *resultobj; |
27622 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27623 | size_t arg2 ; | |
27624 | int arg3 ; | |
27625 | wxString *arg4 = 0 ; | |
27626 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27627 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
27628 | int arg6 = (int) wxITEM_NORMAL ; | |
2dbef272 | 27629 | wxMenuItem *result; |
423f194a RD |
27630 | bool temp4 = False ; |
27631 | bool temp5 = False ; | |
d14a1e28 RD |
27632 | PyObject * obj0 = 0 ; |
27633 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27634 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27635 | PyObject * obj3 = 0 ; |
27636 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27637 | PyObject * obj5 = 0 ; |
d14a1e28 | 27638 | char *kwnames[] = { |
0f774bef | 27639 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27640 | }; |
27641 | ||
8edf1c75 | 27642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27645 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27646 | if (PyErr_Occurred()) SWIG_fail; | |
27647 | arg3 = (int) SWIG_AsInt(obj2); | |
27648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27649 | { |
27650 | arg4 = wxString_in_helper(obj3); | |
27651 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27652 | temp4 = True; |
d14a1e28 RD |
27653 | } |
27654 | if (obj4) { | |
27655 | { | |
27656 | arg5 = wxString_in_helper(obj4); | |
27657 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27658 | temp5 = True; |
d14a1e28 RD |
27659 | } |
27660 | } | |
8edf1c75 | 27661 | if (obj5) { |
2f4c0a16 RD |
27662 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27664 | } |
d14a1e28 RD |
27665 | { |
27666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27667 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
27668 | |
27669 | wxPyEndAllowThreads(__tstate); | |
27670 | if (PyErr_Occurred()) SWIG_fail; | |
27671 | } | |
2dbef272 RD |
27672 | { |
27673 | resultobj = wxPyMake_wxObject(result); | |
27674 | } | |
d14a1e28 RD |
27675 | { |
27676 | if (temp4) | |
27677 | delete arg4; | |
27678 | } | |
27679 | { | |
27680 | if (temp5) | |
27681 | delete arg5; | |
27682 | } | |
27683 | return resultobj; | |
27684 | fail: | |
27685 | { | |
27686 | if (temp4) | |
27687 | delete arg4; | |
27688 | } | |
27689 | { | |
27690 | if (temp5) | |
27691 | delete arg5; | |
27692 | } | |
27693 | return NULL; | |
27694 | } | |
27695 | ||
27696 | ||
2f4c0a16 | 27697 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27698 | PyObject *resultobj; |
27699 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27700 | size_t arg2 ; | |
2dbef272 | 27701 | wxMenuItem *result; |
d14a1e28 RD |
27702 | PyObject * obj0 = 0 ; |
27703 | PyObject * obj1 = 0 ; | |
27704 | char *kwnames[] = { | |
27705 | (char *) "self",(char *) "pos", NULL | |
27706 | }; | |
27707 | ||
27708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27711 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27713 | { |
27714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27715 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
27716 | |
27717 | wxPyEndAllowThreads(__tstate); | |
27718 | if (PyErr_Occurred()) SWIG_fail; | |
27719 | } | |
2dbef272 RD |
27720 | { |
27721 | resultobj = wxPyMake_wxObject(result); | |
27722 | } | |
d14a1e28 RD |
27723 | return resultobj; |
27724 | fail: | |
27725 | return NULL; | |
27726 | } | |
27727 | ||
27728 | ||
2f4c0a16 | 27729 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27730 | PyObject *resultobj; |
27731 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27732 | size_t arg2 ; | |
27733 | int arg3 ; | |
27734 | wxString *arg4 = 0 ; | |
27735 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27736 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2dbef272 | 27737 | wxMenuItem *result; |
423f194a RD |
27738 | bool temp4 = False ; |
27739 | bool temp5 = False ; | |
d14a1e28 RD |
27740 | PyObject * obj0 = 0 ; |
27741 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27742 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27743 | PyObject * obj3 = 0 ; |
27744 | PyObject * obj4 = 0 ; | |
27745 | char *kwnames[] = { | |
0f774bef | 27746 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27747 | }; |
27748 | ||
8edf1c75 | 27749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27752 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27753 | if (PyErr_Occurred()) SWIG_fail; | |
27754 | arg3 = (int) SWIG_AsInt(obj2); | |
27755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27756 | { |
27757 | arg4 = wxString_in_helper(obj3); | |
27758 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27759 | temp4 = True; |
d14a1e28 RD |
27760 | } |
27761 | if (obj4) { | |
27762 | { | |
27763 | arg5 = wxString_in_helper(obj4); | |
27764 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27765 | temp5 = True; |
d14a1e28 RD |
27766 | } |
27767 | } | |
27768 | { | |
27769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27770 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27771 | |
27772 | wxPyEndAllowThreads(__tstate); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
27774 | } | |
2dbef272 RD |
27775 | { |
27776 | resultobj = wxPyMake_wxObject(result); | |
27777 | } | |
d14a1e28 RD |
27778 | { |
27779 | if (temp4) | |
27780 | delete arg4; | |
27781 | } | |
27782 | { | |
27783 | if (temp5) | |
27784 | delete arg5; | |
27785 | } | |
27786 | return resultobj; | |
27787 | fail: | |
27788 | { | |
27789 | if (temp4) | |
27790 | delete arg4; | |
27791 | } | |
27792 | { | |
27793 | if (temp5) | |
27794 | delete arg5; | |
27795 | } | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
2f4c0a16 | 27800 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27801 | PyObject *resultobj; |
27802 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27803 | size_t arg2 ; | |
27804 | int arg3 ; | |
27805 | wxString *arg4 = 0 ; | |
27806 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27807 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2dbef272 | 27808 | wxMenuItem *result; |
423f194a RD |
27809 | bool temp4 = False ; |
27810 | bool temp5 = False ; | |
d14a1e28 RD |
27811 | PyObject * obj0 = 0 ; |
27812 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27813 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27814 | PyObject * obj3 = 0 ; |
27815 | PyObject * obj4 = 0 ; | |
27816 | char *kwnames[] = { | |
0f774bef | 27817 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27818 | }; |
27819 | ||
8edf1c75 | 27820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27823 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27824 | if (PyErr_Occurred()) SWIG_fail; | |
27825 | arg3 = (int) SWIG_AsInt(obj2); | |
27826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27827 | { |
27828 | arg4 = wxString_in_helper(obj3); | |
27829 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27830 | temp4 = True; |
d14a1e28 RD |
27831 | } |
27832 | if (obj4) { | |
27833 | { | |
27834 | arg5 = wxString_in_helper(obj4); | |
27835 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27836 | temp5 = True; |
d14a1e28 RD |
27837 | } |
27838 | } | |
27839 | { | |
27840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27841 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27842 | |
27843 | wxPyEndAllowThreads(__tstate); | |
27844 | if (PyErr_Occurred()) SWIG_fail; | |
27845 | } | |
2dbef272 RD |
27846 | { |
27847 | resultobj = wxPyMake_wxObject(result); | |
27848 | } | |
d14a1e28 RD |
27849 | { |
27850 | if (temp4) | |
27851 | delete arg4; | |
27852 | } | |
27853 | { | |
27854 | if (temp5) | |
27855 | delete arg5; | |
27856 | } | |
27857 | return resultobj; | |
27858 | fail: | |
27859 | { | |
27860 | if (temp4) | |
27861 | delete arg4; | |
27862 | } | |
27863 | { | |
27864 | if (temp5) | |
27865 | delete arg5; | |
27866 | } | |
27867 | return NULL; | |
27868 | } | |
27869 | ||
27870 | ||
2f4c0a16 | 27871 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27872 | PyObject *resultobj; |
27873 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27874 | size_t arg2 ; | |
27875 | int arg3 ; | |
27876 | wxString *arg4 = 0 ; | |
27877 | wxMenu *arg5 = (wxMenu *) 0 ; | |
27878 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
27879 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
2dbef272 | 27880 | wxMenuItem *result; |
423f194a RD |
27881 | bool temp4 = False ; |
27882 | bool temp6 = False ; | |
d14a1e28 RD |
27883 | PyObject * obj0 = 0 ; |
27884 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27885 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27886 | PyObject * obj3 = 0 ; |
27887 | PyObject * obj4 = 0 ; | |
27888 | PyObject * obj5 = 0 ; | |
27889 | char *kwnames[] = { | |
0f774bef | 27890 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27891 | }; |
27892 | ||
8edf1c75 | 27893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27896 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | arg3 = (int) SWIG_AsInt(obj2); | |
27899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27900 | { |
27901 | arg4 = wxString_in_helper(obj3); | |
27902 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27903 | temp4 = True; |
d14a1e28 | 27904 | } |
2f4c0a16 RD |
27905 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
27906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27907 | if (obj5) { |
27908 | { | |
27909 | arg6 = wxString_in_helper(obj5); | |
27910 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 27911 | temp6 = True; |
d14a1e28 RD |
27912 | } |
27913 | } | |
27914 | { | |
27915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27916 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
27917 | |
27918 | wxPyEndAllowThreads(__tstate); | |
27919 | if (PyErr_Occurred()) SWIG_fail; | |
27920 | } | |
2dbef272 RD |
27921 | { |
27922 | resultobj = wxPyMake_wxObject(result); | |
27923 | } | |
d14a1e28 RD |
27924 | { |
27925 | if (temp4) | |
27926 | delete arg4; | |
27927 | } | |
27928 | { | |
27929 | if (temp6) | |
27930 | delete arg6; | |
27931 | } | |
27932 | return resultobj; | |
27933 | fail: | |
27934 | { | |
27935 | if (temp4) | |
27936 | delete arg4; | |
27937 | } | |
27938 | { | |
27939 | if (temp6) | |
27940 | delete arg6; | |
27941 | } | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
2f4c0a16 | 27946 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27947 | PyObject *resultobj; |
27948 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27949 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
2dbef272 | 27950 | wxMenuItem *result; |
d14a1e28 RD |
27951 | PyObject * obj0 = 0 ; |
27952 | PyObject * obj1 = 0 ; | |
27953 | char *kwnames[] = { | |
27954 | (char *) "self",(char *) "item", NULL | |
27955 | }; | |
27956 | ||
27957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
27961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27962 | { |
27963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 27964 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
27965 | |
27966 | wxPyEndAllowThreads(__tstate); | |
27967 | if (PyErr_Occurred()) SWIG_fail; | |
27968 | } | |
2dbef272 RD |
27969 | { |
27970 | resultobj = wxPyMake_wxObject(result); | |
27971 | } | |
d14a1e28 RD |
27972 | return resultobj; |
27973 | fail: | |
27974 | return NULL; | |
27975 | } | |
27976 | ||
27977 | ||
2f4c0a16 | 27978 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27979 | PyObject *resultobj; |
27980 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27981 | int arg2 ; | |
27982 | wxString *arg3 = 0 ; | |
27983 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27984 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27985 | int arg5 = (int) wxITEM_NORMAL ; | |
2dbef272 | 27986 | wxMenuItem *result; |
423f194a RD |
27987 | bool temp3 = False ; |
27988 | bool temp4 = False ; | |
d14a1e28 | 27989 | PyObject * obj0 = 0 ; |
8edf1c75 | 27990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27991 | PyObject * obj2 = 0 ; |
27992 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27993 | PyObject * obj4 = 0 ; |
d14a1e28 | 27994 | char *kwnames[] = { |
0f774bef | 27995 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27996 | }; |
27997 | ||
8edf1c75 | 27998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28001 | arg2 = (int) SWIG_AsInt(obj1); | |
28002 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28003 | { |
28004 | arg3 = wxString_in_helper(obj2); | |
28005 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28006 | temp3 = True; |
d14a1e28 RD |
28007 | } |
28008 | if (obj3) { | |
28009 | { | |
28010 | arg4 = wxString_in_helper(obj3); | |
28011 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28012 | temp4 = True; |
d14a1e28 RD |
28013 | } |
28014 | } | |
8edf1c75 | 28015 | if (obj4) { |
2f4c0a16 RD |
28016 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28017 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28018 | } |
d14a1e28 RD |
28019 | { |
28020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 28021 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28022 | |
28023 | wxPyEndAllowThreads(__tstate); | |
28024 | if (PyErr_Occurred()) SWIG_fail; | |
28025 | } | |
2dbef272 RD |
28026 | { |
28027 | resultobj = wxPyMake_wxObject(result); | |
28028 | } | |
d14a1e28 RD |
28029 | { |
28030 | if (temp3) | |
28031 | delete arg3; | |
28032 | } | |
28033 | { | |
28034 | if (temp4) | |
28035 | delete arg4; | |
28036 | } | |
28037 | return resultobj; | |
28038 | fail: | |
28039 | { | |
28040 | if (temp3) | |
28041 | delete arg3; | |
28042 | } | |
28043 | { | |
28044 | if (temp4) | |
28045 | delete arg4; | |
28046 | } | |
28047 | return NULL; | |
28048 | } | |
28049 | ||
28050 | ||
2f4c0a16 | 28051 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28052 | PyObject *resultobj; |
28053 | wxMenu *arg1 = (wxMenu *) 0 ; | |
2dbef272 | 28054 | wxMenuItem *result; |
d14a1e28 RD |
28055 | PyObject * obj0 = 0 ; |
28056 | char *kwnames[] = { | |
28057 | (char *) "self", NULL | |
28058 | }; | |
28059 | ||
28060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28063 | { |
28064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 28065 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
28066 | |
28067 | wxPyEndAllowThreads(__tstate); | |
28068 | if (PyErr_Occurred()) SWIG_fail; | |
28069 | } | |
2dbef272 RD |
28070 | { |
28071 | resultobj = wxPyMake_wxObject(result); | |
28072 | } | |
d14a1e28 RD |
28073 | return resultobj; |
28074 | fail: | |
28075 | return NULL; | |
28076 | } | |
28077 | ||
28078 | ||
2f4c0a16 | 28079 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28080 | PyObject *resultobj; |
28081 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28082 | int arg2 ; | |
28083 | wxString *arg3 = 0 ; | |
28084 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28085 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2dbef272 | 28086 | wxMenuItem *result; |
423f194a RD |
28087 | bool temp3 = False ; |
28088 | bool temp4 = False ; | |
d14a1e28 | 28089 | PyObject * obj0 = 0 ; |
8edf1c75 | 28090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28091 | PyObject * obj2 = 0 ; |
28092 | PyObject * obj3 = 0 ; | |
28093 | char *kwnames[] = { | |
0f774bef | 28094 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28095 | }; |
28096 | ||
8edf1c75 | 28097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28100 | arg2 = (int) SWIG_AsInt(obj1); | |
28101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28102 | { |
28103 | arg3 = wxString_in_helper(obj2); | |
28104 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28105 | temp3 = True; |
d14a1e28 RD |
28106 | } |
28107 | if (obj3) { | |
28108 | { | |
28109 | arg4 = wxString_in_helper(obj3); | |
28110 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28111 | temp4 = True; |
d14a1e28 RD |
28112 | } |
28113 | } | |
28114 | { | |
28115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 28116 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28117 | |
28118 | wxPyEndAllowThreads(__tstate); | |
28119 | if (PyErr_Occurred()) SWIG_fail; | |
28120 | } | |
2dbef272 RD |
28121 | { |
28122 | resultobj = wxPyMake_wxObject(result); | |
28123 | } | |
d14a1e28 RD |
28124 | { |
28125 | if (temp3) | |
28126 | delete arg3; | |
28127 | } | |
28128 | { | |
28129 | if (temp4) | |
28130 | delete arg4; | |
28131 | } | |
28132 | return resultobj; | |
28133 | fail: | |
28134 | { | |
28135 | if (temp3) | |
28136 | delete arg3; | |
28137 | } | |
28138 | { | |
28139 | if (temp4) | |
28140 | delete arg4; | |
28141 | } | |
28142 | return NULL; | |
28143 | } | |
28144 | ||
28145 | ||
2f4c0a16 | 28146 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28147 | PyObject *resultobj; |
28148 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28149 | int arg2 ; | |
28150 | wxString *arg3 = 0 ; | |
28151 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28152 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2dbef272 | 28153 | wxMenuItem *result; |
423f194a RD |
28154 | bool temp3 = False ; |
28155 | bool temp4 = False ; | |
d14a1e28 | 28156 | PyObject * obj0 = 0 ; |
8edf1c75 | 28157 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28158 | PyObject * obj2 = 0 ; |
28159 | PyObject * obj3 = 0 ; | |
28160 | char *kwnames[] = { | |
0f774bef | 28161 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28162 | }; |
28163 | ||
8edf1c75 | 28164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28167 | arg2 = (int) SWIG_AsInt(obj1); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28169 | { |
28170 | arg3 = wxString_in_helper(obj2); | |
28171 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28172 | temp3 = True; |
d14a1e28 RD |
28173 | } |
28174 | if (obj3) { | |
28175 | { | |
28176 | arg4 = wxString_in_helper(obj3); | |
28177 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28178 | temp4 = True; |
d14a1e28 RD |
28179 | } |
28180 | } | |
28181 | { | |
28182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 28183 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28184 | |
28185 | wxPyEndAllowThreads(__tstate); | |
28186 | if (PyErr_Occurred()) SWIG_fail; | |
28187 | } | |
2dbef272 RD |
28188 | { |
28189 | resultobj = wxPyMake_wxObject(result); | |
28190 | } | |
d14a1e28 RD |
28191 | { |
28192 | if (temp3) | |
28193 | delete arg3; | |
28194 | } | |
28195 | { | |
28196 | if (temp4) | |
28197 | delete arg4; | |
28198 | } | |
28199 | return resultobj; | |
28200 | fail: | |
28201 | { | |
28202 | if (temp3) | |
28203 | delete arg3; | |
28204 | } | |
28205 | { | |
28206 | if (temp4) | |
28207 | delete arg4; | |
28208 | } | |
28209 | return NULL; | |
28210 | } | |
28211 | ||
28212 | ||
2f4c0a16 | 28213 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28214 | PyObject *resultobj; |
28215 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28216 | int arg2 ; | |
28217 | wxString *arg3 = 0 ; | |
28218 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28219 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28220 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2dbef272 | 28221 | wxMenuItem *result; |
423f194a RD |
28222 | bool temp3 = False ; |
28223 | bool temp5 = False ; | |
d14a1e28 | 28224 | PyObject * obj0 = 0 ; |
8edf1c75 | 28225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28226 | PyObject * obj2 = 0 ; |
28227 | PyObject * obj3 = 0 ; | |
28228 | PyObject * obj4 = 0 ; | |
28229 | char *kwnames[] = { | |
0f774bef | 28230 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28231 | }; |
28232 | ||
8edf1c75 | 28233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28236 | arg2 = (int) SWIG_AsInt(obj1); | |
28237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28238 | { |
28239 | arg3 = wxString_in_helper(obj2); | |
28240 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28241 | temp3 = True; |
d14a1e28 | 28242 | } |
2f4c0a16 RD |
28243 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28245 | if (obj4) { |
28246 | { | |
28247 | arg5 = wxString_in_helper(obj4); | |
28248 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28249 | temp5 = True; |
d14a1e28 RD |
28250 | } |
28251 | } | |
28252 | { | |
28253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2dbef272 | 28254 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28255 | |
28256 | wxPyEndAllowThreads(__tstate); | |
28257 | if (PyErr_Occurred()) SWIG_fail; | |
28258 | } | |
2dbef272 RD |
28259 | { |
28260 | resultobj = wxPyMake_wxObject(result); | |
28261 | } | |
d14a1e28 RD |
28262 | { |
28263 | if (temp3) | |
28264 | delete arg3; | |
28265 | } | |
28266 | { | |
28267 | if (temp5) | |
28268 | delete arg5; | |
28269 | } | |
28270 | return resultobj; | |
28271 | fail: | |
28272 | { | |
28273 | if (temp3) | |
28274 | delete arg3; | |
28275 | } | |
28276 | { | |
28277 | if (temp5) | |
28278 | delete arg5; | |
28279 | } | |
28280 | return NULL; | |
28281 | } | |
28282 | ||
28283 | ||
2f4c0a16 | 28284 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28285 | PyObject *resultobj; |
28286 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28287 | int arg2 ; | |
28288 | wxMenuItem *result; | |
28289 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28290 | PyObject * obj1 = 0 ; |
d14a1e28 | 28291 | char *kwnames[] = { |
0f774bef | 28292 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28293 | }; |
28294 | ||
8edf1c75 | 28295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28298 | arg2 = (int) SWIG_AsInt(obj1); | |
28299 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28300 | { |
28301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28302 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28303 | ||
28304 | wxPyEndAllowThreads(__tstate); | |
28305 | if (PyErr_Occurred()) SWIG_fail; | |
28306 | } | |
28307 | { | |
28308 | resultobj = wxPyMake_wxObject(result); | |
28309 | } | |
28310 | return resultobj; | |
28311 | fail: | |
28312 | return NULL; | |
28313 | } | |
28314 | ||
28315 | ||
2f4c0a16 | 28316 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28317 | PyObject *resultobj; |
28318 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28319 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28320 | wxMenuItem *result; | |
28321 | PyObject * obj0 = 0 ; | |
28322 | PyObject * obj1 = 0 ; | |
28323 | char *kwnames[] = { | |
28324 | (char *) "self",(char *) "item", NULL | |
28325 | }; | |
28326 | ||
28327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28332 | { |
28333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28334 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28335 | ||
28336 | wxPyEndAllowThreads(__tstate); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
28338 | } | |
28339 | { | |
28340 | resultobj = wxPyMake_wxObject(result); | |
28341 | } | |
28342 | return resultobj; | |
28343 | fail: | |
28344 | return NULL; | |
28345 | } | |
28346 | ||
28347 | ||
2f4c0a16 | 28348 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28349 | PyObject *resultobj; |
28350 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28351 | int arg2 ; | |
28352 | bool result; | |
28353 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28354 | PyObject * obj1 = 0 ; |
d14a1e28 | 28355 | char *kwnames[] = { |
0f774bef | 28356 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28357 | }; |
28358 | ||
8edf1c75 | 28359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28362 | arg2 = (int) SWIG_AsInt(obj1); | |
28363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28364 | { |
28365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28366 | result = (bool)(arg1)->Delete(arg2); | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
02a34c4c | 28371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28372 | return resultobj; |
28373 | fail: | |
28374 | return NULL; | |
28375 | } | |
28376 | ||
28377 | ||
2f4c0a16 | 28378 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28379 | PyObject *resultobj; |
28380 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28381 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28382 | bool result; | |
28383 | PyObject * obj0 = 0 ; | |
28384 | PyObject * obj1 = 0 ; | |
28385 | char *kwnames[] = { | |
28386 | (char *) "self",(char *) "item", NULL | |
28387 | }; | |
28388 | ||
28389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28394 | { |
28395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28396 | result = (bool)(arg1)->Delete(arg2); | |
28397 | ||
28398 | wxPyEndAllowThreads(__tstate); | |
28399 | if (PyErr_Occurred()) SWIG_fail; | |
28400 | } | |
02a34c4c | 28401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28402 | return resultobj; |
28403 | fail: | |
28404 | return NULL; | |
28405 | } | |
28406 | ||
28407 | ||
2f4c0a16 | 28408 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28409 | PyObject *resultobj; |
28410 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28411 | PyObject * obj0 = 0 ; | |
28412 | char *kwnames[] = { | |
28413 | (char *) "self", NULL | |
28414 | }; | |
28415 | ||
28416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28419 | { |
28420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28421 | wxMenu_Destroy(arg1); | |
28422 | ||
28423 | wxPyEndAllowThreads(__tstate); | |
28424 | if (PyErr_Occurred()) SWIG_fail; | |
28425 | } | |
28426 | Py_INCREF(Py_None); resultobj = Py_None; | |
28427 | return resultobj; | |
28428 | fail: | |
28429 | return NULL; | |
28430 | } | |
28431 | ||
28432 | ||
2f4c0a16 | 28433 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28434 | PyObject *resultobj; |
28435 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28436 | int arg2 ; | |
28437 | bool result; | |
28438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28439 | PyObject * obj1 = 0 ; |
d14a1e28 | 28440 | char *kwnames[] = { |
0f774bef | 28441 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28442 | }; |
28443 | ||
8edf1c75 | 28444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28447 | arg2 = (int) SWIG_AsInt(obj1); | |
28448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28449 | { |
28450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28451 | result = (bool)(arg1)->Destroy(arg2); | |
28452 | ||
28453 | wxPyEndAllowThreads(__tstate); | |
28454 | if (PyErr_Occurred()) SWIG_fail; | |
28455 | } | |
02a34c4c | 28456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28457 | return resultobj; |
28458 | fail: | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
2f4c0a16 | 28463 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28464 | PyObject *resultobj; |
28465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28466 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28467 | bool result; | |
28468 | PyObject * obj0 = 0 ; | |
28469 | PyObject * obj1 = 0 ; | |
28470 | char *kwnames[] = { | |
28471 | (char *) "self",(char *) "item", NULL | |
28472 | }; | |
28473 | ||
28474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28479 | { |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | result = (bool)(arg1)->Destroy(arg2); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
02a34c4c | 28486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28487 | return resultobj; |
28488 | fail: | |
28489 | return NULL; | |
28490 | } | |
28491 | ||
28492 | ||
2f4c0a16 | 28493 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28494 | PyObject *resultobj; |
28495 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28496 | size_t result; | |
28497 | PyObject * obj0 = 0 ; | |
28498 | char *kwnames[] = { | |
28499 | (char *) "self", NULL | |
28500 | }; | |
28501 | ||
28502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28505 | { |
28506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28507 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28508 | ||
28509 | wxPyEndAllowThreads(__tstate); | |
28510 | if (PyErr_Occurred()) SWIG_fail; | |
28511 | } | |
2f4c0a16 | 28512 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
28513 | return resultobj; |
28514 | fail: | |
28515 | return NULL; | |
28516 | } | |
28517 | ||
28518 | ||
2f4c0a16 | 28519 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28520 | PyObject *resultobj; |
28521 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28522 | PyObject *result; | |
28523 | PyObject * obj0 = 0 ; | |
28524 | char *kwnames[] = { | |
28525 | (char *) "self", NULL | |
28526 | }; | |
28527 | ||
28528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28531 | { |
28532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28533 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
28534 | ||
28535 | wxPyEndAllowThreads(__tstate); | |
28536 | if (PyErr_Occurred()) SWIG_fail; | |
28537 | } | |
28538 | resultobj = result; | |
28539 | return resultobj; | |
28540 | fail: | |
28541 | return NULL; | |
28542 | } | |
28543 | ||
28544 | ||
2f4c0a16 | 28545 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28546 | PyObject *resultobj; |
28547 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28548 | wxString *arg2 = 0 ; | |
28549 | int result; | |
423f194a | 28550 | bool temp2 = False ; |
d14a1e28 RD |
28551 | PyObject * obj0 = 0 ; |
28552 | PyObject * obj1 = 0 ; | |
28553 | char *kwnames[] = { | |
28554 | (char *) "self",(char *) "item", NULL | |
28555 | }; | |
28556 | ||
28557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28560 | { |
28561 | arg2 = wxString_in_helper(obj1); | |
28562 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28563 | temp2 = True; |
d14a1e28 RD |
28564 | } |
28565 | { | |
28566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28567 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
28568 | ||
28569 | wxPyEndAllowThreads(__tstate); | |
28570 | if (PyErr_Occurred()) SWIG_fail; | |
28571 | } | |
2f4c0a16 | 28572 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28573 | { |
28574 | if (temp2) | |
28575 | delete arg2; | |
28576 | } | |
28577 | return resultobj; | |
28578 | fail: | |
28579 | { | |
28580 | if (temp2) | |
28581 | delete arg2; | |
28582 | } | |
28583 | return NULL; | |
28584 | } | |
28585 | ||
28586 | ||
2f4c0a16 | 28587 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28588 | PyObject *resultobj; |
28589 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28590 | int arg2 ; | |
28591 | wxMenuItem *result; | |
28592 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28593 | PyObject * obj1 = 0 ; |
d14a1e28 | 28594 | char *kwnames[] = { |
0f774bef | 28595 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28596 | }; |
28597 | ||
8edf1c75 | 28598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28601 | arg2 = (int) SWIG_AsInt(obj1); | |
28602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28603 | { |
28604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28605 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
28606 | ||
28607 | wxPyEndAllowThreads(__tstate); | |
28608 | if (PyErr_Occurred()) SWIG_fail; | |
28609 | } | |
28610 | { | |
28611 | resultobj = wxPyMake_wxObject(result); | |
28612 | } | |
28613 | return resultobj; | |
28614 | fail: | |
28615 | return NULL; | |
28616 | } | |
28617 | ||
28618 | ||
2f4c0a16 | 28619 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28620 | PyObject *resultobj; |
28621 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28622 | size_t arg2 ; | |
28623 | wxMenuItem *result; | |
28624 | PyObject * obj0 = 0 ; | |
28625 | PyObject * obj1 = 0 ; | |
28626 | char *kwnames[] = { | |
28627 | (char *) "self",(char *) "position", NULL | |
28628 | }; | |
28629 | ||
28630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28633 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28635 | { |
28636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28637 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
28638 | ||
28639 | wxPyEndAllowThreads(__tstate); | |
28640 | if (PyErr_Occurred()) SWIG_fail; | |
28641 | } | |
28642 | { | |
28643 | resultobj = wxPyMake_wxObject(result); | |
28644 | } | |
28645 | return resultobj; | |
28646 | fail: | |
28647 | return NULL; | |
28648 | } | |
28649 | ||
28650 | ||
2f4c0a16 | 28651 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28652 | PyObject *resultobj; |
28653 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28654 | int arg2 ; | |
28655 | bool arg3 ; | |
28656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28658 | PyObject * obj2 = 0 ; |
28659 | char *kwnames[] = { | |
0f774bef | 28660 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
28661 | }; |
28662 | ||
8edf1c75 | 28663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28666 | arg2 = (int) SWIG_AsInt(obj1); | |
28667 | if (PyErr_Occurred()) SWIG_fail; | |
28668 | arg3 = (bool) SWIG_AsBool(obj2); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28670 | { |
28671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28672 | (arg1)->Enable(arg2,arg3); | |
28673 | ||
28674 | wxPyEndAllowThreads(__tstate); | |
28675 | if (PyErr_Occurred()) SWIG_fail; | |
28676 | } | |
28677 | Py_INCREF(Py_None); resultobj = Py_None; | |
28678 | return resultobj; | |
28679 | fail: | |
28680 | return NULL; | |
28681 | } | |
28682 | ||
28683 | ||
2f4c0a16 | 28684 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28685 | PyObject *resultobj; |
28686 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28687 | int arg2 ; | |
28688 | bool result; | |
28689 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28690 | PyObject * obj1 = 0 ; |
d14a1e28 | 28691 | char *kwnames[] = { |
0f774bef | 28692 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28693 | }; |
28694 | ||
8edf1c75 | 28695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28698 | arg2 = (int) SWIG_AsInt(obj1); | |
28699 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28700 | { |
28701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28702 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
28703 | ||
28704 | wxPyEndAllowThreads(__tstate); | |
28705 | if (PyErr_Occurred()) SWIG_fail; | |
28706 | } | |
02a34c4c | 28707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28708 | return resultobj; |
28709 | fail: | |
28710 | return NULL; | |
28711 | } | |
28712 | ||
28713 | ||
2f4c0a16 | 28714 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28715 | PyObject *resultobj; |
28716 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28717 | int arg2 ; | |
28718 | bool arg3 ; | |
28719 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28721 | PyObject * obj2 = 0 ; |
28722 | char *kwnames[] = { | |
0f774bef | 28723 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
28724 | }; |
28725 | ||
8edf1c75 | 28726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28729 | arg2 = (int) SWIG_AsInt(obj1); | |
28730 | if (PyErr_Occurred()) SWIG_fail; | |
28731 | arg3 = (bool) SWIG_AsBool(obj2); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28733 | { |
28734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28735 | (arg1)->Check(arg2,arg3); | |
28736 | ||
28737 | wxPyEndAllowThreads(__tstate); | |
28738 | if (PyErr_Occurred()) SWIG_fail; | |
28739 | } | |
28740 | Py_INCREF(Py_None); resultobj = Py_None; | |
28741 | return resultobj; | |
28742 | fail: | |
28743 | return NULL; | |
28744 | } | |
28745 | ||
28746 | ||
2f4c0a16 | 28747 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28748 | PyObject *resultobj; |
28749 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28750 | int arg2 ; | |
28751 | bool result; | |
28752 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28753 | PyObject * obj1 = 0 ; |
d14a1e28 | 28754 | char *kwnames[] = { |
0f774bef | 28755 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28756 | }; |
28757 | ||
8edf1c75 | 28758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28761 | arg2 = (int) SWIG_AsInt(obj1); | |
28762 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28763 | { |
28764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28765 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
28766 | ||
28767 | wxPyEndAllowThreads(__tstate); | |
28768 | if (PyErr_Occurred()) SWIG_fail; | |
28769 | } | |
02a34c4c | 28770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28771 | return resultobj; |
28772 | fail: | |
28773 | return NULL; | |
28774 | } | |
28775 | ||
28776 | ||
2f4c0a16 | 28777 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28778 | PyObject *resultobj; |
28779 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28780 | int arg2 ; | |
28781 | wxString *arg3 = 0 ; | |
423f194a | 28782 | bool temp3 = False ; |
d14a1e28 | 28783 | PyObject * obj0 = 0 ; |
8edf1c75 | 28784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28785 | PyObject * obj2 = 0 ; |
28786 | char *kwnames[] = { | |
0f774bef | 28787 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
28788 | }; |
28789 | ||
8edf1c75 | 28790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28793 | arg2 = (int) SWIG_AsInt(obj1); | |
28794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28795 | { |
28796 | arg3 = wxString_in_helper(obj2); | |
28797 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28798 | temp3 = True; |
d14a1e28 RD |
28799 | } |
28800 | { | |
28801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28802 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28803 | ||
28804 | wxPyEndAllowThreads(__tstate); | |
28805 | if (PyErr_Occurred()) SWIG_fail; | |
28806 | } | |
28807 | Py_INCREF(Py_None); resultobj = Py_None; | |
28808 | { | |
28809 | if (temp3) | |
28810 | delete arg3; | |
28811 | } | |
28812 | return resultobj; | |
28813 | fail: | |
28814 | { | |
28815 | if (temp3) | |
28816 | delete arg3; | |
28817 | } | |
28818 | return NULL; | |
28819 | } | |
28820 | ||
28821 | ||
2f4c0a16 | 28822 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28823 | PyObject *resultobj; |
28824 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28825 | int arg2 ; | |
28826 | wxString result; | |
28827 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28828 | PyObject * obj1 = 0 ; |
d14a1e28 | 28829 | char *kwnames[] = { |
0f774bef | 28830 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28831 | }; |
28832 | ||
8edf1c75 | 28833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28836 | arg2 = (int) SWIG_AsInt(obj1); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28838 | { |
28839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28840 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
28841 | ||
28842 | wxPyEndAllowThreads(__tstate); | |
28843 | if (PyErr_Occurred()) SWIG_fail; | |
28844 | } | |
28845 | { | |
28846 | #if wxUSE_UNICODE | |
28847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28848 | #else | |
28849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28850 | #endif | |
28851 | } | |
28852 | return resultobj; | |
28853 | fail: | |
28854 | return NULL; | |
28855 | } | |
28856 | ||
28857 | ||
2f4c0a16 | 28858 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28859 | PyObject *resultobj; |
28860 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28861 | int arg2 ; | |
28862 | wxString *arg3 = 0 ; | |
423f194a | 28863 | bool temp3 = False ; |
d14a1e28 | 28864 | PyObject * obj0 = 0 ; |
8edf1c75 | 28865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28866 | PyObject * obj2 = 0 ; |
28867 | char *kwnames[] = { | |
0f774bef | 28868 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28869 | }; |
28870 | ||
8edf1c75 | 28871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28874 | arg2 = (int) SWIG_AsInt(obj1); | |
28875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28876 | { |
28877 | arg3 = wxString_in_helper(obj2); | |
28878 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28879 | temp3 = True; |
d14a1e28 RD |
28880 | } |
28881 | { | |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28884 | ||
28885 | wxPyEndAllowThreads(__tstate); | |
28886 | if (PyErr_Occurred()) SWIG_fail; | |
28887 | } | |
28888 | Py_INCREF(Py_None); resultobj = Py_None; | |
28889 | { | |
28890 | if (temp3) | |
28891 | delete arg3; | |
28892 | } | |
28893 | return resultobj; | |
28894 | fail: | |
28895 | { | |
28896 | if (temp3) | |
28897 | delete arg3; | |
28898 | } | |
28899 | return NULL; | |
28900 | } | |
28901 | ||
28902 | ||
2f4c0a16 | 28903 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28904 | PyObject *resultobj; |
28905 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28906 | int arg2 ; | |
28907 | wxString result; | |
28908 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28909 | PyObject * obj1 = 0 ; |
d14a1e28 | 28910 | char *kwnames[] = { |
0f774bef | 28911 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28912 | }; |
28913 | ||
8edf1c75 | 28914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28917 | arg2 = (int) SWIG_AsInt(obj1); | |
28918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28919 | { |
28920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28921 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
28922 | ||
28923 | wxPyEndAllowThreads(__tstate); | |
28924 | if (PyErr_Occurred()) SWIG_fail; | |
28925 | } | |
28926 | { | |
28927 | #if wxUSE_UNICODE | |
28928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28929 | #else | |
28930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28931 | #endif | |
28932 | } | |
28933 | return resultobj; | |
28934 | fail: | |
28935 | return NULL; | |
28936 | } | |
28937 | ||
28938 | ||
2f4c0a16 | 28939 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28940 | PyObject *resultobj; |
28941 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28942 | wxString *arg2 = 0 ; | |
423f194a | 28943 | bool temp2 = False ; |
d14a1e28 RD |
28944 | PyObject * obj0 = 0 ; |
28945 | PyObject * obj1 = 0 ; | |
28946 | char *kwnames[] = { | |
28947 | (char *) "self",(char *) "title", NULL | |
28948 | }; | |
28949 | ||
28950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28953 | { |
28954 | arg2 = wxString_in_helper(obj1); | |
28955 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28956 | temp2 = True; |
d14a1e28 RD |
28957 | } |
28958 | { | |
28959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28960 | (arg1)->SetTitle((wxString const &)*arg2); | |
28961 | ||
28962 | wxPyEndAllowThreads(__tstate); | |
28963 | if (PyErr_Occurred()) SWIG_fail; | |
28964 | } | |
28965 | Py_INCREF(Py_None); resultobj = Py_None; | |
28966 | { | |
28967 | if (temp2) | |
28968 | delete arg2; | |
28969 | } | |
28970 | return resultobj; | |
28971 | fail: | |
28972 | { | |
28973 | if (temp2) | |
28974 | delete arg2; | |
28975 | } | |
28976 | return NULL; | |
28977 | } | |
28978 | ||
28979 | ||
2f4c0a16 | 28980 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28981 | PyObject *resultobj; |
28982 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28983 | wxString result; | |
28984 | PyObject * obj0 = 0 ; | |
28985 | char *kwnames[] = { | |
28986 | (char *) "self", NULL | |
28987 | }; | |
28988 | ||
28989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28992 | { |
28993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28994 | result = ((wxMenu const *)arg1)->GetTitle(); | |
28995 | ||
28996 | wxPyEndAllowThreads(__tstate); | |
28997 | if (PyErr_Occurred()) SWIG_fail; | |
28998 | } | |
28999 | { | |
29000 | #if wxUSE_UNICODE | |
29001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29002 | #else | |
29003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29004 | #endif | |
29005 | } | |
29006 | return resultobj; | |
29007 | fail: | |
29008 | return NULL; | |
29009 | } | |
29010 | ||
29011 | ||
2f4c0a16 | 29012 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29013 | PyObject *resultobj; |
29014 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29015 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
29016 | PyObject * obj0 = 0 ; | |
29017 | PyObject * obj1 = 0 ; | |
29018 | char *kwnames[] = { | |
29019 | (char *) "self",(char *) "handler", NULL | |
29020 | }; | |
29021 | ||
29022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
29026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29027 | { |
29028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29029 | (arg1)->SetEventHandler(arg2); | |
29030 | ||
29031 | wxPyEndAllowThreads(__tstate); | |
29032 | if (PyErr_Occurred()) SWIG_fail; | |
29033 | } | |
29034 | Py_INCREF(Py_None); resultobj = Py_None; | |
29035 | return resultobj; | |
29036 | fail: | |
29037 | return NULL; | |
29038 | } | |
29039 | ||
29040 | ||
2f4c0a16 | 29041 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29042 | PyObject *resultobj; |
29043 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29044 | wxEvtHandler *result; | |
29045 | PyObject * obj0 = 0 ; | |
29046 | char *kwnames[] = { | |
29047 | (char *) "self", NULL | |
29048 | }; | |
29049 | ||
29050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29053 | { |
29054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29055 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
29056 | ||
29057 | wxPyEndAllowThreads(__tstate); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | } | |
29060 | { | |
29061 | resultobj = wxPyMake_wxObject(result); | |
29062 | } | |
29063 | return resultobj; | |
29064 | fail: | |
29065 | return NULL; | |
29066 | } | |
29067 | ||
29068 | ||
2f4c0a16 | 29069 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29070 | PyObject *resultobj; |
29071 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29073 | PyObject * obj0 = 0 ; | |
29074 | PyObject * obj1 = 0 ; | |
29075 | char *kwnames[] = { | |
29076 | (char *) "self",(char *) "win", NULL | |
29077 | }; | |
29078 | ||
29079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29084 | { |
29085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29086 | (arg1)->SetInvokingWindow(arg2); | |
29087 | ||
29088 | wxPyEndAllowThreads(__tstate); | |
29089 | if (PyErr_Occurred()) SWIG_fail; | |
29090 | } | |
29091 | Py_INCREF(Py_None); resultobj = Py_None; | |
29092 | return resultobj; | |
29093 | fail: | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
2f4c0a16 | 29098 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29099 | PyObject *resultobj; |
29100 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29101 | wxWindow *result; | |
29102 | PyObject * obj0 = 0 ; | |
29103 | char *kwnames[] = { | |
29104 | (char *) "self", NULL | |
29105 | }; | |
29106 | ||
29107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29110 | { |
29111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29112 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
29113 | ||
29114 | wxPyEndAllowThreads(__tstate); | |
29115 | if (PyErr_Occurred()) SWIG_fail; | |
29116 | } | |
29117 | { | |
29118 | resultobj = wxPyMake_wxObject(result); | |
29119 | } | |
29120 | return resultobj; | |
29121 | fail: | |
29122 | return NULL; | |
29123 | } | |
29124 | ||
29125 | ||
2f4c0a16 | 29126 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29127 | PyObject *resultobj; |
29128 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29129 | long result; | |
29130 | PyObject * obj0 = 0 ; | |
29131 | char *kwnames[] = { | |
29132 | (char *) "self", NULL | |
29133 | }; | |
29134 | ||
29135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29138 | { |
29139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29140 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
29141 | ||
29142 | wxPyEndAllowThreads(__tstate); | |
29143 | if (PyErr_Occurred()) SWIG_fail; | |
29144 | } | |
2f4c0a16 | 29145 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
29146 | return resultobj; |
29147 | fail: | |
29148 | return NULL; | |
29149 | } | |
29150 | ||
29151 | ||
2f4c0a16 | 29152 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29153 | PyObject *resultobj; |
29154 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29155 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
29156 | PyObject * obj0 = 0 ; | |
29157 | PyObject * obj1 = 0 ; | |
29158 | char *kwnames[] = { | |
29159 | (char *) "self",(char *) "source", NULL | |
29160 | }; | |
29161 | ||
29162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29165 | if (obj1) { |
2f4c0a16 RD |
29166 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
29167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29168 | } |
29169 | { | |
29170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29171 | (arg1)->UpdateUI(arg2); | |
29172 | ||
29173 | wxPyEndAllowThreads(__tstate); | |
29174 | if (PyErr_Occurred()) SWIG_fail; | |
29175 | } | |
29176 | Py_INCREF(Py_None); resultobj = Py_None; | |
29177 | return resultobj; | |
29178 | fail: | |
29179 | return NULL; | |
29180 | } | |
29181 | ||
29182 | ||
2f4c0a16 | 29183 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29184 | PyObject *resultobj; |
29185 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29186 | wxMenuBar *result; | |
29187 | PyObject * obj0 = 0 ; | |
29188 | char *kwnames[] = { | |
29189 | (char *) "self", NULL | |
29190 | }; | |
29191 | ||
29192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29195 | { |
29196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29197 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
29198 | ||
29199 | wxPyEndAllowThreads(__tstate); | |
29200 | if (PyErr_Occurred()) SWIG_fail; | |
29201 | } | |
29202 | { | |
29203 | resultobj = wxPyMake_wxObject(result); | |
29204 | } | |
29205 | return resultobj; | |
29206 | fail: | |
29207 | return NULL; | |
29208 | } | |
29209 | ||
29210 | ||
2f4c0a16 | 29211 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29212 | PyObject *resultobj; |
29213 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29214 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
29215 | PyObject * obj0 = 0 ; | |
29216 | PyObject * obj1 = 0 ; | |
29217 | char *kwnames[] = { | |
29218 | (char *) "self",(char *) "menubar", NULL | |
29219 | }; | |
29220 | ||
29221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
29225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29226 | { |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | (arg1)->Attach(arg2); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
29233 | Py_INCREF(Py_None); resultobj = Py_None; | |
29234 | return resultobj; | |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
2f4c0a16 | 29240 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29241 | PyObject *resultobj; |
29242 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29243 | PyObject * obj0 = 0 ; | |
29244 | char *kwnames[] = { | |
29245 | (char *) "self", NULL | |
29246 | }; | |
29247 | ||
29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29251 | { |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | (arg1)->Detach(); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
29258 | Py_INCREF(Py_None); resultobj = Py_None; | |
29259 | return resultobj; | |
29260 | fail: | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
2f4c0a16 | 29265 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29266 | PyObject *resultobj; |
29267 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29268 | bool result; | |
29269 | PyObject * obj0 = 0 ; | |
29270 | char *kwnames[] = { | |
29271 | (char *) "self", NULL | |
29272 | }; | |
29273 | ||
29274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29277 | { |
29278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29279 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29280 | ||
29281 | wxPyEndAllowThreads(__tstate); | |
29282 | if (PyErr_Occurred()) SWIG_fail; | |
29283 | } | |
02a34c4c | 29284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29285 | return resultobj; |
29286 | fail: | |
29287 | return NULL; | |
29288 | } | |
29289 | ||
29290 | ||
2f4c0a16 | 29291 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29292 | PyObject *resultobj; |
29293 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29294 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29295 | PyObject * obj0 = 0 ; | |
29296 | PyObject * obj1 = 0 ; | |
29297 | char *kwnames[] = { | |
29298 | (char *) "self",(char *) "parent", NULL | |
29299 | }; | |
29300 | ||
29301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29306 | { |
29307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29308 | (arg1)->SetParent(arg2); | |
29309 | ||
29310 | wxPyEndAllowThreads(__tstate); | |
29311 | if (PyErr_Occurred()) SWIG_fail; | |
29312 | } | |
29313 | Py_INCREF(Py_None); resultobj = Py_None; | |
29314 | return resultobj; | |
29315 | fail: | |
29316 | return NULL; | |
29317 | } | |
29318 | ||
29319 | ||
2f4c0a16 | 29320 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29321 | PyObject *resultobj; |
29322 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29323 | wxMenu *result; | |
29324 | PyObject * obj0 = 0 ; | |
29325 | char *kwnames[] = { | |
29326 | (char *) "self", NULL | |
29327 | }; | |
29328 | ||
29329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29332 | { |
29333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29334 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29335 | ||
29336 | wxPyEndAllowThreads(__tstate); | |
29337 | if (PyErr_Occurred()) SWIG_fail; | |
29338 | } | |
29339 | { | |
29340 | resultobj = wxPyMake_wxObject(result); | |
29341 | } | |
29342 | return resultobj; | |
29343 | fail: | |
29344 | return NULL; | |
29345 | } | |
29346 | ||
29347 | ||
2f4c0a16 | 29348 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29349 | PyObject *obj; |
29350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29351 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29352 | Py_INCREF(obj); | |
29353 | return Py_BuildValue((char *)""); | |
29354 | } | |
2f4c0a16 | 29355 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29356 | PyObject *resultobj; |
29357 | long arg1 = (long) 0 ; | |
29358 | wxMenuBar *result; | |
8edf1c75 | 29359 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29360 | char *kwnames[] = { |
29361 | (char *) "style", NULL | |
29362 | }; | |
29363 | ||
8edf1c75 RD |
29364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29365 | if (obj0) { | |
2f4c0a16 RD |
29366 | arg1 = (long) SWIG_AsLong(obj0); |
29367 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29368 | } |
d14a1e28 RD |
29369 | { |
29370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29371 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29372 | ||
29373 | wxPyEndAllowThreads(__tstate); | |
29374 | if (PyErr_Occurred()) SWIG_fail; | |
29375 | } | |
29376 | { | |
29377 | resultobj = wxPyMake_wxObject(result); | |
29378 | } | |
29379 | return resultobj; | |
29380 | fail: | |
29381 | return NULL; | |
29382 | } | |
29383 | ||
29384 | ||
2f4c0a16 | 29385 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29386 | PyObject *resultobj; |
29387 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29388 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29389 | wxString *arg3 = 0 ; | |
29390 | bool result; | |
423f194a | 29391 | bool temp3 = False ; |
d14a1e28 RD |
29392 | PyObject * obj0 = 0 ; |
29393 | PyObject * obj1 = 0 ; | |
29394 | PyObject * obj2 = 0 ; | |
29395 | char *kwnames[] = { | |
29396 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29397 | }; | |
29398 | ||
29399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29404 | { |
29405 | arg3 = wxString_in_helper(obj2); | |
29406 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29407 | temp3 = True; |
d14a1e28 RD |
29408 | } |
29409 | { | |
29410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29411 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29412 | ||
29413 | wxPyEndAllowThreads(__tstate); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
29415 | } | |
02a34c4c | 29416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29417 | { |
29418 | if (temp3) | |
29419 | delete arg3; | |
29420 | } | |
29421 | return resultobj; | |
29422 | fail: | |
29423 | { | |
29424 | if (temp3) | |
29425 | delete arg3; | |
29426 | } | |
29427 | return NULL; | |
29428 | } | |
29429 | ||
29430 | ||
2f4c0a16 | 29431 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29432 | PyObject *resultobj; |
29433 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29434 | size_t arg2 ; | |
29435 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29436 | wxString *arg4 = 0 ; | |
29437 | bool result; | |
423f194a | 29438 | bool temp4 = False ; |
d14a1e28 RD |
29439 | PyObject * obj0 = 0 ; |
29440 | PyObject * obj1 = 0 ; | |
29441 | PyObject * obj2 = 0 ; | |
29442 | PyObject * obj3 = 0 ; | |
29443 | char *kwnames[] = { | |
29444 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29445 | }; | |
29446 | ||
29447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29450 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29451 | if (PyErr_Occurred()) SWIG_fail; | |
29452 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29454 | { |
29455 | arg4 = wxString_in_helper(obj3); | |
29456 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29457 | temp4 = True; |
d14a1e28 RD |
29458 | } |
29459 | { | |
29460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29461 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29462 | ||
29463 | wxPyEndAllowThreads(__tstate); | |
29464 | if (PyErr_Occurred()) SWIG_fail; | |
29465 | } | |
02a34c4c | 29466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29467 | { |
29468 | if (temp4) | |
29469 | delete arg4; | |
29470 | } | |
29471 | return resultobj; | |
29472 | fail: | |
29473 | { | |
29474 | if (temp4) | |
29475 | delete arg4; | |
29476 | } | |
29477 | return NULL; | |
29478 | } | |
29479 | ||
29480 | ||
2f4c0a16 | 29481 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29482 | PyObject *resultobj; |
29483 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29484 | size_t result; | |
29485 | PyObject * obj0 = 0 ; | |
29486 | char *kwnames[] = { | |
29487 | (char *) "self", NULL | |
29488 | }; | |
29489 | ||
29490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29493 | { |
29494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29495 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29496 | ||
29497 | wxPyEndAllowThreads(__tstate); | |
29498 | if (PyErr_Occurred()) SWIG_fail; | |
29499 | } | |
2f4c0a16 | 29500 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29501 | return resultobj; |
29502 | fail: | |
29503 | return NULL; | |
29504 | } | |
29505 | ||
29506 | ||
2f4c0a16 | 29507 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29508 | PyObject *resultobj; |
29509 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29510 | size_t arg2 ; | |
29511 | wxMenu *result; | |
29512 | PyObject * obj0 = 0 ; | |
29513 | PyObject * obj1 = 0 ; | |
29514 | char *kwnames[] = { | |
29515 | (char *) "self",(char *) "pos", NULL | |
29516 | }; | |
29517 | ||
29518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29521 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29523 | { |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
29526 | ||
29527 | wxPyEndAllowThreads(__tstate); | |
29528 | if (PyErr_Occurred()) SWIG_fail; | |
29529 | } | |
29530 | { | |
29531 | resultobj = wxPyMake_wxObject(result); | |
29532 | } | |
29533 | return resultobj; | |
29534 | fail: | |
29535 | return NULL; | |
29536 | } | |
29537 | ||
29538 | ||
2f4c0a16 | 29539 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29540 | PyObject *resultobj; |
29541 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29542 | size_t arg2 ; | |
29543 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29544 | wxString *arg4 = 0 ; | |
29545 | wxMenu *result; | |
423f194a | 29546 | bool temp4 = False ; |
d14a1e28 RD |
29547 | PyObject * obj0 = 0 ; |
29548 | PyObject * obj1 = 0 ; | |
29549 | PyObject * obj2 = 0 ; | |
29550 | PyObject * obj3 = 0 ; | |
29551 | char *kwnames[] = { | |
29552 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29553 | }; | |
29554 | ||
29555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29558 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29559 | if (PyErr_Occurred()) SWIG_fail; | |
29560 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29562 | { |
29563 | arg4 = wxString_in_helper(obj3); | |
29564 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29565 | temp4 = True; |
d14a1e28 RD |
29566 | } |
29567 | { | |
29568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29569 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
29570 | ||
29571 | wxPyEndAllowThreads(__tstate); | |
29572 | if (PyErr_Occurred()) SWIG_fail; | |
29573 | } | |
29574 | { | |
29575 | resultobj = wxPyMake_wxObject(result); | |
29576 | } | |
29577 | { | |
29578 | if (temp4) | |
29579 | delete arg4; | |
29580 | } | |
29581 | return resultobj; | |
29582 | fail: | |
29583 | { | |
29584 | if (temp4) | |
29585 | delete arg4; | |
29586 | } | |
29587 | return NULL; | |
29588 | } | |
29589 | ||
29590 | ||
2f4c0a16 | 29591 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29592 | PyObject *resultobj; |
29593 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29594 | size_t arg2 ; | |
29595 | wxMenu *result; | |
29596 | PyObject * obj0 = 0 ; | |
29597 | PyObject * obj1 = 0 ; | |
29598 | char *kwnames[] = { | |
29599 | (char *) "self",(char *) "pos", NULL | |
29600 | }; | |
29601 | ||
29602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29605 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29606 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29607 | { |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29609 | result = (wxMenu *)(arg1)->Remove(arg2); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
29612 | if (PyErr_Occurred()) SWIG_fail; | |
29613 | } | |
29614 | { | |
29615 | resultobj = wxPyMake_wxObject(result); | |
29616 | } | |
29617 | return resultobj; | |
29618 | fail: | |
29619 | return NULL; | |
29620 | } | |
29621 | ||
29622 | ||
2f4c0a16 | 29623 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29624 | PyObject *resultobj; |
29625 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29626 | size_t arg2 ; | |
29627 | bool arg3 ; | |
29628 | PyObject * obj0 = 0 ; | |
29629 | PyObject * obj1 = 0 ; | |
29630 | PyObject * obj2 = 0 ; | |
29631 | char *kwnames[] = { | |
29632 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
29633 | }; | |
29634 | ||
29635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29638 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29639 | if (PyErr_Occurred()) SWIG_fail; | |
29640 | arg3 = (bool) SWIG_AsBool(obj2); | |
29641 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29642 | { |
29643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29644 | (arg1)->EnableTop(arg2,arg3); | |
29645 | ||
29646 | wxPyEndAllowThreads(__tstate); | |
29647 | if (PyErr_Occurred()) SWIG_fail; | |
29648 | } | |
29649 | Py_INCREF(Py_None); resultobj = Py_None; | |
29650 | return resultobj; | |
29651 | fail: | |
29652 | return NULL; | |
29653 | } | |
29654 | ||
29655 | ||
2f4c0a16 | 29656 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29657 | PyObject *resultobj; |
29658 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29659 | size_t arg2 ; | |
29660 | bool result; | |
29661 | PyObject * obj0 = 0 ; | |
29662 | PyObject * obj1 = 0 ; | |
29663 | char *kwnames[] = { | |
29664 | (char *) "self",(char *) "pos", NULL | |
29665 | }; | |
29666 | ||
29667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29670 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29671 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29672 | { |
29673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29674 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
29675 | ||
29676 | wxPyEndAllowThreads(__tstate); | |
29677 | if (PyErr_Occurred()) SWIG_fail; | |
29678 | } | |
02a34c4c | 29679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29680 | return resultobj; |
29681 | fail: | |
29682 | return NULL; | |
29683 | } | |
29684 | ||
29685 | ||
2f4c0a16 | 29686 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29687 | PyObject *resultobj; |
29688 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29689 | size_t arg2 ; | |
29690 | wxString *arg3 = 0 ; | |
423f194a | 29691 | bool temp3 = False ; |
d14a1e28 RD |
29692 | PyObject * obj0 = 0 ; |
29693 | PyObject * obj1 = 0 ; | |
29694 | PyObject * obj2 = 0 ; | |
29695 | char *kwnames[] = { | |
29696 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
29697 | }; | |
29698 | ||
29699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29702 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29704 | { |
29705 | arg3 = wxString_in_helper(obj2); | |
29706 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29707 | temp3 = True; |
d14a1e28 RD |
29708 | } |
29709 | { | |
29710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29711 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
29712 | ||
29713 | wxPyEndAllowThreads(__tstate); | |
29714 | if (PyErr_Occurred()) SWIG_fail; | |
29715 | } | |
29716 | Py_INCREF(Py_None); resultobj = Py_None; | |
29717 | { | |
29718 | if (temp3) | |
29719 | delete arg3; | |
29720 | } | |
29721 | return resultobj; | |
29722 | fail: | |
29723 | { | |
29724 | if (temp3) | |
29725 | delete arg3; | |
29726 | } | |
29727 | return NULL; | |
29728 | } | |
29729 | ||
29730 | ||
2f4c0a16 | 29731 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29732 | PyObject *resultobj; |
29733 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29734 | size_t arg2 ; | |
29735 | wxString result; | |
29736 | PyObject * obj0 = 0 ; | |
29737 | PyObject * obj1 = 0 ; | |
29738 | char *kwnames[] = { | |
29739 | (char *) "self",(char *) "pos", NULL | |
29740 | }; | |
29741 | ||
29742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29745 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29746 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29747 | { |
29748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29749 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
29750 | ||
29751 | wxPyEndAllowThreads(__tstate); | |
29752 | if (PyErr_Occurred()) SWIG_fail; | |
29753 | } | |
29754 | { | |
29755 | #if wxUSE_UNICODE | |
29756 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29757 | #else | |
29758 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29759 | #endif | |
29760 | } | |
29761 | return resultobj; | |
29762 | fail: | |
29763 | return NULL; | |
29764 | } | |
29765 | ||
29766 | ||
2f4c0a16 | 29767 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29768 | PyObject *resultobj; |
29769 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29770 | wxString *arg2 = 0 ; | |
29771 | wxString *arg3 = 0 ; | |
29772 | int result; | |
423f194a RD |
29773 | bool temp2 = False ; |
29774 | bool temp3 = False ; | |
d14a1e28 RD |
29775 | PyObject * obj0 = 0 ; |
29776 | PyObject * obj1 = 0 ; | |
29777 | PyObject * obj2 = 0 ; | |
29778 | char *kwnames[] = { | |
29779 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
29780 | }; | |
29781 | ||
29782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29785 | { |
29786 | arg2 = wxString_in_helper(obj1); | |
29787 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29788 | temp2 = True; |
d14a1e28 RD |
29789 | } |
29790 | { | |
29791 | arg3 = wxString_in_helper(obj2); | |
29792 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29793 | temp3 = True; |
d14a1e28 RD |
29794 | } |
29795 | { | |
29796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29797 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
29798 | ||
29799 | wxPyEndAllowThreads(__tstate); | |
29800 | if (PyErr_Occurred()) SWIG_fail; | |
29801 | } | |
2f4c0a16 | 29802 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29803 | { |
29804 | if (temp2) | |
29805 | delete arg2; | |
29806 | } | |
29807 | { | |
29808 | if (temp3) | |
29809 | delete arg3; | |
29810 | } | |
29811 | return resultobj; | |
29812 | fail: | |
29813 | { | |
29814 | if (temp2) | |
29815 | delete arg2; | |
29816 | } | |
29817 | { | |
29818 | if (temp3) | |
29819 | delete arg3; | |
29820 | } | |
29821 | return NULL; | |
29822 | } | |
29823 | ||
29824 | ||
2f4c0a16 | 29825 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29826 | PyObject *resultobj; |
29827 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29828 | int arg2 ; | |
29829 | wxMenuItem *result; | |
29830 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29831 | PyObject * obj1 = 0 ; |
d14a1e28 | 29832 | char *kwnames[] = { |
0f774bef | 29833 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29834 | }; |
29835 | ||
8edf1c75 | 29836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29839 | arg2 = (int) SWIG_AsInt(obj1); | |
29840 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29841 | { |
29842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29843 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
29844 | ||
29845 | wxPyEndAllowThreads(__tstate); | |
29846 | if (PyErr_Occurred()) SWIG_fail; | |
29847 | } | |
29848 | { | |
29849 | resultobj = wxPyMake_wxObject(result); | |
29850 | } | |
29851 | return resultobj; | |
29852 | fail: | |
29853 | return NULL; | |
29854 | } | |
29855 | ||
29856 | ||
2f4c0a16 | 29857 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29858 | PyObject *resultobj; |
29859 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29860 | wxString *arg2 = 0 ; | |
29861 | int result; | |
423f194a | 29862 | bool temp2 = False ; |
d14a1e28 RD |
29863 | PyObject * obj0 = 0 ; |
29864 | PyObject * obj1 = 0 ; | |
29865 | char *kwnames[] = { | |
29866 | (char *) "self",(char *) "title", NULL | |
29867 | }; | |
29868 | ||
29869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29872 | { |
29873 | arg2 = wxString_in_helper(obj1); | |
29874 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29875 | temp2 = True; |
d14a1e28 RD |
29876 | } |
29877 | { | |
29878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29879 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
29880 | ||
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
2f4c0a16 | 29884 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29885 | { |
29886 | if (temp2) | |
29887 | delete arg2; | |
29888 | } | |
29889 | return resultobj; | |
29890 | fail: | |
29891 | { | |
29892 | if (temp2) | |
29893 | delete arg2; | |
29894 | } | |
29895 | return NULL; | |
29896 | } | |
29897 | ||
29898 | ||
2f4c0a16 | 29899 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29900 | PyObject *resultobj; |
29901 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29902 | int arg2 ; | |
29903 | bool arg3 ; | |
29904 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29906 | PyObject * obj2 = 0 ; |
29907 | char *kwnames[] = { | |
0f774bef | 29908 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29909 | }; |
29910 | ||
8edf1c75 | 29911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29914 | arg2 = (int) SWIG_AsInt(obj1); | |
29915 | if (PyErr_Occurred()) SWIG_fail; | |
29916 | arg3 = (bool) SWIG_AsBool(obj2); | |
29917 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29918 | { |
29919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29920 | (arg1)->Enable(arg2,arg3); | |
29921 | ||
29922 | wxPyEndAllowThreads(__tstate); | |
29923 | if (PyErr_Occurred()) SWIG_fail; | |
29924 | } | |
29925 | Py_INCREF(Py_None); resultobj = Py_None; | |
29926 | return resultobj; | |
29927 | fail: | |
29928 | return NULL; | |
29929 | } | |
29930 | ||
29931 | ||
2f4c0a16 | 29932 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29933 | PyObject *resultobj; |
29934 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29935 | int arg2 ; | |
29936 | bool arg3 ; | |
29937 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29939 | PyObject * obj2 = 0 ; |
29940 | char *kwnames[] = { | |
0f774bef | 29941 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29942 | }; |
29943 | ||
8edf1c75 | 29944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29947 | arg2 = (int) SWIG_AsInt(obj1); | |
29948 | if (PyErr_Occurred()) SWIG_fail; | |
29949 | arg3 = (bool) SWIG_AsBool(obj2); | |
29950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29951 | { |
29952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29953 | (arg1)->Check(arg2,arg3); | |
29954 | ||
29955 | wxPyEndAllowThreads(__tstate); | |
29956 | if (PyErr_Occurred()) SWIG_fail; | |
29957 | } | |
29958 | Py_INCREF(Py_None); resultobj = Py_None; | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | return NULL; | |
29962 | } | |
29963 | ||
29964 | ||
2f4c0a16 | 29965 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29966 | PyObject *resultobj; |
29967 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29968 | int arg2 ; | |
29969 | bool result; | |
29970 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29971 | PyObject * obj1 = 0 ; |
d14a1e28 | 29972 | char *kwnames[] = { |
0f774bef | 29973 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29974 | }; |
29975 | ||
8edf1c75 | 29976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29979 | arg2 = (int) SWIG_AsInt(obj1); | |
29980 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29981 | { |
29982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29983 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
29984 | ||
29985 | wxPyEndAllowThreads(__tstate); | |
29986 | if (PyErr_Occurred()) SWIG_fail; | |
29987 | } | |
02a34c4c | 29988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29989 | return resultobj; |
29990 | fail: | |
29991 | return NULL; | |
29992 | } | |
29993 | ||
29994 | ||
2f4c0a16 | 29995 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29996 | PyObject *resultobj; |
29997 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29998 | int arg2 ; | |
29999 | bool result; | |
30000 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30001 | PyObject * obj1 = 0 ; |
d14a1e28 | 30002 | char *kwnames[] = { |
0f774bef | 30003 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30004 | }; |
30005 | ||
8edf1c75 | 30006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30009 | arg2 = (int) SWIG_AsInt(obj1); | |
30010 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30011 | { |
30012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30013 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
30014 | ||
30015 | wxPyEndAllowThreads(__tstate); | |
30016 | if (PyErr_Occurred()) SWIG_fail; | |
30017 | } | |
02a34c4c | 30018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30019 | return resultobj; |
30020 | fail: | |
30021 | return NULL; | |
30022 | } | |
30023 | ||
30024 | ||
2f4c0a16 | 30025 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30026 | PyObject *resultobj; |
30027 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30028 | int arg2 ; | |
30029 | wxString *arg3 = 0 ; | |
423f194a | 30030 | bool temp3 = False ; |
d14a1e28 | 30031 | PyObject * obj0 = 0 ; |
8edf1c75 | 30032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30033 | PyObject * obj2 = 0 ; |
30034 | char *kwnames[] = { | |
0f774bef | 30035 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30036 | }; |
30037 | ||
8edf1c75 | 30038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30041 | arg2 = (int) SWIG_AsInt(obj1); | |
30042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30043 | { |
30044 | arg3 = wxString_in_helper(obj2); | |
30045 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30046 | temp3 = True; |
d14a1e28 RD |
30047 | } |
30048 | { | |
30049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30050 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30051 | ||
30052 | wxPyEndAllowThreads(__tstate); | |
30053 | if (PyErr_Occurred()) SWIG_fail; | |
30054 | } | |
30055 | Py_INCREF(Py_None); resultobj = Py_None; | |
30056 | { | |
30057 | if (temp3) | |
30058 | delete arg3; | |
30059 | } | |
30060 | return resultobj; | |
30061 | fail: | |
30062 | { | |
30063 | if (temp3) | |
30064 | delete arg3; | |
30065 | } | |
30066 | return NULL; | |
30067 | } | |
30068 | ||
30069 | ||
2f4c0a16 | 30070 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30071 | PyObject *resultobj; |
30072 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30073 | int arg2 ; | |
30074 | wxString result; | |
30075 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30076 | PyObject * obj1 = 0 ; |
d14a1e28 | 30077 | char *kwnames[] = { |
0f774bef | 30078 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30079 | }; |
30080 | ||
8edf1c75 | 30081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30084 | arg2 = (int) SWIG_AsInt(obj1); | |
30085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30086 | { |
30087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30088 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
30089 | ||
30090 | wxPyEndAllowThreads(__tstate); | |
30091 | if (PyErr_Occurred()) SWIG_fail; | |
30092 | } | |
30093 | { | |
30094 | #if wxUSE_UNICODE | |
30095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30096 | #else | |
30097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30098 | #endif | |
30099 | } | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | return NULL; | |
30103 | } | |
30104 | ||
30105 | ||
2f4c0a16 | 30106 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30107 | PyObject *resultobj; |
30108 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30109 | int arg2 ; | |
30110 | wxString *arg3 = 0 ; | |
423f194a | 30111 | bool temp3 = False ; |
d14a1e28 | 30112 | PyObject * obj0 = 0 ; |
8edf1c75 | 30113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30114 | PyObject * obj2 = 0 ; |
30115 | char *kwnames[] = { | |
0f774bef | 30116 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30117 | }; |
30118 | ||
8edf1c75 | 30119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30122 | arg2 = (int) SWIG_AsInt(obj1); | |
30123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30124 | { |
30125 | arg3 = wxString_in_helper(obj2); | |
30126 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30127 | temp3 = True; |
d14a1e28 RD |
30128 | } |
30129 | { | |
30130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30131 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30132 | ||
30133 | wxPyEndAllowThreads(__tstate); | |
30134 | if (PyErr_Occurred()) SWIG_fail; | |
30135 | } | |
30136 | Py_INCREF(Py_None); resultobj = Py_None; | |
30137 | { | |
30138 | if (temp3) | |
30139 | delete arg3; | |
30140 | } | |
30141 | return resultobj; | |
30142 | fail: | |
30143 | { | |
30144 | if (temp3) | |
30145 | delete arg3; | |
30146 | } | |
30147 | return NULL; | |
30148 | } | |
30149 | ||
30150 | ||
2f4c0a16 | 30151 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30152 | PyObject *resultobj; |
30153 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30154 | int arg2 ; | |
30155 | wxString result; | |
30156 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30157 | PyObject * obj1 = 0 ; |
d14a1e28 | 30158 | char *kwnames[] = { |
0f774bef | 30159 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30160 | }; |
30161 | ||
8edf1c75 | 30162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30165 | arg2 = (int) SWIG_AsInt(obj1); | |
30166 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30167 | { |
30168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30169 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
30170 | ||
30171 | wxPyEndAllowThreads(__tstate); | |
30172 | if (PyErr_Occurred()) SWIG_fail; | |
30173 | } | |
30174 | { | |
30175 | #if wxUSE_UNICODE | |
30176 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30177 | #else | |
30178 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30179 | #endif | |
30180 | } | |
30181 | return resultobj; | |
30182 | fail: | |
30183 | return NULL; | |
30184 | } | |
30185 | ||
30186 | ||
2f4c0a16 | 30187 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30188 | PyObject *resultobj; |
30189 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30190 | wxFrame *result; | |
30191 | PyObject * obj0 = 0 ; | |
30192 | char *kwnames[] = { | |
30193 | (char *) "self", NULL | |
30194 | }; | |
30195 | ||
30196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30199 | { |
30200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30201 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
30202 | ||
30203 | wxPyEndAllowThreads(__tstate); | |
30204 | if (PyErr_Occurred()) SWIG_fail; | |
30205 | } | |
30206 | { | |
30207 | resultobj = wxPyMake_wxObject(result); | |
30208 | } | |
30209 | return resultobj; | |
30210 | fail: | |
30211 | return NULL; | |
30212 | } | |
30213 | ||
30214 | ||
2f4c0a16 | 30215 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30216 | PyObject *resultobj; |
30217 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30218 | bool result; | |
30219 | PyObject * obj0 = 0 ; | |
30220 | char *kwnames[] = { | |
30221 | (char *) "self", NULL | |
30222 | }; | |
30223 | ||
30224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30227 | { |
30228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30229 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30230 | ||
30231 | wxPyEndAllowThreads(__tstate); | |
30232 | if (PyErr_Occurred()) SWIG_fail; | |
30233 | } | |
02a34c4c | 30234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30235 | return resultobj; |
30236 | fail: | |
30237 | return NULL; | |
30238 | } | |
30239 | ||
30240 | ||
2f4c0a16 | 30241 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30242 | PyObject *resultobj; |
30243 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30244 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30245 | PyObject * obj0 = 0 ; | |
30246 | PyObject * obj1 = 0 ; | |
30247 | char *kwnames[] = { | |
30248 | (char *) "self",(char *) "frame", NULL | |
30249 | }; | |
30250 | ||
30251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
30255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30256 | { |
30257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30258 | (arg1)->Attach(arg2); | |
30259 | ||
30260 | wxPyEndAllowThreads(__tstate); | |
30261 | if (PyErr_Occurred()) SWIG_fail; | |
30262 | } | |
30263 | Py_INCREF(Py_None); resultobj = Py_None; | |
30264 | return resultobj; | |
30265 | fail: | |
30266 | return NULL; | |
30267 | } | |
30268 | ||
30269 | ||
2f4c0a16 | 30270 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30271 | PyObject *resultobj; |
30272 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30273 | PyObject * obj0 = 0 ; | |
30274 | char *kwnames[] = { | |
30275 | (char *) "self", NULL | |
30276 | }; | |
30277 | ||
30278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30281 | { |
30282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30283 | (arg1)->Detach(); | |
30284 | ||
30285 | wxPyEndAllowThreads(__tstate); | |
30286 | if (PyErr_Occurred()) SWIG_fail; | |
30287 | } | |
30288 | Py_INCREF(Py_None); resultobj = Py_None; | |
30289 | return resultobj; | |
30290 | fail: | |
30291 | return NULL; | |
30292 | } | |
30293 | ||
30294 | ||
2f4c0a16 | 30295 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30296 | PyObject *obj; |
30297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30298 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30299 | Py_INCREF(obj); | |
30300 | return Py_BuildValue((char *)""); | |
30301 | } | |
2f4c0a16 | 30302 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30303 | PyObject *resultobj; |
30304 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30305 | int arg2 = (int) wxID_SEPARATOR ; | |
30306 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30307 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30308 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30309 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30310 | int arg5 = (int) wxITEM_NORMAL ; | |
30311 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30312 | wxMenuItem *result; | |
423f194a RD |
30313 | bool temp3 = False ; |
30314 | bool temp4 = False ; | |
d14a1e28 | 30315 | PyObject * obj0 = 0 ; |
8edf1c75 | 30316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30317 | PyObject * obj2 = 0 ; |
30318 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30319 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30320 | PyObject * obj5 = 0 ; |
30321 | char *kwnames[] = { | |
30322 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30323 | }; | |
30324 | ||
8edf1c75 | 30325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 30326 | if (obj0) { |
2f4c0a16 RD |
30327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30329 | } |
8edf1c75 | 30330 | if (obj1) { |
2f4c0a16 RD |
30331 | arg2 = (int) SWIG_AsInt(obj1); |
30332 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30333 | } |
d14a1e28 RD |
30334 | if (obj2) { |
30335 | { | |
30336 | arg3 = wxString_in_helper(obj2); | |
30337 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30338 | temp3 = True; |
d14a1e28 RD |
30339 | } |
30340 | } | |
30341 | if (obj3) { | |
30342 | { | |
30343 | arg4 = wxString_in_helper(obj3); | |
30344 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30345 | temp4 = True; |
d14a1e28 RD |
30346 | } |
30347 | } | |
8edf1c75 | 30348 | if (obj4) { |
2f4c0a16 RD |
30349 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
30350 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30351 | } |
d14a1e28 | 30352 | if (obj5) { |
2f4c0a16 RD |
30353 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
30354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30355 | } |
30356 | { | |
30357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30358 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30359 | ||
30360 | wxPyEndAllowThreads(__tstate); | |
30361 | if (PyErr_Occurred()) SWIG_fail; | |
30362 | } | |
30363 | { | |
30364 | resultobj = wxPyMake_wxObject(result); | |
30365 | } | |
30366 | { | |
30367 | if (temp3) | |
30368 | delete arg3; | |
30369 | } | |
30370 | { | |
30371 | if (temp4) | |
30372 | delete arg4; | |
30373 | } | |
30374 | return resultobj; | |
30375 | fail: | |
30376 | { | |
30377 | if (temp3) | |
30378 | delete arg3; | |
30379 | } | |
30380 | { | |
30381 | if (temp4) | |
30382 | delete arg4; | |
30383 | } | |
30384 | return NULL; | |
30385 | } | |
30386 | ||
30387 | ||
2f4c0a16 | 30388 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30389 | PyObject *resultobj; |
30390 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30391 | wxMenu *result; | |
30392 | PyObject * obj0 = 0 ; | |
30393 | char *kwnames[] = { | |
30394 | (char *) "self", NULL | |
30395 | }; | |
30396 | ||
30397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30400 | { |
30401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30402 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30403 | ||
30404 | wxPyEndAllowThreads(__tstate); | |
30405 | if (PyErr_Occurred()) SWIG_fail; | |
30406 | } | |
30407 | { | |
30408 | resultobj = wxPyMake_wxObject(result); | |
30409 | } | |
30410 | return resultobj; | |
30411 | fail: | |
30412 | return NULL; | |
30413 | } | |
30414 | ||
30415 | ||
2f4c0a16 | 30416 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30417 | PyObject *resultobj; |
30418 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30419 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30420 | PyObject * obj0 = 0 ; | |
30421 | PyObject * obj1 = 0 ; | |
30422 | char *kwnames[] = { | |
30423 | (char *) "self",(char *) "menu", NULL | |
30424 | }; | |
30425 | ||
30426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30431 | { |
30432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30433 | (arg1)->SetMenu(arg2); | |
30434 | ||
30435 | wxPyEndAllowThreads(__tstate); | |
30436 | if (PyErr_Occurred()) SWIG_fail; | |
30437 | } | |
30438 | Py_INCREF(Py_None); resultobj = Py_None; | |
30439 | return resultobj; | |
30440 | fail: | |
30441 | return NULL; | |
30442 | } | |
30443 | ||
30444 | ||
2f4c0a16 | 30445 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30446 | PyObject *resultobj; |
30447 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30448 | int arg2 ; | |
30449 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30450 | PyObject * obj1 = 0 ; |
d14a1e28 | 30451 | char *kwnames[] = { |
0f774bef | 30452 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30453 | }; |
30454 | ||
8edf1c75 | 30455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30458 | arg2 = (int) SWIG_AsInt(obj1); | |
30459 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30460 | { |
30461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30462 | (arg1)->SetId(arg2); | |
30463 | ||
30464 | wxPyEndAllowThreads(__tstate); | |
30465 | if (PyErr_Occurred()) SWIG_fail; | |
30466 | } | |
30467 | Py_INCREF(Py_None); resultobj = Py_None; | |
30468 | return resultobj; | |
30469 | fail: | |
30470 | return NULL; | |
30471 | } | |
30472 | ||
30473 | ||
2f4c0a16 | 30474 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30475 | PyObject *resultobj; |
30476 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30477 | int result; | |
30478 | PyObject * obj0 = 0 ; | |
30479 | char *kwnames[] = { | |
30480 | (char *) "self", NULL | |
30481 | }; | |
30482 | ||
30483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30486 | { |
30487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30488 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30489 | ||
30490 | wxPyEndAllowThreads(__tstate); | |
30491 | if (PyErr_Occurred()) SWIG_fail; | |
30492 | } | |
2f4c0a16 | 30493 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30494 | return resultobj; |
30495 | fail: | |
30496 | return NULL; | |
30497 | } | |
30498 | ||
30499 | ||
2f4c0a16 | 30500 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30501 | PyObject *resultobj; |
30502 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30503 | bool result; | |
30504 | PyObject * obj0 = 0 ; | |
30505 | char *kwnames[] = { | |
30506 | (char *) "self", NULL | |
30507 | }; | |
30508 | ||
30509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30512 | { |
30513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30514 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
30515 | ||
30516 | wxPyEndAllowThreads(__tstate); | |
30517 | if (PyErr_Occurred()) SWIG_fail; | |
30518 | } | |
02a34c4c | 30519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30520 | return resultobj; |
30521 | fail: | |
30522 | return NULL; | |
30523 | } | |
30524 | ||
30525 | ||
2f4c0a16 | 30526 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30527 | PyObject *resultobj; |
30528 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30529 | wxString *arg2 = 0 ; | |
423f194a | 30530 | bool temp2 = False ; |
d14a1e28 RD |
30531 | PyObject * obj0 = 0 ; |
30532 | PyObject * obj1 = 0 ; | |
30533 | char *kwnames[] = { | |
30534 | (char *) "self",(char *) "str", NULL | |
30535 | }; | |
30536 | ||
30537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30540 | { |
30541 | arg2 = wxString_in_helper(obj1); | |
30542 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30543 | temp2 = True; |
d14a1e28 RD |
30544 | } |
30545 | { | |
30546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30547 | (arg1)->SetText((wxString const &)*arg2); | |
30548 | ||
30549 | wxPyEndAllowThreads(__tstate); | |
30550 | if (PyErr_Occurred()) SWIG_fail; | |
30551 | } | |
30552 | Py_INCREF(Py_None); resultobj = Py_None; | |
30553 | { | |
30554 | if (temp2) | |
30555 | delete arg2; | |
30556 | } | |
30557 | return resultobj; | |
30558 | fail: | |
30559 | { | |
30560 | if (temp2) | |
30561 | delete arg2; | |
30562 | } | |
30563 | return NULL; | |
30564 | } | |
30565 | ||
30566 | ||
2f4c0a16 | 30567 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30568 | PyObject *resultobj; |
30569 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30570 | wxString result; | |
30571 | PyObject * obj0 = 0 ; | |
30572 | char *kwnames[] = { | |
30573 | (char *) "self", NULL | |
30574 | }; | |
30575 | ||
30576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30579 | { |
30580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30581 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
30582 | ||
30583 | wxPyEndAllowThreads(__tstate); | |
30584 | if (PyErr_Occurred()) SWIG_fail; | |
30585 | } | |
30586 | { | |
30587 | #if wxUSE_UNICODE | |
30588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30589 | #else | |
30590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30591 | #endif | |
30592 | } | |
30593 | return resultobj; | |
30594 | fail: | |
30595 | return NULL; | |
30596 | } | |
30597 | ||
30598 | ||
2f4c0a16 | 30599 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30600 | PyObject *resultobj; |
30601 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30602 | wxString *result; | |
30603 | PyObject * obj0 = 0 ; | |
30604 | char *kwnames[] = { | |
30605 | (char *) "self", NULL | |
30606 | }; | |
30607 | ||
30608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30611 | { |
30612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30613 | { | |
30614 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
30615 | result = (wxString *) &_result_ref; | |
30616 | } | |
30617 | ||
30618 | wxPyEndAllowThreads(__tstate); | |
30619 | if (PyErr_Occurred()) SWIG_fail; | |
30620 | } | |
0f774bef RD |
30621 | { |
30622 | #if wxUSE_UNICODE | |
30623 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30624 | #else | |
30625 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30626 | #endif | |
30627 | } | |
d14a1e28 RD |
30628 | return resultobj; |
30629 | fail: | |
30630 | return NULL; | |
30631 | } | |
30632 | ||
30633 | ||
2f4c0a16 | 30634 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30635 | PyObject *resultobj; |
30636 | wxString *arg1 = 0 ; | |
30637 | wxString result; | |
423f194a | 30638 | bool temp1 = False ; |
d14a1e28 RD |
30639 | PyObject * obj0 = 0 ; |
30640 | char *kwnames[] = { | |
30641 | (char *) "text", NULL | |
30642 | }; | |
30643 | ||
30644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
30645 | { | |
30646 | arg1 = wxString_in_helper(obj0); | |
30647 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 30648 | temp1 = True; |
d14a1e28 RD |
30649 | } |
30650 | { | |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30652 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | { | |
30658 | #if wxUSE_UNICODE | |
30659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30660 | #else | |
30661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30662 | #endif | |
30663 | } | |
30664 | { | |
30665 | if (temp1) | |
30666 | delete arg1; | |
30667 | } | |
30668 | return resultobj; | |
30669 | fail: | |
30670 | { | |
30671 | if (temp1) | |
30672 | delete arg1; | |
30673 | } | |
30674 | return NULL; | |
30675 | } | |
30676 | ||
30677 | ||
2f4c0a16 | 30678 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30679 | PyObject *resultobj; |
30680 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30681 | int result; | |
30682 | PyObject * obj0 = 0 ; | |
30683 | char *kwnames[] = { | |
30684 | (char *) "self", NULL | |
30685 | }; | |
30686 | ||
30687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30690 | { |
30691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30692 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
30693 | ||
30694 | wxPyEndAllowThreads(__tstate); | |
30695 | if (PyErr_Occurred()) SWIG_fail; | |
30696 | } | |
2f4c0a16 | 30697 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30698 | return resultobj; |
30699 | fail: | |
30700 | return NULL; | |
30701 | } | |
30702 | ||
30703 | ||
2f4c0a16 | 30704 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30705 | PyObject *resultobj; |
30706 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30707 | bool arg2 ; | |
30708 | PyObject * obj0 = 0 ; | |
30709 | PyObject * obj1 = 0 ; | |
30710 | char *kwnames[] = { | |
30711 | (char *) "self",(char *) "checkable", NULL | |
30712 | }; | |
30713 | ||
30714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30717 | arg2 = (bool) SWIG_AsBool(obj1); | |
30718 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30719 | { |
30720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30721 | (arg1)->SetCheckable(arg2); | |
30722 | ||
30723 | wxPyEndAllowThreads(__tstate); | |
30724 | if (PyErr_Occurred()) SWIG_fail; | |
30725 | } | |
30726 | Py_INCREF(Py_None); resultobj = Py_None; | |
30727 | return resultobj; | |
30728 | fail: | |
30729 | return NULL; | |
30730 | } | |
30731 | ||
30732 | ||
2f4c0a16 | 30733 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30734 | PyObject *resultobj; |
30735 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30736 | bool result; | |
30737 | PyObject * obj0 = 0 ; | |
30738 | char *kwnames[] = { | |
30739 | (char *) "self", NULL | |
30740 | }; | |
30741 | ||
30742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30745 | { |
30746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30747 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
30748 | ||
30749 | wxPyEndAllowThreads(__tstate); | |
30750 | if (PyErr_Occurred()) SWIG_fail; | |
30751 | } | |
02a34c4c | 30752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30753 | return resultobj; |
30754 | fail: | |
30755 | return NULL; | |
30756 | } | |
30757 | ||
30758 | ||
2f4c0a16 | 30759 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30760 | PyObject *resultobj; |
30761 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30762 | bool result; | |
30763 | PyObject * obj0 = 0 ; | |
30764 | char *kwnames[] = { | |
30765 | (char *) "self", NULL | |
30766 | }; | |
30767 | ||
30768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30771 | { |
30772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30773 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
30774 | ||
30775 | wxPyEndAllowThreads(__tstate); | |
30776 | if (PyErr_Occurred()) SWIG_fail; | |
30777 | } | |
02a34c4c | 30778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30779 | return resultobj; |
30780 | fail: | |
30781 | return NULL; | |
30782 | } | |
30783 | ||
30784 | ||
2f4c0a16 | 30785 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30786 | PyObject *resultobj; |
30787 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30788 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30789 | PyObject * obj0 = 0 ; | |
30790 | PyObject * obj1 = 0 ; | |
30791 | char *kwnames[] = { | |
30792 | (char *) "self",(char *) "menu", NULL | |
30793 | }; | |
30794 | ||
30795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30800 | { |
30801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30802 | (arg1)->SetSubMenu(arg2); | |
30803 | ||
30804 | wxPyEndAllowThreads(__tstate); | |
30805 | if (PyErr_Occurred()) SWIG_fail; | |
30806 | } | |
30807 | Py_INCREF(Py_None); resultobj = Py_None; | |
30808 | return resultobj; | |
30809 | fail: | |
30810 | return NULL; | |
30811 | } | |
30812 | ||
30813 | ||
2f4c0a16 | 30814 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30815 | PyObject *resultobj; |
30816 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30817 | wxMenu *result; | |
30818 | PyObject * obj0 = 0 ; | |
30819 | char *kwnames[] = { | |
30820 | (char *) "self", NULL | |
30821 | }; | |
30822 | ||
30823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30826 | { |
30827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30828 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
30829 | ||
30830 | wxPyEndAllowThreads(__tstate); | |
30831 | if (PyErr_Occurred()) SWIG_fail; | |
30832 | } | |
30833 | { | |
30834 | resultobj = wxPyMake_wxObject(result); | |
30835 | } | |
30836 | return resultobj; | |
30837 | fail: | |
30838 | return NULL; | |
30839 | } | |
30840 | ||
30841 | ||
2f4c0a16 | 30842 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30843 | PyObject *resultobj; |
30844 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30845 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30846 | PyObject * obj0 = 0 ; |
30847 | PyObject * obj1 = 0 ; | |
30848 | char *kwnames[] = { | |
30849 | (char *) "self",(char *) "enable", NULL | |
30850 | }; | |
30851 | ||
30852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30855 | if (obj1) { |
2f4c0a16 RD |
30856 | arg2 = (bool) SWIG_AsBool(obj1); |
30857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30858 | } |
30859 | { | |
30860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30861 | (arg1)->Enable(arg2); | |
30862 | ||
30863 | wxPyEndAllowThreads(__tstate); | |
30864 | if (PyErr_Occurred()) SWIG_fail; | |
30865 | } | |
30866 | Py_INCREF(Py_None); resultobj = Py_None; | |
30867 | return resultobj; | |
30868 | fail: | |
30869 | return NULL; | |
30870 | } | |
30871 | ||
30872 | ||
2f4c0a16 | 30873 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30874 | PyObject *resultobj; |
30875 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30876 | bool result; | |
30877 | PyObject * obj0 = 0 ; | |
30878 | char *kwnames[] = { | |
30879 | (char *) "self", NULL | |
30880 | }; | |
30881 | ||
30882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30885 | { |
30886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30887 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
30888 | ||
30889 | wxPyEndAllowThreads(__tstate); | |
30890 | if (PyErr_Occurred()) SWIG_fail; | |
30891 | } | |
02a34c4c | 30892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30893 | return resultobj; |
30894 | fail: | |
30895 | return NULL; | |
30896 | } | |
30897 | ||
30898 | ||
2f4c0a16 | 30899 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30900 | PyObject *resultobj; |
30901 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30902 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30903 | PyObject * obj0 = 0 ; |
30904 | PyObject * obj1 = 0 ; | |
30905 | char *kwnames[] = { | |
30906 | (char *) "self",(char *) "check", NULL | |
30907 | }; | |
30908 | ||
30909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30912 | if (obj1) { |
2f4c0a16 RD |
30913 | arg2 = (bool) SWIG_AsBool(obj1); |
30914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30915 | } |
30916 | { | |
30917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30918 | (arg1)->Check(arg2); | |
30919 | ||
30920 | wxPyEndAllowThreads(__tstate); | |
30921 | if (PyErr_Occurred()) SWIG_fail; | |
30922 | } | |
30923 | Py_INCREF(Py_None); resultobj = Py_None; | |
30924 | return resultobj; | |
30925 | fail: | |
30926 | return NULL; | |
30927 | } | |
30928 | ||
30929 | ||
2f4c0a16 | 30930 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30931 | PyObject *resultobj; |
30932 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30933 | bool result; | |
30934 | PyObject * obj0 = 0 ; | |
30935 | char *kwnames[] = { | |
30936 | (char *) "self", NULL | |
30937 | }; | |
30938 | ||
30939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30942 | { |
30943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30944 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
30945 | ||
30946 | wxPyEndAllowThreads(__tstate); | |
30947 | if (PyErr_Occurred()) SWIG_fail; | |
30948 | } | |
02a34c4c | 30949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30950 | return resultobj; |
30951 | fail: | |
30952 | return NULL; | |
30953 | } | |
30954 | ||
30955 | ||
2f4c0a16 | 30956 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30957 | PyObject *resultobj; |
30958 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30959 | PyObject * obj0 = 0 ; | |
30960 | char *kwnames[] = { | |
30961 | (char *) "self", NULL | |
30962 | }; | |
30963 | ||
30964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30967 | { |
30968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30969 | (arg1)->Toggle(); | |
30970 | ||
30971 | wxPyEndAllowThreads(__tstate); | |
30972 | if (PyErr_Occurred()) SWIG_fail; | |
30973 | } | |
30974 | Py_INCREF(Py_None); resultobj = Py_None; | |
30975 | return resultobj; | |
30976 | fail: | |
30977 | return NULL; | |
30978 | } | |
30979 | ||
30980 | ||
2f4c0a16 | 30981 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30982 | PyObject *resultobj; |
30983 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30984 | wxString *arg2 = 0 ; | |
423f194a | 30985 | bool temp2 = False ; |
d14a1e28 RD |
30986 | PyObject * obj0 = 0 ; |
30987 | PyObject * obj1 = 0 ; | |
30988 | char *kwnames[] = { | |
30989 | (char *) "self",(char *) "str", NULL | |
30990 | }; | |
30991 | ||
30992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30995 | { |
30996 | arg2 = wxString_in_helper(obj1); | |
30997 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30998 | temp2 = True; |
d14a1e28 RD |
30999 | } |
31000 | { | |
31001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31002 | (arg1)->SetHelp((wxString const &)*arg2); | |
31003 | ||
31004 | wxPyEndAllowThreads(__tstate); | |
31005 | if (PyErr_Occurred()) SWIG_fail; | |
31006 | } | |
31007 | Py_INCREF(Py_None); resultobj = Py_None; | |
31008 | { | |
31009 | if (temp2) | |
31010 | delete arg2; | |
31011 | } | |
31012 | return resultobj; | |
31013 | fail: | |
31014 | { | |
31015 | if (temp2) | |
31016 | delete arg2; | |
31017 | } | |
31018 | return NULL; | |
31019 | } | |
31020 | ||
31021 | ||
2f4c0a16 | 31022 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31023 | PyObject *resultobj; |
31024 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31025 | wxString *result; | |
31026 | PyObject * obj0 = 0 ; | |
31027 | char *kwnames[] = { | |
31028 | (char *) "self", NULL | |
31029 | }; | |
31030 | ||
31031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31034 | { |
31035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31036 | { | |
31037 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
31038 | result = (wxString *) &_result_ref; | |
31039 | } | |
31040 | ||
31041 | wxPyEndAllowThreads(__tstate); | |
31042 | if (PyErr_Occurred()) SWIG_fail; | |
31043 | } | |
0f774bef RD |
31044 | { |
31045 | #if wxUSE_UNICODE | |
31046 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31047 | #else | |
31048 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31049 | #endif | |
31050 | } | |
d14a1e28 RD |
31051 | return resultobj; |
31052 | fail: | |
31053 | return NULL; | |
31054 | } | |
31055 | ||
31056 | ||
2f4c0a16 | 31057 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31058 | PyObject *resultobj; |
31059 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31060 | wxAcceleratorEntry *result; | |
31061 | PyObject * obj0 = 0 ; | |
31062 | char *kwnames[] = { | |
31063 | (char *) "self", NULL | |
31064 | }; | |
31065 | ||
31066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31069 | { |
31070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31071 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
31072 | ||
31073 | wxPyEndAllowThreads(__tstate); | |
31074 | if (PyErr_Occurred()) SWIG_fail; | |
31075 | } | |
2f4c0a16 | 31076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
31077 | return resultobj; |
31078 | fail: | |
31079 | return NULL; | |
31080 | } | |
31081 | ||
31082 | ||
2f4c0a16 | 31083 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31084 | PyObject *resultobj; |
31085 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31086 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
31087 | PyObject * obj0 = 0 ; | |
31088 | PyObject * obj1 = 0 ; | |
31089 | char *kwnames[] = { | |
31090 | (char *) "self",(char *) "accel", NULL | |
31091 | }; | |
31092 | ||
31093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
31097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31098 | { |
31099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31100 | (arg1)->SetAccel(arg2); | |
31101 | ||
31102 | wxPyEndAllowThreads(__tstate); | |
31103 | if (PyErr_Occurred()) SWIG_fail; | |
31104 | } | |
31105 | Py_INCREF(Py_None); resultobj = Py_None; | |
31106 | return resultobj; | |
31107 | fail: | |
31108 | return NULL; | |
31109 | } | |
31110 | ||
31111 | ||
2f4c0a16 | 31112 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31113 | PyObject *resultobj; |
31114 | int result; | |
31115 | char *kwnames[] = { | |
31116 | NULL | |
31117 | }; | |
31118 | ||
31119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31120 | { | |
31121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31122 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
31123 | ||
31124 | wxPyEndAllowThreads(__tstate); | |
31125 | if (PyErr_Occurred()) SWIG_fail; | |
31126 | } | |
2f4c0a16 | 31127 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31128 | return resultobj; |
31129 | fail: | |
31130 | return NULL; | |
31131 | } | |
31132 | ||
31133 | ||
2f4c0a16 | 31134 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31135 | PyObject *resultobj; |
31136 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31137 | wxBitmap *arg2 = 0 ; | |
31138 | PyObject * obj0 = 0 ; | |
31139 | PyObject * obj1 = 0 ; | |
31140 | char *kwnames[] = { | |
31141 | (char *) "self",(char *) "bitmap", NULL | |
31142 | }; | |
31143 | ||
31144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31148 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31149 | SWIG_fail; | |
d14a1e28 | 31150 | if (arg2 == NULL) { |
2f4c0a16 RD |
31151 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31152 | SWIG_fail; | |
d14a1e28 RD |
31153 | } |
31154 | { | |
31155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31156 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
31157 | ||
31158 | wxPyEndAllowThreads(__tstate); | |
31159 | if (PyErr_Occurred()) SWIG_fail; | |
31160 | } | |
31161 | Py_INCREF(Py_None); resultobj = Py_None; | |
31162 | return resultobj; | |
31163 | fail: | |
31164 | return NULL; | |
31165 | } | |
31166 | ||
31167 | ||
2f4c0a16 | 31168 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31169 | PyObject *resultobj; |
31170 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31171 | wxBitmap *result; | |
31172 | PyObject * obj0 = 0 ; | |
31173 | char *kwnames[] = { | |
31174 | (char *) "self", NULL | |
31175 | }; | |
31176 | ||
31177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31180 | { |
31181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31182 | { | |
31183 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
31184 | result = (wxBitmap *) &_result_ref; | |
31185 | } | |
31186 | ||
31187 | wxPyEndAllowThreads(__tstate); | |
31188 | if (PyErr_Occurred()) SWIG_fail; | |
31189 | } | |
2f4c0a16 | 31190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
31191 | return resultobj; |
31192 | fail: | |
31193 | return NULL; | |
31194 | } | |
31195 | ||
31196 | ||
2f4c0a16 | 31197 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31198 | PyObject *obj; |
31199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31200 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
31201 | Py_INCREF(obj); | |
31202 | return Py_BuildValue((char *)""); | |
31203 | } | |
8edf1c75 | 31204 | static int _wrap_ControlNameStr_set(PyObject *) { |
cbd72d4f RD |
31205 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
31206 | return 1; | |
31207 | } | |
31208 | ||
31209 | ||
31210 | static PyObject *_wrap_ControlNameStr_get() { | |
31211 | PyObject *pyobj; | |
31212 | ||
31213 | { | |
31214 | #if wxUSE_UNICODE | |
31215 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31216 | #else | |
31217 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31218 | #endif | |
31219 | } | |
31220 | return pyobj; | |
31221 | } | |
31222 | ||
31223 | ||
2f4c0a16 | 31224 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31225 | PyObject *resultobj; |
31226 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 31227 | int arg2 ; |
d14a1e28 RD |
31228 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31229 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31230 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31231 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31232 | long arg5 = (long) 0 ; | |
31233 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31234 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31235 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
31236 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31237 | wxControl *result; | |
31238 | wxPoint temp3 ; | |
31239 | wxSize temp4 ; | |
423f194a | 31240 | bool temp7 = False ; |
d14a1e28 | 31241 | PyObject * obj0 = 0 ; |
8edf1c75 | 31242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31243 | PyObject * obj2 = 0 ; |
31244 | PyObject * obj3 = 0 ; | |
8edf1c75 | 31245 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31246 | PyObject * obj5 = 0 ; |
31247 | PyObject * obj6 = 0 ; | |
31248 | char *kwnames[] = { | |
31249 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31250 | }; | |
31251 | ||
8edf1c75 | 31252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
31253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
31254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31255 | arg2 = (int) SWIG_AsInt(obj1); | |
31256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31257 | if (obj2) { |
31258 | { | |
31259 | arg3 = &temp3; | |
31260 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31261 | } | |
31262 | } | |
31263 | if (obj3) { | |
31264 | { | |
31265 | arg4 = &temp4; | |
31266 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31267 | } | |
31268 | } | |
8edf1c75 | 31269 | if (obj4) { |
2f4c0a16 RD |
31270 | arg5 = (long) SWIG_AsLong(obj4); |
31271 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 31272 | } |
d14a1e28 | 31273 | if (obj5) { |
2f4c0a16 RD |
31274 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
31275 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31276 | SWIG_fail; | |
d14a1e28 | 31277 | if (arg6 == NULL) { |
2f4c0a16 RD |
31278 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31279 | SWIG_fail; | |
d14a1e28 RD |
31280 | } |
31281 | } | |
31282 | if (obj6) { | |
31283 | { | |
31284 | arg7 = wxString_in_helper(obj6); | |
31285 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 31286 | temp7 = True; |
d14a1e28 RD |
31287 | } |
31288 | } | |
31289 | { | |
31290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31291 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31292 | ||
31293 | wxPyEndAllowThreads(__tstate); | |
31294 | if (PyErr_Occurred()) SWIG_fail; | |
31295 | } | |
31296 | { | |
31297 | resultobj = wxPyMake_wxObject(result); | |
31298 | } | |
31299 | { | |
31300 | if (temp7) | |
31301 | delete arg7; | |
31302 | } | |
31303 | return resultobj; | |
31304 | fail: | |
31305 | { | |
31306 | if (temp7) | |
31307 | delete arg7; | |
31308 | } | |
31309 | return NULL; | |
31310 | } | |
31311 | ||
31312 | ||
2f4c0a16 | 31313 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31314 | PyObject *resultobj; |
31315 | wxControl *result; | |
31316 | char *kwnames[] = { | |
31317 | NULL | |
31318 | }; | |
31319 | ||
31320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
31321 | { | |
31322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31323 | result = (wxControl *)new wxControl(); | |
31324 | ||
31325 | wxPyEndAllowThreads(__tstate); | |
31326 | if (PyErr_Occurred()) SWIG_fail; | |
31327 | } | |
31328 | { | |
31329 | resultobj = wxPyMake_wxObject(result); | |
31330 | } | |
31331 | return resultobj; | |
31332 | fail: | |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
2f4c0a16 | 31337 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31338 | PyObject *resultobj; |
31339 | wxControl *arg1 = (wxControl *) 0 ; | |
31340 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 31341 | int arg3 ; |
d14a1e28 RD |
31342 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
31343 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31344 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31345 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31346 | long arg6 = (long) 0 ; | |
31347 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31348 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31349 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
31350 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31351 | bool result; | |
31352 | wxPoint temp4 ; | |
31353 | wxSize temp5 ; | |
423f194a | 31354 | bool temp8 = False ; |
d14a1e28 RD |
31355 | PyObject * obj0 = 0 ; |
31356 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31357 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31358 | PyObject * obj3 = 0 ; |
31359 | PyObject * obj4 = 0 ; | |
8edf1c75 | 31360 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
31361 | PyObject * obj6 = 0 ; |
31362 | PyObject * obj7 = 0 ; | |
31363 | char *kwnames[] = { | |
31364 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31365 | }; | |
31366 | ||
8edf1c75 | 31367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
31368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31372 | arg3 = (int) SWIG_AsInt(obj2); | |
31373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31374 | if (obj3) { |
31375 | { | |
31376 | arg4 = &temp4; | |
31377 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31378 | } | |
31379 | } | |
31380 | if (obj4) { | |
31381 | { | |
31382 | arg5 = &temp5; | |
31383 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31384 | } | |
31385 | } | |
8edf1c75 | 31386 | if (obj5) { |
2f4c0a16 RD |
31387 | arg6 = (long) SWIG_AsLong(obj5); |
31388 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 31389 | } |
d14a1e28 | 31390 | if (obj6) { |
2f4c0a16 RD |
31391 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
31392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31393 | SWIG_fail; | |
d14a1e28 | 31394 | if (arg7 == NULL) { |
2f4c0a16 RD |
31395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31396 | SWIG_fail; | |
d14a1e28 RD |
31397 | } |
31398 | } | |
31399 | if (obj7) { | |
31400 | { | |
31401 | arg8 = wxString_in_helper(obj7); | |
31402 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 31403 | temp8 = True; |
d14a1e28 RD |
31404 | } |
31405 | } | |
31406 | { | |
31407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31408 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31409 | ||
31410 | wxPyEndAllowThreads(__tstate); | |
31411 | if (PyErr_Occurred()) SWIG_fail; | |
31412 | } | |
02a34c4c | 31413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31414 | { |
31415 | if (temp8) | |
31416 | delete arg8; | |
31417 | } | |
31418 | return resultobj; | |
31419 | fail: | |
31420 | { | |
31421 | if (temp8) | |
31422 | delete arg8; | |
31423 | } | |
31424 | return NULL; | |
31425 | } | |
31426 | ||
31427 | ||
2f4c0a16 | 31428 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31429 | PyObject *resultobj; |
31430 | wxControl *arg1 = (wxControl *) 0 ; | |
31431 | wxCommandEvent *arg2 = 0 ; | |
31432 | PyObject * obj0 = 0 ; | |
31433 | PyObject * obj1 = 0 ; | |
31434 | char *kwnames[] = { | |
31435 | (char *) "self",(char *) "event", NULL | |
31436 | }; | |
31437 | ||
31438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
31442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31443 | SWIG_fail; | |
d14a1e28 | 31444 | if (arg2 == NULL) { |
2f4c0a16 RD |
31445 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31446 | SWIG_fail; | |
d14a1e28 RD |
31447 | } |
31448 | { | |
31449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31450 | (arg1)->Command(*arg2); | |
31451 | ||
31452 | wxPyEndAllowThreads(__tstate); | |
31453 | if (PyErr_Occurred()) SWIG_fail; | |
31454 | } | |
31455 | Py_INCREF(Py_None); resultobj = Py_None; | |
31456 | return resultobj; | |
31457 | fail: | |
31458 | return NULL; | |
31459 | } | |
31460 | ||
31461 | ||
2f4c0a16 | 31462 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31463 | PyObject *resultobj; |
31464 | wxControl *arg1 = (wxControl *) 0 ; | |
31465 | wxString result; | |
31466 | PyObject * obj0 = 0 ; | |
31467 | char *kwnames[] = { | |
31468 | (char *) "self", NULL | |
31469 | }; | |
31470 | ||
31471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31474 | { |
31475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31476 | result = (arg1)->GetLabel(); | |
31477 | ||
31478 | wxPyEndAllowThreads(__tstate); | |
31479 | if (PyErr_Occurred()) SWIG_fail; | |
31480 | } | |
31481 | { | |
31482 | #if wxUSE_UNICODE | |
31483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31484 | #else | |
31485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31486 | #endif | |
31487 | } | |
31488 | return resultobj; | |
31489 | fail: | |
31490 | return NULL; | |
31491 | } | |
31492 | ||
31493 | ||
2f4c0a16 | 31494 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31495 | PyObject *resultobj; |
31496 | wxControl *arg1 = (wxControl *) 0 ; | |
31497 | wxString *arg2 = 0 ; | |
423f194a | 31498 | bool temp2 = False ; |
d14a1e28 RD |
31499 | PyObject * obj0 = 0 ; |
31500 | PyObject * obj1 = 0 ; | |
31501 | char *kwnames[] = { | |
31502 | (char *) "self",(char *) "label", NULL | |
31503 | }; | |
31504 | ||
31505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31508 | { |
31509 | arg2 = wxString_in_helper(obj1); | |
31510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31511 | temp2 = True; |
d14a1e28 RD |
31512 | } |
31513 | { | |
31514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31515 | (arg1)->SetLabel((wxString const &)*arg2); | |
31516 | ||
31517 | wxPyEndAllowThreads(__tstate); | |
31518 | if (PyErr_Occurred()) SWIG_fail; | |
31519 | } | |
31520 | Py_INCREF(Py_None); resultobj = Py_None; | |
31521 | { | |
31522 | if (temp2) | |
31523 | delete arg2; | |
31524 | } | |
31525 | return resultobj; | |
31526 | fail: | |
31527 | { | |
31528 | if (temp2) | |
31529 | delete arg2; | |
31530 | } | |
31531 | return NULL; | |
31532 | } | |
31533 | ||
31534 | ||
2f4c0a16 | 31535 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31536 | PyObject *obj; |
31537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31538 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
31539 | Py_INCREF(obj); | |
31540 | return Py_BuildValue((char *)""); | |
31541 | } | |
2f4c0a16 | 31542 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31543 | PyObject *resultobj; |
31544 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31545 | wxString *arg2 = 0 ; | |
31546 | PyObject *arg3 = (PyObject *) NULL ; | |
31547 | int result; | |
423f194a | 31548 | bool temp2 = False ; |
d14a1e28 RD |
31549 | PyObject * obj0 = 0 ; |
31550 | PyObject * obj1 = 0 ; | |
31551 | PyObject * obj2 = 0 ; | |
31552 | char *kwnames[] = { | |
31553 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
31554 | }; | |
31555 | ||
31556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31559 | { |
31560 | arg2 = wxString_in_helper(obj1); | |
31561 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31562 | temp2 = True; |
d14a1e28 RD |
31563 | } |
31564 | if (obj2) { | |
31565 | arg3 = obj2; | |
31566 | } | |
31567 | { | |
31568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31569 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
31570 | ||
31571 | wxPyEndAllowThreads(__tstate); | |
31572 | if (PyErr_Occurred()) SWIG_fail; | |
31573 | } | |
2f4c0a16 | 31574 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31575 | { |
31576 | if (temp2) | |
31577 | delete arg2; | |
31578 | } | |
31579 | return resultobj; | |
31580 | fail: | |
31581 | { | |
31582 | if (temp2) | |
31583 | delete arg2; | |
31584 | } | |
31585 | return NULL; | |
31586 | } | |
31587 | ||
31588 | ||
2f4c0a16 | 31589 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31590 | PyObject *resultobj; |
31591 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31592 | wxArrayString *arg2 = 0 ; | |
0ffb2aa6 | 31593 | bool temp2 = False ; |
d14a1e28 RD |
31594 | PyObject * obj0 = 0 ; |
31595 | PyObject * obj1 = 0 ; | |
31596 | char *kwnames[] = { | |
31597 | (char *) "self",(char *) "strings", NULL | |
31598 | }; | |
31599 | ||
31600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31603 | { |
31604 | if (! PySequence_Check(obj1)) { | |
31605 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
31606 | SWIG_fail; | |
31607 | } | |
31608 | arg2 = new wxArrayString; | |
0ffb2aa6 | 31609 | temp2 = True; |
d14a1e28 RD |
31610 | int i, len=PySequence_Length(obj1); |
31611 | for (i=0; i<len; i++) { | |
31612 | PyObject* item = PySequence_GetItem(obj1, i); | |
31613 | #if wxUSE_UNICODE | |
31614 | PyObject* str = PyObject_Unicode(item); | |
31615 | #else | |
31616 | PyObject* str = PyObject_Str(item); | |
31617 | #endif | |
31618 | arg2->Add(Py2wxString(str)); | |
31619 | Py_DECREF(item); | |
31620 | Py_DECREF(str); | |
31621 | } | |
31622 | } | |
31623 | { | |
31624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31625 | (arg1)->Append((wxArrayString const &)*arg2); | |
31626 | ||
31627 | wxPyEndAllowThreads(__tstate); | |
31628 | if (PyErr_Occurred()) SWIG_fail; | |
31629 | } | |
31630 | Py_INCREF(Py_None); resultobj = Py_None; | |
31631 | { | |
0ffb2aa6 | 31632 | if (temp2) delete arg2; |
d14a1e28 RD |
31633 | } |
31634 | return resultobj; | |
31635 | fail: | |
31636 | { | |
0ffb2aa6 | 31637 | if (temp2) delete arg2; |
d14a1e28 RD |
31638 | } |
31639 | return NULL; | |
31640 | } | |
31641 | ||
31642 | ||
2f4c0a16 | 31643 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31644 | PyObject *resultobj; |
31645 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31646 | wxString *arg2 = 0 ; | |
31647 | int arg3 ; | |
31648 | PyObject *arg4 = (PyObject *) NULL ; | |
31649 | int result; | |
423f194a | 31650 | bool temp2 = False ; |
d14a1e28 RD |
31651 | PyObject * obj0 = 0 ; |
31652 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31653 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31654 | PyObject * obj3 = 0 ; |
31655 | char *kwnames[] = { | |
31656 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
31657 | }; | |
31658 | ||
8edf1c75 | 31659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
31660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31662 | { |
31663 | arg2 = wxString_in_helper(obj1); | |
31664 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31665 | temp2 = True; |
d14a1e28 | 31666 | } |
2f4c0a16 RD |
31667 | arg3 = (int) SWIG_AsInt(obj2); |
31668 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31669 | if (obj3) { |
31670 | arg4 = obj3; | |
31671 | } | |
31672 | { | |
31673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31674 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
31675 | ||
31676 | wxPyEndAllowThreads(__tstate); | |
31677 | if (PyErr_Occurred()) SWIG_fail; | |
31678 | } | |
2f4c0a16 | 31679 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31680 | { |
31681 | if (temp2) | |
31682 | delete arg2; | |
31683 | } | |
31684 | return resultobj; | |
31685 | fail: | |
31686 | { | |
31687 | if (temp2) | |
31688 | delete arg2; | |
31689 | } | |
31690 | return NULL; | |
31691 | } | |
31692 | ||
31693 | ||
2f4c0a16 | 31694 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31695 | PyObject *resultobj; |
31696 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31697 | PyObject * obj0 = 0 ; | |
31698 | char *kwnames[] = { | |
31699 | (char *) "self", NULL | |
31700 | }; | |
31701 | ||
31702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31705 | { |
31706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31707 | (arg1)->Clear(); | |
31708 | ||
31709 | wxPyEndAllowThreads(__tstate); | |
31710 | if (PyErr_Occurred()) SWIG_fail; | |
31711 | } | |
31712 | Py_INCREF(Py_None); resultobj = Py_None; | |
31713 | return resultobj; | |
31714 | fail: | |
31715 | return NULL; | |
31716 | } | |
31717 | ||
31718 | ||
2f4c0a16 | 31719 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31720 | PyObject *resultobj; |
31721 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31722 | int arg2 ; | |
31723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31725 | char *kwnames[] = { |
31726 | (char *) "self",(char *) "n", NULL | |
31727 | }; | |
31728 | ||
8edf1c75 | 31729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31732 | arg2 = (int) SWIG_AsInt(obj1); | |
31733 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31734 | { |
31735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31736 | (arg1)->Delete(arg2); | |
31737 | ||
31738 | wxPyEndAllowThreads(__tstate); | |
31739 | if (PyErr_Occurred()) SWIG_fail; | |
31740 | } | |
31741 | Py_INCREF(Py_None); resultobj = Py_None; | |
31742 | return resultobj; | |
31743 | fail: | |
31744 | return NULL; | |
31745 | } | |
31746 | ||
31747 | ||
2f4c0a16 | 31748 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31749 | PyObject *resultobj; |
31750 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31751 | int result; | |
31752 | PyObject * obj0 = 0 ; | |
31753 | char *kwnames[] = { | |
31754 | (char *) "self", NULL | |
31755 | }; | |
31756 | ||
31757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31760 | { |
31761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31762 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
31763 | ||
31764 | wxPyEndAllowThreads(__tstate); | |
31765 | if (PyErr_Occurred()) SWIG_fail; | |
31766 | } | |
2f4c0a16 | 31767 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31768 | return resultobj; |
31769 | fail: | |
31770 | return NULL; | |
31771 | } | |
31772 | ||
31773 | ||
2f4c0a16 | 31774 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31775 | PyObject *resultobj; |
31776 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31777 | bool result; | |
31778 | PyObject * obj0 = 0 ; | |
31779 | char *kwnames[] = { | |
31780 | (char *) "self", NULL | |
31781 | }; | |
31782 | ||
31783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31786 | { |
31787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31788 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
31789 | ||
31790 | wxPyEndAllowThreads(__tstate); | |
31791 | if (PyErr_Occurred()) SWIG_fail; | |
31792 | } | |
02a34c4c | 31793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31794 | return resultobj; |
31795 | fail: | |
31796 | return NULL; | |
31797 | } | |
31798 | ||
31799 | ||
2f4c0a16 | 31800 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31801 | PyObject *resultobj; |
31802 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31803 | int arg2 ; | |
31804 | wxString result; | |
31805 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31807 | char *kwnames[] = { |
31808 | (char *) "self",(char *) "n", NULL | |
31809 | }; | |
31810 | ||
8edf1c75 | 31811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31814 | arg2 = (int) SWIG_AsInt(obj1); | |
31815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31816 | { |
31817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31818 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
31819 | ||
31820 | wxPyEndAllowThreads(__tstate); | |
31821 | if (PyErr_Occurred()) SWIG_fail; | |
31822 | } | |
31823 | { | |
31824 | #if wxUSE_UNICODE | |
31825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31826 | #else | |
31827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31828 | #endif | |
31829 | } | |
31830 | return resultobj; | |
31831 | fail: | |
31832 | return NULL; | |
31833 | } | |
31834 | ||
31835 | ||
2f4c0a16 | 31836 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31837 | PyObject *resultobj; |
31838 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31839 | wxArrayString result; | |
31840 | PyObject * obj0 = 0 ; | |
31841 | char *kwnames[] = { | |
31842 | (char *) "self", NULL | |
31843 | }; | |
31844 | ||
31845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31848 | { |
31849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31850 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
31851 | ||
31852 | wxPyEndAllowThreads(__tstate); | |
31853 | if (PyErr_Occurred()) SWIG_fail; | |
31854 | } | |
31855 | { | |
31856 | resultobj = wxArrayString2PyList_helper(result); | |
31857 | } | |
31858 | return resultobj; | |
31859 | fail: | |
31860 | return NULL; | |
31861 | } | |
31862 | ||
31863 | ||
2f4c0a16 | 31864 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31865 | PyObject *resultobj; |
31866 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31867 | int arg2 ; | |
31868 | wxString *arg3 = 0 ; | |
423f194a | 31869 | bool temp3 = False ; |
d14a1e28 | 31870 | PyObject * obj0 = 0 ; |
8edf1c75 | 31871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31872 | PyObject * obj2 = 0 ; |
31873 | char *kwnames[] = { | |
31874 | (char *) "self",(char *) "n",(char *) "s", NULL | |
31875 | }; | |
31876 | ||
8edf1c75 | 31877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
31878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31880 | arg2 = (int) SWIG_AsInt(obj1); | |
31881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31882 | { |
31883 | arg3 = wxString_in_helper(obj2); | |
31884 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 31885 | temp3 = True; |
d14a1e28 RD |
31886 | } |
31887 | { | |
31888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31889 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
31890 | ||
31891 | wxPyEndAllowThreads(__tstate); | |
31892 | if (PyErr_Occurred()) SWIG_fail; | |
31893 | } | |
31894 | Py_INCREF(Py_None); resultobj = Py_None; | |
31895 | { | |
31896 | if (temp3) | |
31897 | delete arg3; | |
31898 | } | |
31899 | return resultobj; | |
31900 | fail: | |
31901 | { | |
31902 | if (temp3) | |
31903 | delete arg3; | |
31904 | } | |
31905 | return NULL; | |
31906 | } | |
31907 | ||
31908 | ||
2f4c0a16 | 31909 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31910 | PyObject *resultobj; |
31911 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31912 | wxString *arg2 = 0 ; | |
31913 | int result; | |
423f194a | 31914 | bool temp2 = False ; |
d14a1e28 RD |
31915 | PyObject * obj0 = 0 ; |
31916 | PyObject * obj1 = 0 ; | |
31917 | char *kwnames[] = { | |
31918 | (char *) "self",(char *) "s", NULL | |
31919 | }; | |
31920 | ||
31921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31924 | { |
31925 | arg2 = wxString_in_helper(obj1); | |
31926 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31927 | temp2 = True; |
d14a1e28 RD |
31928 | } |
31929 | { | |
31930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31931 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
31932 | ||
31933 | wxPyEndAllowThreads(__tstate); | |
31934 | if (PyErr_Occurred()) SWIG_fail; | |
31935 | } | |
2f4c0a16 | 31936 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31937 | { |
31938 | if (temp2) | |
31939 | delete arg2; | |
31940 | } | |
31941 | return resultobj; | |
31942 | fail: | |
31943 | { | |
31944 | if (temp2) | |
31945 | delete arg2; | |
31946 | } | |
31947 | return NULL; | |
31948 | } | |
31949 | ||
31950 | ||
2f4c0a16 | 31951 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31952 | PyObject *resultobj; |
31953 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31954 | int arg2 ; | |
31955 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31957 | char *kwnames[] = { |
31958 | (char *) "self",(char *) "n", NULL | |
31959 | }; | |
31960 | ||
8edf1c75 | 31961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31964 | arg2 = (int) SWIG_AsInt(obj1); | |
31965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31966 | { |
31967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31968 | (arg1)->Select(arg2); | |
31969 | ||
31970 | wxPyEndAllowThreads(__tstate); | |
31971 | if (PyErr_Occurred()) SWIG_fail; | |
31972 | } | |
31973 | Py_INCREF(Py_None); resultobj = Py_None; | |
31974 | return resultobj; | |
31975 | fail: | |
31976 | return NULL; | |
31977 | } | |
31978 | ||
31979 | ||
2f4c0a16 | 31980 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31981 | PyObject *resultobj; |
31982 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31983 | int result; | |
31984 | PyObject * obj0 = 0 ; | |
31985 | char *kwnames[] = { | |
31986 | (char *) "self", NULL | |
31987 | }; | |
31988 | ||
31989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
31991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31992 | { |
31993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31994 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
31995 | ||
31996 | wxPyEndAllowThreads(__tstate); | |
31997 | if (PyErr_Occurred()) SWIG_fail; | |
31998 | } | |
2f4c0a16 | 31999 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32000 | return resultobj; |
32001 | fail: | |
32002 | return NULL; | |
32003 | } | |
32004 | ||
32005 | ||
2f4c0a16 | 32006 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32007 | PyObject *resultobj; |
32008 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32009 | wxString result; | |
32010 | PyObject * obj0 = 0 ; | |
32011 | char *kwnames[] = { | |
32012 | (char *) "self", NULL | |
32013 | }; | |
32014 | ||
32015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32018 | { |
32019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32020 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32021 | ||
32022 | wxPyEndAllowThreads(__tstate); | |
32023 | if (PyErr_Occurred()) SWIG_fail; | |
32024 | } | |
32025 | { | |
32026 | #if wxUSE_UNICODE | |
32027 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32028 | #else | |
32029 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32030 | #endif | |
32031 | } | |
32032 | return resultobj; | |
32033 | fail: | |
32034 | return NULL; | |
32035 | } | |
32036 | ||
32037 | ||
2f4c0a16 | 32038 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32039 | PyObject *resultobj; |
32040 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32041 | int arg2 ; | |
32042 | PyObject *result; | |
32043 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32045 | char *kwnames[] = { |
32046 | (char *) "self",(char *) "n", NULL | |
32047 | }; | |
32048 | ||
8edf1c75 | 32049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32052 | arg2 = (int) SWIG_AsInt(obj1); | |
32053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32054 | { |
32055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32056 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
32057 | ||
32058 | wxPyEndAllowThreads(__tstate); | |
32059 | if (PyErr_Occurred()) SWIG_fail; | |
32060 | } | |
32061 | resultobj = result; | |
32062 | return resultobj; | |
32063 | fail: | |
32064 | return NULL; | |
32065 | } | |
32066 | ||
32067 | ||
2f4c0a16 | 32068 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32069 | PyObject *resultobj; |
32070 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32071 | int arg2 ; | |
32072 | PyObject *arg3 = (PyObject *) 0 ; | |
32073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32075 | PyObject * obj2 = 0 ; |
32076 | char *kwnames[] = { | |
32077 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
32078 | }; | |
32079 | ||
8edf1c75 | 32080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32083 | arg2 = (int) SWIG_AsInt(obj1); | |
32084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32085 | arg3 = obj2; |
32086 | { | |
32087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32088 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
32089 | ||
32090 | wxPyEndAllowThreads(__tstate); | |
32091 | if (PyErr_Occurred()) SWIG_fail; | |
32092 | } | |
32093 | Py_INCREF(Py_None); resultobj = Py_None; | |
32094 | return resultobj; | |
32095 | fail: | |
32096 | return NULL; | |
32097 | } | |
32098 | ||
32099 | ||
2f4c0a16 | 32100 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32101 | PyObject *obj; |
32102 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32103 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
32104 | Py_INCREF(obj); | |
32105 | return Py_BuildValue((char *)""); | |
32106 | } | |
2f4c0a16 | 32107 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32108 | PyObject *obj; |
32109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32110 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
32111 | Py_INCREF(obj); | |
32112 | return Py_BuildValue((char *)""); | |
32113 | } | |
2f4c0a16 | 32114 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32115 | PyObject *resultobj; |
32116 | wxSizerItem *result; | |
32117 | char *kwnames[] = { | |
32118 | NULL | |
32119 | }; | |
32120 | ||
32121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
32122 | { | |
32123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32124 | result = (wxSizerItem *)new wxSizerItem(); | |
32125 | ||
32126 | wxPyEndAllowThreads(__tstate); | |
32127 | if (PyErr_Occurred()) SWIG_fail; | |
32128 | } | |
2f4c0a16 | 32129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32130 | return resultobj; |
32131 | fail: | |
32132 | return NULL; | |
32133 | } | |
32134 | ||
32135 | ||
2f4c0a16 | 32136 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32137 | PyObject *resultobj; |
32138 | int arg1 ; | |
32139 | int arg2 ; | |
32140 | int arg3 ; | |
32141 | int arg4 ; | |
32142 | int arg5 ; | |
32143 | wxObject *arg6 = (wxObject *) 0 ; | |
32144 | wxSizerItem *result; | |
8edf1c75 RD |
32145 | PyObject * obj0 = 0 ; |
32146 | PyObject * obj1 = 0 ; | |
32147 | PyObject * obj2 = 0 ; | |
32148 | PyObject * obj3 = 0 ; | |
32149 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32150 | PyObject * obj5 = 0 ; |
32151 | char *kwnames[] = { | |
32152 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32153 | }; | |
32154 | ||
8edf1c75 | 32155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
32156 | arg1 = (int) SWIG_AsInt(obj0); |
32157 | if (PyErr_Occurred()) SWIG_fail; | |
32158 | arg2 = (int) SWIG_AsInt(obj1); | |
32159 | if (PyErr_Occurred()) SWIG_fail; | |
32160 | arg3 = (int) SWIG_AsInt(obj2); | |
32161 | if (PyErr_Occurred()) SWIG_fail; | |
32162 | arg4 = (int) SWIG_AsInt(obj3); | |
32163 | if (PyErr_Occurred()) SWIG_fail; | |
32164 | arg5 = (int) SWIG_AsInt(obj4); | |
32165 | if (PyErr_Occurred()) SWIG_fail; | |
32166 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
32167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32168 | { |
32169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32170 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
32171 | ||
32172 | wxPyEndAllowThreads(__tstate); | |
32173 | if (PyErr_Occurred()) SWIG_fail; | |
32174 | } | |
2f4c0a16 | 32175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32176 | return resultobj; |
32177 | fail: | |
32178 | return NULL; | |
32179 | } | |
32180 | ||
32181 | ||
2f4c0a16 | 32182 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32183 | PyObject *resultobj; |
32184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32185 | int arg2 ; | |
32186 | int arg3 ; | |
32187 | int arg4 ; | |
32188 | wxObject *arg5 = (wxObject *) 0 ; | |
32189 | wxSizerItem *result; | |
32190 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32191 | PyObject * obj1 = 0 ; |
32192 | PyObject * obj2 = 0 ; | |
32193 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32194 | PyObject * obj4 = 0 ; |
32195 | char *kwnames[] = { | |
32196 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32197 | }; | |
32198 | ||
8edf1c75 | 32199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32202 | arg2 = (int) SWIG_AsInt(obj1); | |
32203 | if (PyErr_Occurred()) SWIG_fail; | |
32204 | arg3 = (int) SWIG_AsInt(obj2); | |
32205 | if (PyErr_Occurred()) SWIG_fail; | |
32206 | arg4 = (int) SWIG_AsInt(obj3); | |
32207 | if (PyErr_Occurred()) SWIG_fail; | |
32208 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
32209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32210 | { |
32211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32212 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32213 | ||
32214 | wxPyEndAllowThreads(__tstate); | |
32215 | if (PyErr_Occurred()) SWIG_fail; | |
32216 | } | |
2f4c0a16 | 32217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32218 | return resultobj; |
32219 | fail: | |
32220 | return NULL; | |
32221 | } | |
32222 | ||
32223 | ||
2f4c0a16 | 32224 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32225 | PyObject *resultobj; |
32226 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32227 | int arg2 ; | |
32228 | int arg3 ; | |
32229 | int arg4 ; | |
32230 | wxObject *arg5 = (wxObject *) 0 ; | |
32231 | wxSizerItem *result; | |
32232 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32233 | PyObject * obj1 = 0 ; |
32234 | PyObject * obj2 = 0 ; | |
32235 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32236 | PyObject * obj4 = 0 ; |
32237 | char *kwnames[] = { | |
32238 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32239 | }; | |
32240 | ||
8edf1c75 | 32241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
32243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32244 | arg2 = (int) SWIG_AsInt(obj1); | |
32245 | if (PyErr_Occurred()) SWIG_fail; | |
32246 | arg3 = (int) SWIG_AsInt(obj2); | |
32247 | if (PyErr_Occurred()) SWIG_fail; | |
32248 | arg4 = (int) SWIG_AsInt(obj3); | |
32249 | if (PyErr_Occurred()) SWIG_fail; | |
32250 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
32251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32252 | { |
32253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32254 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32255 | ||
32256 | wxPyEndAllowThreads(__tstate); | |
32257 | if (PyErr_Occurred()) SWIG_fail; | |
32258 | } | |
2f4c0a16 | 32259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32260 | return resultobj; |
32261 | fail: | |
32262 | return NULL; | |
32263 | } | |
32264 | ||
32265 | ||
2f4c0a16 | 32266 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32267 | PyObject *resultobj; |
32268 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32269 | PyObject * obj0 = 0 ; | |
32270 | char *kwnames[] = { | |
32271 | (char *) "self", NULL | |
32272 | }; | |
32273 | ||
32274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32277 | { |
32278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32279 | (arg1)->DeleteWindows(); | |
32280 | ||
32281 | wxPyEndAllowThreads(__tstate); | |
32282 | if (PyErr_Occurred()) SWIG_fail; | |
32283 | } | |
32284 | Py_INCREF(Py_None); resultobj = Py_None; | |
32285 | return resultobj; | |
32286 | fail: | |
32287 | return NULL; | |
32288 | } | |
32289 | ||
32290 | ||
2f4c0a16 | 32291 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32292 | PyObject *resultobj; |
32293 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32294 | PyObject * obj0 = 0 ; | |
32295 | char *kwnames[] = { | |
32296 | (char *) "self", NULL | |
32297 | }; | |
32298 | ||
32299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32302 | { |
32303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32304 | (arg1)->DetachSizer(); | |
32305 | ||
32306 | wxPyEndAllowThreads(__tstate); | |
32307 | if (PyErr_Occurred()) SWIG_fail; | |
32308 | } | |
32309 | Py_INCREF(Py_None); resultobj = Py_None; | |
32310 | return resultobj; | |
32311 | fail: | |
32312 | return NULL; | |
32313 | } | |
32314 | ||
32315 | ||
2f4c0a16 | 32316 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32317 | PyObject *resultobj; |
32318 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32319 | wxSize result; | |
32320 | PyObject * obj0 = 0 ; | |
32321 | char *kwnames[] = { | |
32322 | (char *) "self", NULL | |
32323 | }; | |
32324 | ||
32325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32328 | { |
32329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32330 | result = (arg1)->GetSize(); | |
32331 | ||
32332 | wxPyEndAllowThreads(__tstate); | |
32333 | if (PyErr_Occurred()) SWIG_fail; | |
32334 | } | |
32335 | { | |
32336 | wxSize * resultptr; | |
32337 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32338 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32339 | } |
32340 | return resultobj; | |
32341 | fail: | |
32342 | return NULL; | |
32343 | } | |
32344 | ||
32345 | ||
2f4c0a16 | 32346 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32347 | PyObject *resultobj; |
32348 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32349 | wxSize result; | |
32350 | PyObject * obj0 = 0 ; | |
32351 | char *kwnames[] = { | |
32352 | (char *) "self", NULL | |
32353 | }; | |
32354 | ||
32355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32358 | { |
32359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32360 | result = (arg1)->CalcMin(); | |
32361 | ||
32362 | wxPyEndAllowThreads(__tstate); | |
32363 | if (PyErr_Occurred()) SWIG_fail; | |
32364 | } | |
32365 | { | |
32366 | wxSize * resultptr; | |
32367 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32369 | } |
32370 | return resultobj; | |
32371 | fail: | |
32372 | return NULL; | |
32373 | } | |
32374 | ||
32375 | ||
2f4c0a16 | 32376 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32377 | PyObject *resultobj; |
32378 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32379 | wxPoint arg2 ; | |
32380 | wxSize arg3 ; | |
32381 | wxPoint *argp2 ; | |
32382 | wxSize *argp3 ; | |
32383 | PyObject * obj0 = 0 ; | |
32384 | PyObject * obj1 = 0 ; | |
32385 | PyObject * obj2 = 0 ; | |
32386 | char *kwnames[] = { | |
32387 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
32388 | }; | |
32389 | ||
32390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32393 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
32394 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32395 | arg2 = *argp2; | |
32396 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
32397 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32398 | arg3 = *argp3; | |
d14a1e28 RD |
32399 | { |
32400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32401 | (arg1)->SetDimension(arg2,arg3); | |
32402 | ||
32403 | wxPyEndAllowThreads(__tstate); | |
32404 | if (PyErr_Occurred()) SWIG_fail; | |
32405 | } | |
32406 | Py_INCREF(Py_None); resultobj = Py_None; | |
32407 | return resultobj; | |
32408 | fail: | |
32409 | return NULL; | |
32410 | } | |
32411 | ||
32412 | ||
2f4c0a16 | 32413 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32414 | PyObject *resultobj; |
32415 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32416 | wxSize result; | |
32417 | PyObject * obj0 = 0 ; | |
32418 | char *kwnames[] = { | |
32419 | (char *) "self", NULL | |
32420 | }; | |
32421 | ||
32422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32425 | { |
32426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32427 | result = (arg1)->GetMinSize(); | |
32428 | ||
32429 | wxPyEndAllowThreads(__tstate); | |
32430 | if (PyErr_Occurred()) SWIG_fail; | |
32431 | } | |
32432 | { | |
32433 | wxSize * resultptr; | |
32434 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32435 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32436 | } |
32437 | return resultobj; | |
32438 | fail: | |
32439 | return NULL; | |
32440 | } | |
32441 | ||
32442 | ||
2f4c0a16 | 32443 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32444 | PyObject *resultobj; |
32445 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32446 | int arg2 ; | |
32447 | int arg3 ; | |
32448 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32449 | PyObject * obj1 = 0 ; |
32450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32451 | char *kwnames[] = { |
32452 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32453 | }; | |
32454 | ||
8edf1c75 | 32455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32458 | arg2 = (int) SWIG_AsInt(obj1); | |
32459 | if (PyErr_Occurred()) SWIG_fail; | |
32460 | arg3 = (int) SWIG_AsInt(obj2); | |
32461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32462 | { |
32463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32464 | (arg1)->SetInitSize(arg2,arg3); | |
32465 | ||
32466 | wxPyEndAllowThreads(__tstate); | |
32467 | if (PyErr_Occurred()) SWIG_fail; | |
32468 | } | |
32469 | Py_INCREF(Py_None); resultobj = Py_None; | |
32470 | return resultobj; | |
32471 | fail: | |
32472 | return NULL; | |
32473 | } | |
32474 | ||
32475 | ||
2f4c0a16 | 32476 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32477 | PyObject *resultobj; |
32478 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32479 | int arg2 ; | |
32480 | int arg3 ; | |
32481 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32482 | PyObject * obj1 = 0 ; |
32483 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32484 | char *kwnames[] = { |
32485 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32486 | }; | |
32487 | ||
8edf1c75 | 32488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32491 | arg2 = (int) SWIG_AsInt(obj1); | |
32492 | if (PyErr_Occurred()) SWIG_fail; | |
32493 | arg3 = (int) SWIG_AsInt(obj2); | |
32494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32495 | { |
32496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32497 | (arg1)->SetRatio(arg2,arg3); | |
32498 | ||
32499 | wxPyEndAllowThreads(__tstate); | |
32500 | if (PyErr_Occurred()) SWIG_fail; | |
32501 | } | |
32502 | Py_INCREF(Py_None); resultobj = Py_None; | |
32503 | return resultobj; | |
32504 | fail: | |
32505 | return NULL; | |
32506 | } | |
32507 | ||
32508 | ||
2f4c0a16 | 32509 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32510 | PyObject *resultobj; |
32511 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32512 | wxSize arg2 ; | |
32513 | wxSize *argp2 ; | |
32514 | PyObject * obj0 = 0 ; | |
32515 | PyObject * obj1 = 0 ; | |
32516 | char *kwnames[] = { | |
32517 | (char *) "self",(char *) "size", NULL | |
32518 | }; | |
32519 | ||
32520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32523 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
32524 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32525 | arg2 = *argp2; | |
d14a1e28 RD |
32526 | { |
32527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32528 | (arg1)->SetRatio(arg2); | |
32529 | ||
32530 | wxPyEndAllowThreads(__tstate); | |
32531 | if (PyErr_Occurred()) SWIG_fail; | |
32532 | } | |
32533 | Py_INCREF(Py_None); resultobj = Py_None; | |
32534 | return resultobj; | |
32535 | fail: | |
32536 | return NULL; | |
32537 | } | |
32538 | ||
32539 | ||
2f4c0a16 | 32540 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32541 | PyObject *resultobj; |
32542 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32543 | float arg2 ; | |
32544 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32546 | char *kwnames[] = { |
32547 | (char *) "self",(char *) "ratio", NULL | |
32548 | }; | |
32549 | ||
8edf1c75 | 32550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32553 | arg2 = (float) SWIG_AsFloat(obj1); | |
32554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32555 | { |
32556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32557 | (arg1)->SetRatio(arg2); | |
32558 | ||
32559 | wxPyEndAllowThreads(__tstate); | |
32560 | if (PyErr_Occurred()) SWIG_fail; | |
32561 | } | |
32562 | Py_INCREF(Py_None); resultobj = Py_None; | |
32563 | return resultobj; | |
32564 | fail: | |
32565 | return NULL; | |
32566 | } | |
32567 | ||
32568 | ||
2f4c0a16 | 32569 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32570 | PyObject *resultobj; |
32571 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32572 | float result; | |
32573 | PyObject * obj0 = 0 ; | |
32574 | char *kwnames[] = { | |
32575 | (char *) "self", NULL | |
32576 | }; | |
32577 | ||
32578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32581 | { |
32582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32583 | result = (float)(arg1)->GetRatio(); | |
32584 | ||
32585 | wxPyEndAllowThreads(__tstate); | |
32586 | if (PyErr_Occurred()) SWIG_fail; | |
32587 | } | |
2f4c0a16 | 32588 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
32589 | return resultobj; |
32590 | fail: | |
32591 | return NULL; | |
32592 | } | |
32593 | ||
32594 | ||
2f4c0a16 | 32595 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32596 | PyObject *resultobj; |
32597 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32598 | bool result; | |
32599 | PyObject * obj0 = 0 ; | |
32600 | char *kwnames[] = { | |
32601 | (char *) "self", NULL | |
32602 | }; | |
32603 | ||
32604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32607 | { |
32608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32609 | result = (bool)(arg1)->IsWindow(); | |
32610 | ||
32611 | wxPyEndAllowThreads(__tstate); | |
32612 | if (PyErr_Occurred()) SWIG_fail; | |
32613 | } | |
02a34c4c | 32614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32615 | return resultobj; |
32616 | fail: | |
32617 | return NULL; | |
32618 | } | |
32619 | ||
32620 | ||
2f4c0a16 | 32621 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32622 | PyObject *resultobj; |
32623 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32624 | bool result; | |
32625 | PyObject * obj0 = 0 ; | |
32626 | char *kwnames[] = { | |
32627 | (char *) "self", NULL | |
32628 | }; | |
32629 | ||
32630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32633 | { |
32634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32635 | result = (bool)(arg1)->IsSizer(); | |
32636 | ||
32637 | wxPyEndAllowThreads(__tstate); | |
32638 | if (PyErr_Occurred()) SWIG_fail; | |
32639 | } | |
02a34c4c | 32640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32641 | return resultobj; |
32642 | fail: | |
32643 | return NULL; | |
32644 | } | |
32645 | ||
32646 | ||
2f4c0a16 | 32647 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32648 | PyObject *resultobj; |
32649 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32650 | bool result; | |
32651 | PyObject * obj0 = 0 ; | |
32652 | char *kwnames[] = { | |
32653 | (char *) "self", NULL | |
32654 | }; | |
32655 | ||
32656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32659 | { |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32661 | result = (bool)(arg1)->IsSpacer(); | |
32662 | ||
32663 | wxPyEndAllowThreads(__tstate); | |
32664 | if (PyErr_Occurred()) SWIG_fail; | |
32665 | } | |
02a34c4c | 32666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32667 | return resultobj; |
32668 | fail: | |
32669 | return NULL; | |
32670 | } | |
32671 | ||
32672 | ||
2f4c0a16 | 32673 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32674 | PyObject *resultobj; |
32675 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32676 | int arg2 ; | |
32677 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32679 | char *kwnames[] = { |
32680 | (char *) "self",(char *) "proportion", NULL | |
32681 | }; | |
32682 | ||
8edf1c75 | 32683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32686 | arg2 = (int) SWIG_AsInt(obj1); | |
32687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32688 | { |
32689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32690 | (arg1)->SetProportion(arg2); | |
32691 | ||
32692 | wxPyEndAllowThreads(__tstate); | |
32693 | if (PyErr_Occurred()) SWIG_fail; | |
32694 | } | |
32695 | Py_INCREF(Py_None); resultobj = Py_None; | |
32696 | return resultobj; | |
32697 | fail: | |
32698 | return NULL; | |
32699 | } | |
32700 | ||
32701 | ||
2f4c0a16 | 32702 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32703 | PyObject *resultobj; |
32704 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32705 | int result; | |
32706 | PyObject * obj0 = 0 ; | |
32707 | char *kwnames[] = { | |
32708 | (char *) "self", NULL | |
32709 | }; | |
32710 | ||
32711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32714 | { |
32715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32716 | result = (int)(arg1)->GetProportion(); | |
32717 | ||
32718 | wxPyEndAllowThreads(__tstate); | |
32719 | if (PyErr_Occurred()) SWIG_fail; | |
32720 | } | |
2f4c0a16 | 32721 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32722 | return resultobj; |
32723 | fail: | |
32724 | return NULL; | |
32725 | } | |
32726 | ||
32727 | ||
2f4c0a16 | 32728 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32729 | PyObject *resultobj; |
32730 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32731 | int arg2 ; | |
32732 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32734 | char *kwnames[] = { |
32735 | (char *) "self",(char *) "flag", NULL | |
32736 | }; | |
32737 | ||
8edf1c75 | 32738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32741 | arg2 = (int) SWIG_AsInt(obj1); | |
32742 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32743 | { |
32744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32745 | (arg1)->SetFlag(arg2); | |
32746 | ||
32747 | wxPyEndAllowThreads(__tstate); | |
32748 | if (PyErr_Occurred()) SWIG_fail; | |
32749 | } | |
32750 | Py_INCREF(Py_None); resultobj = Py_None; | |
32751 | return resultobj; | |
32752 | fail: | |
32753 | return NULL; | |
32754 | } | |
32755 | ||
32756 | ||
2f4c0a16 | 32757 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32758 | PyObject *resultobj; |
32759 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32760 | int result; | |
32761 | PyObject * obj0 = 0 ; | |
32762 | char *kwnames[] = { | |
32763 | (char *) "self", NULL | |
32764 | }; | |
32765 | ||
32766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32769 | { |
32770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32771 | result = (int)(arg1)->GetFlag(); | |
32772 | ||
32773 | wxPyEndAllowThreads(__tstate); | |
32774 | if (PyErr_Occurred()) SWIG_fail; | |
32775 | } | |
2f4c0a16 | 32776 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32777 | return resultobj; |
32778 | fail: | |
32779 | return NULL; | |
32780 | } | |
32781 | ||
32782 | ||
2f4c0a16 | 32783 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32784 | PyObject *resultobj; |
32785 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32786 | int arg2 ; | |
32787 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32789 | char *kwnames[] = { |
32790 | (char *) "self",(char *) "border", NULL | |
32791 | }; | |
32792 | ||
8edf1c75 | 32793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32796 | arg2 = (int) SWIG_AsInt(obj1); | |
32797 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32798 | { |
32799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32800 | (arg1)->SetBorder(arg2); | |
32801 | ||
32802 | wxPyEndAllowThreads(__tstate); | |
32803 | if (PyErr_Occurred()) SWIG_fail; | |
32804 | } | |
32805 | Py_INCREF(Py_None); resultobj = Py_None; | |
32806 | return resultobj; | |
32807 | fail: | |
32808 | return NULL; | |
32809 | } | |
32810 | ||
32811 | ||
2f4c0a16 | 32812 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32813 | PyObject *resultobj; |
32814 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32815 | int result; | |
32816 | PyObject * obj0 = 0 ; | |
32817 | char *kwnames[] = { | |
32818 | (char *) "self", NULL | |
32819 | }; | |
32820 | ||
32821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32824 | { |
32825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32826 | result = (int)(arg1)->GetBorder(); | |
32827 | ||
32828 | wxPyEndAllowThreads(__tstate); | |
32829 | if (PyErr_Occurred()) SWIG_fail; | |
32830 | } | |
2f4c0a16 | 32831 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32832 | return resultobj; |
32833 | fail: | |
32834 | return NULL; | |
32835 | } | |
32836 | ||
32837 | ||
2f4c0a16 | 32838 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32839 | PyObject *resultobj; |
32840 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32841 | wxWindow *result; | |
32842 | PyObject * obj0 = 0 ; | |
32843 | char *kwnames[] = { | |
32844 | (char *) "self", NULL | |
32845 | }; | |
32846 | ||
32847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32850 | { |
32851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32852 | result = (wxWindow *)(arg1)->GetWindow(); | |
32853 | ||
32854 | wxPyEndAllowThreads(__tstate); | |
32855 | if (PyErr_Occurred()) SWIG_fail; | |
32856 | } | |
32857 | { | |
32858 | resultobj = wxPyMake_wxObject(result); | |
32859 | } | |
32860 | return resultobj; | |
32861 | fail: | |
32862 | return NULL; | |
32863 | } | |
32864 | ||
32865 | ||
2f4c0a16 | 32866 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32867 | PyObject *resultobj; |
32868 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32869 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32870 | PyObject * obj0 = 0 ; | |
32871 | PyObject * obj1 = 0 ; | |
32872 | char *kwnames[] = { | |
32873 | (char *) "self",(char *) "window", NULL | |
32874 | }; | |
32875 | ||
32876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32881 | { |
32882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32883 | (arg1)->SetWindow(arg2); | |
32884 | ||
32885 | wxPyEndAllowThreads(__tstate); | |
32886 | if (PyErr_Occurred()) SWIG_fail; | |
32887 | } | |
32888 | Py_INCREF(Py_None); resultobj = Py_None; | |
32889 | return resultobj; | |
32890 | fail: | |
32891 | return NULL; | |
32892 | } | |
32893 | ||
32894 | ||
2f4c0a16 | 32895 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32896 | PyObject *resultobj; |
32897 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32898 | wxSizer *result; | |
32899 | PyObject * obj0 = 0 ; | |
32900 | char *kwnames[] = { | |
32901 | (char *) "self", NULL | |
32902 | }; | |
32903 | ||
32904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32907 | { |
32908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32909 | result = (wxSizer *)(arg1)->GetSizer(); | |
32910 | ||
32911 | wxPyEndAllowThreads(__tstate); | |
32912 | if (PyErr_Occurred()) SWIG_fail; | |
32913 | } | |
32914 | { | |
32915 | resultobj = wxPyMake_wxSizer(result); | |
32916 | } | |
32917 | return resultobj; | |
32918 | fail: | |
32919 | return NULL; | |
32920 | } | |
32921 | ||
32922 | ||
2f4c0a16 | 32923 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32924 | PyObject *resultobj; |
32925 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32926 | wxSizer *arg2 = (wxSizer *) 0 ; | |
32927 | PyObject * obj0 = 0 ; | |
32928 | PyObject * obj1 = 0 ; | |
32929 | char *kwnames[] = { | |
32930 | (char *) "self",(char *) "sizer", NULL | |
32931 | }; | |
32932 | ||
32933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32936 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
32937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32938 | { |
32939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32940 | (arg1)->SetSizer(arg2); | |
32941 | ||
32942 | wxPyEndAllowThreads(__tstate); | |
32943 | if (PyErr_Occurred()) SWIG_fail; | |
32944 | } | |
32945 | Py_INCREF(Py_None); resultobj = Py_None; | |
32946 | return resultobj; | |
32947 | fail: | |
32948 | return NULL; | |
32949 | } | |
32950 | ||
32951 | ||
2f4c0a16 | 32952 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32953 | PyObject *resultobj; |
32954 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32955 | wxSize *result; | |
32956 | PyObject * obj0 = 0 ; | |
32957 | char *kwnames[] = { | |
32958 | (char *) "self", NULL | |
32959 | }; | |
32960 | ||
32961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32964 | { |
32965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32966 | { | |
32967 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
32968 | result = (wxSize *) &_result_ref; | |
32969 | } | |
32970 | ||
32971 | wxPyEndAllowThreads(__tstate); | |
32972 | if (PyErr_Occurred()) SWIG_fail; | |
32973 | } | |
2f4c0a16 | 32974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
32975 | return resultobj; |
32976 | fail: | |
32977 | return NULL; | |
32978 | } | |
32979 | ||
32980 | ||
2f4c0a16 | 32981 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32982 | PyObject *resultobj; |
32983 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32984 | wxSize *arg2 = 0 ; | |
32985 | wxSize temp2 ; | |
32986 | PyObject * obj0 = 0 ; | |
32987 | PyObject * obj1 = 0 ; | |
32988 | char *kwnames[] = { | |
32989 | (char *) "self",(char *) "size", NULL | |
32990 | }; | |
32991 | ||
32992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32995 | { |
32996 | arg2 = &temp2; | |
32997 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32998 | } | |
32999 | { | |
33000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33001 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33002 | ||
33003 | wxPyEndAllowThreads(__tstate); | |
33004 | if (PyErr_Occurred()) SWIG_fail; | |
33005 | } | |
33006 | Py_INCREF(Py_None); resultobj = Py_None; | |
33007 | return resultobj; | |
33008 | fail: | |
33009 | return NULL; | |
33010 | } | |
33011 | ||
33012 | ||
2f4c0a16 | 33013 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33014 | PyObject *resultobj; |
33015 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33016 | bool arg2 ; | |
33017 | PyObject * obj0 = 0 ; | |
33018 | PyObject * obj1 = 0 ; | |
33019 | char *kwnames[] = { | |
33020 | (char *) "self",(char *) "show", NULL | |
33021 | }; | |
33022 | ||
33023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33026 | arg2 = (bool) SWIG_AsBool(obj1); | |
33027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33028 | { |
33029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33030 | (arg1)->Show(arg2); | |
33031 | ||
33032 | wxPyEndAllowThreads(__tstate); | |
33033 | if (PyErr_Occurred()) SWIG_fail; | |
33034 | } | |
33035 | Py_INCREF(Py_None); resultobj = Py_None; | |
33036 | return resultobj; | |
33037 | fail: | |
33038 | return NULL; | |
33039 | } | |
33040 | ||
33041 | ||
2f4c0a16 | 33042 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33043 | PyObject *resultobj; |
33044 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33045 | bool result; | |
33046 | PyObject * obj0 = 0 ; | |
33047 | char *kwnames[] = { | |
33048 | (char *) "self", NULL | |
33049 | }; | |
33050 | ||
33051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33054 | { |
33055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33056 | result = (bool)(arg1)->IsShown(); | |
33057 | ||
33058 | wxPyEndAllowThreads(__tstate); | |
33059 | if (PyErr_Occurred()) SWIG_fail; | |
33060 | } | |
02a34c4c | 33061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33062 | return resultobj; |
33063 | fail: | |
33064 | return NULL; | |
33065 | } | |
33066 | ||
33067 | ||
2f4c0a16 | 33068 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33069 | PyObject *resultobj; |
33070 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33071 | wxPoint result; | |
33072 | PyObject * obj0 = 0 ; | |
33073 | char *kwnames[] = { | |
33074 | (char *) "self", NULL | |
33075 | }; | |
33076 | ||
33077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33080 | { |
33081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33082 | result = (arg1)->GetPosition(); | |
33083 | ||
33084 | wxPyEndAllowThreads(__tstate); | |
33085 | if (PyErr_Occurred()) SWIG_fail; | |
33086 | } | |
33087 | { | |
33088 | wxPoint * resultptr; | |
33089 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 33090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
33091 | } |
33092 | return resultobj; | |
33093 | fail: | |
33094 | return NULL; | |
33095 | } | |
33096 | ||
33097 | ||
2f4c0a16 | 33098 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33099 | PyObject *resultobj; |
33100 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33101 | PyObject *result; | |
33102 | PyObject * obj0 = 0 ; | |
33103 | char *kwnames[] = { | |
33104 | (char *) "self", NULL | |
33105 | }; | |
33106 | ||
33107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33110 | { |
33111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33112 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
33113 | ||
33114 | wxPyEndAllowThreads(__tstate); | |
33115 | if (PyErr_Occurred()) SWIG_fail; | |
33116 | } | |
33117 | resultobj = result; | |
33118 | return resultobj; | |
33119 | fail: | |
33120 | return NULL; | |
33121 | } | |
33122 | ||
33123 | ||
2f4c0a16 | 33124 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33125 | PyObject *obj; |
33126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33127 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
33128 | Py_INCREF(obj); | |
33129 | return Py_BuildValue((char *)""); | |
33130 | } | |
2f4c0a16 | 33131 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33132 | PyObject *resultobj; |
33133 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33134 | PyObject *arg2 = (PyObject *) 0 ; | |
33135 | PyObject * obj0 = 0 ; | |
33136 | PyObject * obj1 = 0 ; | |
33137 | char *kwnames[] = { | |
33138 | (char *) "self",(char *) "_self", NULL | |
33139 | }; | |
33140 | ||
33141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33144 | arg2 = obj1; |
33145 | { | |
33146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33147 | wxSizer__setOORInfo(arg1,arg2); | |
33148 | ||
33149 | wxPyEndAllowThreads(__tstate); | |
33150 | if (PyErr_Occurred()) SWIG_fail; | |
33151 | } | |
33152 | Py_INCREF(Py_None); resultobj = Py_None; | |
33153 | return resultobj; | |
33154 | fail: | |
33155 | return NULL; | |
33156 | } | |
33157 | ||
33158 | ||
2f4c0a16 | 33159 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33160 | PyObject *resultobj; |
33161 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33162 | PyObject *arg2 = (PyObject *) 0 ; | |
33163 | int arg3 = (int) 0 ; | |
33164 | int arg4 = (int) 0 ; | |
33165 | int arg5 = (int) 0 ; | |
33166 | PyObject *arg6 = (PyObject *) NULL ; | |
33167 | PyObject * obj0 = 0 ; | |
33168 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33169 | PyObject * obj2 = 0 ; |
33170 | PyObject * obj3 = 0 ; | |
33171 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33172 | PyObject * obj5 = 0 ; |
33173 | char *kwnames[] = { | |
33174 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33175 | }; | |
33176 | ||
8edf1c75 | 33177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33180 | arg2 = obj1; |
8edf1c75 | 33181 | if (obj2) { |
2f4c0a16 RD |
33182 | arg3 = (int) SWIG_AsInt(obj2); |
33183 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33184 | } |
33185 | if (obj3) { | |
2f4c0a16 RD |
33186 | arg4 = (int) SWIG_AsInt(obj3); |
33187 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33188 | } |
33189 | if (obj4) { | |
2f4c0a16 RD |
33190 | arg5 = (int) SWIG_AsInt(obj4); |
33191 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33192 | } |
d14a1e28 RD |
33193 | if (obj5) { |
33194 | arg6 = obj5; | |
33195 | } | |
33196 | { | |
33197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33198 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
33199 | ||
33200 | wxPyEndAllowThreads(__tstate); | |
33201 | if (PyErr_Occurred()) SWIG_fail; | |
33202 | } | |
33203 | Py_INCREF(Py_None); resultobj = Py_None; | |
33204 | return resultobj; | |
33205 | fail: | |
33206 | return NULL; | |
33207 | } | |
33208 | ||
33209 | ||
2f4c0a16 | 33210 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33211 | PyObject *resultobj; |
33212 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33213 | int arg2 ; | |
33214 | PyObject *arg3 = (PyObject *) 0 ; | |
33215 | int arg4 = (int) 0 ; | |
33216 | int arg5 = (int) 0 ; | |
33217 | int arg6 = (int) 0 ; | |
33218 | PyObject *arg7 = (PyObject *) NULL ; | |
33219 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33220 | PyObject * obj1 = 0 ; |
d14a1e28 | 33221 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
33222 | PyObject * obj3 = 0 ; |
33223 | PyObject * obj4 = 0 ; | |
33224 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
33225 | PyObject * obj6 = 0 ; |
33226 | char *kwnames[] = { | |
33227 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33228 | }; | |
33229 | ||
8edf1c75 | 33230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
33231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33233 | arg2 = (int) SWIG_AsInt(obj1); | |
33234 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 33235 | arg3 = obj2; |
8edf1c75 | 33236 | if (obj3) { |
2f4c0a16 RD |
33237 | arg4 = (int) SWIG_AsInt(obj3); |
33238 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33239 | } |
33240 | if (obj4) { | |
2f4c0a16 RD |
33241 | arg5 = (int) SWIG_AsInt(obj4); |
33242 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33243 | } |
33244 | if (obj5) { | |
2f4c0a16 RD |
33245 | arg6 = (int) SWIG_AsInt(obj5); |
33246 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33247 | } |
d14a1e28 RD |
33248 | if (obj6) { |
33249 | arg7 = obj6; | |
33250 | } | |
33251 | { | |
33252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33253 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
33254 | ||
33255 | wxPyEndAllowThreads(__tstate); | |
33256 | if (PyErr_Occurred()) SWIG_fail; | |
33257 | } | |
33258 | Py_INCREF(Py_None); resultobj = Py_None; | |
33259 | return resultobj; | |
33260 | fail: | |
33261 | return NULL; | |
33262 | } | |
33263 | ||
33264 | ||
2f4c0a16 | 33265 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33266 | PyObject *resultobj; |
33267 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33268 | PyObject *arg2 = (PyObject *) 0 ; | |
33269 | int arg3 = (int) 0 ; | |
33270 | int arg4 = (int) 0 ; | |
33271 | int arg5 = (int) 0 ; | |
33272 | PyObject *arg6 = (PyObject *) NULL ; | |
33273 | PyObject * obj0 = 0 ; | |
33274 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33275 | PyObject * obj2 = 0 ; |
33276 | PyObject * obj3 = 0 ; | |
33277 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33278 | PyObject * obj5 = 0 ; |
33279 | char *kwnames[] = { | |
33280 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33281 | }; | |
33282 | ||
8edf1c75 | 33283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33286 | arg2 = obj1; |
8edf1c75 | 33287 | if (obj2) { |
2f4c0a16 RD |
33288 | arg3 = (int) SWIG_AsInt(obj2); |
33289 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33290 | } |
33291 | if (obj3) { | |
2f4c0a16 RD |
33292 | arg4 = (int) SWIG_AsInt(obj3); |
33293 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33294 | } |
33295 | if (obj4) { | |
2f4c0a16 RD |
33296 | arg5 = (int) SWIG_AsInt(obj4); |
33297 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33298 | } |
d14a1e28 RD |
33299 | if (obj5) { |
33300 | arg6 = obj5; | |
33301 | } | |
33302 | { | |
33303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33304 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
33305 | ||
33306 | wxPyEndAllowThreads(__tstate); | |
33307 | if (PyErr_Occurred()) SWIG_fail; | |
33308 | } | |
33309 | Py_INCREF(Py_None); resultobj = Py_None; | |
33310 | return resultobj; | |
33311 | fail: | |
33312 | return NULL; | |
33313 | } | |
33314 | ||
33315 | ||
2f4c0a16 | 33316 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33317 | PyObject *resultobj; |
33318 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33319 | PyObject *arg2 = (PyObject *) 0 ; | |
33320 | bool result; | |
33321 | PyObject * obj0 = 0 ; | |
33322 | PyObject * obj1 = 0 ; | |
33323 | char *kwnames[] = { | |
33324 | (char *) "self",(char *) "item", NULL | |
33325 | }; | |
33326 | ||
33327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33330 | arg2 = obj1; |
33331 | { | |
33332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33333 | result = (bool)wxSizer_Remove(arg1,arg2); | |
33334 | ||
33335 | wxPyEndAllowThreads(__tstate); | |
33336 | if (PyErr_Occurred()) SWIG_fail; | |
33337 | } | |
02a34c4c | 33338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33339 | return resultobj; |
33340 | fail: | |
33341 | return NULL; | |
33342 | } | |
33343 | ||
33344 | ||
2f4c0a16 | 33345 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33346 | PyObject *resultobj; |
33347 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33348 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
33349 | wxSize *arg3 = 0 ; |
33350 | wxSize temp3 ; | |
d14a1e28 RD |
33351 | PyObject * obj0 = 0 ; |
33352 | PyObject * obj1 = 0 ; | |
33353 | PyObject * obj2 = 0 ; | |
33354 | char *kwnames[] = { | |
33355 | (char *) "self",(char *) "item",(char *) "size", NULL | |
33356 | }; | |
33357 | ||
33358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33361 | arg2 = obj1; |
423f194a RD |
33362 | { |
33363 | arg3 = &temp3; | |
33364 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33365 | } | |
d14a1e28 RD |
33366 | { |
33367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 33368 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
33369 | |
33370 | wxPyEndAllowThreads(__tstate); | |
33371 | if (PyErr_Occurred()) SWIG_fail; | |
33372 | } | |
33373 | Py_INCREF(Py_None); resultobj = Py_None; | |
33374 | return resultobj; | |
33375 | fail: | |
33376 | return NULL; | |
33377 | } | |
33378 | ||
33379 | ||
2f4c0a16 | 33380 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33381 | PyObject *resultobj; |
33382 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33383 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33384 | PyObject * obj0 = 0 ; | |
33385 | PyObject * obj1 = 0 ; | |
33386 | char *kwnames[] = { | |
33387 | (char *) "self",(char *) "item", NULL | |
33388 | }; | |
33389 | ||
33390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33393 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
33394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33395 | { |
33396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33397 | (arg1)->Add(arg2); | |
33398 | ||
33399 | wxPyEndAllowThreads(__tstate); | |
33400 | if (PyErr_Occurred()) SWIG_fail; | |
33401 | } | |
33402 | Py_INCREF(Py_None); resultobj = Py_None; | |
33403 | return resultobj; | |
33404 | fail: | |
33405 | return NULL; | |
33406 | } | |
33407 | ||
33408 | ||
2f4c0a16 | 33409 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33410 | PyObject *resultobj; |
33411 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33412 | size_t arg2 ; | |
33413 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
33414 | PyObject * obj0 = 0 ; | |
33415 | PyObject * obj1 = 0 ; | |
33416 | PyObject * obj2 = 0 ; | |
33417 | char *kwnames[] = { | |
33418 | (char *) "self",(char *) "index",(char *) "item", NULL | |
33419 | }; | |
33420 | ||
33421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33424 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
33425 | if (PyErr_Occurred()) SWIG_fail; | |
33426 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
33427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33428 | { |
33429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33430 | (arg1)->Insert(arg2,arg3); | |
33431 | ||
33432 | wxPyEndAllowThreads(__tstate); | |
33433 | if (PyErr_Occurred()) SWIG_fail; | |
33434 | } | |
33435 | Py_INCREF(Py_None); resultobj = Py_None; | |
33436 | return resultobj; | |
33437 | fail: | |
33438 | return NULL; | |
33439 | } | |
33440 | ||
33441 | ||
2f4c0a16 | 33442 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33443 | PyObject *resultobj; |
33444 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33445 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33446 | PyObject * obj0 = 0 ; | |
33447 | PyObject * obj1 = 0 ; | |
33448 | char *kwnames[] = { | |
33449 | (char *) "self",(char *) "item", NULL | |
33450 | }; | |
33451 | ||
33452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
33456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33457 | { |
33458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33459 | (arg1)->Prepend(arg2); | |
33460 | ||
33461 | wxPyEndAllowThreads(__tstate); | |
33462 | if (PyErr_Occurred()) SWIG_fail; | |
33463 | } | |
33464 | Py_INCREF(Py_None); resultobj = Py_None; | |
33465 | return resultobj; | |
33466 | fail: | |
33467 | return NULL; | |
33468 | } | |
33469 | ||
33470 | ||
2f4c0a16 | 33471 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33472 | PyObject *resultobj; |
33473 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33474 | int arg2 ; | |
33475 | int arg3 ; | |
33476 | int arg4 ; | |
33477 | int arg5 ; | |
33478 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33479 | PyObject * obj1 = 0 ; |
33480 | PyObject * obj2 = 0 ; | |
33481 | PyObject * obj3 = 0 ; | |
33482 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33483 | char *kwnames[] = { |
33484 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33485 | }; | |
33486 | ||
8edf1c75 | 33487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33490 | arg2 = (int) SWIG_AsInt(obj1); | |
33491 | if (PyErr_Occurred()) SWIG_fail; | |
33492 | arg3 = (int) SWIG_AsInt(obj2); | |
33493 | if (PyErr_Occurred()) SWIG_fail; | |
33494 | arg4 = (int) SWIG_AsInt(obj3); | |
33495 | if (PyErr_Occurred()) SWIG_fail; | |
33496 | arg5 = (int) SWIG_AsInt(obj4); | |
33497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33498 | { |
33499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33500 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
33501 | ||
33502 | wxPyEndAllowThreads(__tstate); | |
33503 | if (PyErr_Occurred()) SWIG_fail; | |
33504 | } | |
33505 | Py_INCREF(Py_None); resultobj = Py_None; | |
33506 | return resultobj; | |
33507 | fail: | |
33508 | return NULL; | |
33509 | } | |
33510 | ||
33511 | ||
2f4c0a16 | 33512 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33513 | PyObject *resultobj; |
33514 | wxSizer *arg1 = (wxSizer *) 0 ; | |
41f1cec7 RD |
33515 | wxSize *arg2 = 0 ; |
33516 | wxSize temp2 ; | |
d14a1e28 RD |
33517 | PyObject * obj0 = 0 ; |
33518 | PyObject * obj1 = 0 ; | |
33519 | char *kwnames[] = { | |
33520 | (char *) "self",(char *) "size", NULL | |
33521 | }; | |
33522 | ||
33523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
33526 | { |
33527 | arg2 = &temp2; | |
33528 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33529 | } | |
d14a1e28 RD |
33530 | { |
33531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41f1cec7 | 33532 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
33533 | |
33534 | wxPyEndAllowThreads(__tstate); | |
33535 | if (PyErr_Occurred()) SWIG_fail; | |
33536 | } | |
33537 | Py_INCREF(Py_None); resultobj = Py_None; | |
33538 | return resultobj; | |
33539 | fail: | |
33540 | return NULL; | |
33541 | } | |
33542 | ||
33543 | ||
2f4c0a16 | 33544 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33545 | PyObject *resultobj; |
33546 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33547 | wxSize result; | |
33548 | PyObject * obj0 = 0 ; | |
33549 | char *kwnames[] = { | |
33550 | (char *) "self", NULL | |
33551 | }; | |
33552 | ||
33553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33556 | { |
33557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33558 | result = (arg1)->GetSize(); | |
33559 | ||
33560 | wxPyEndAllowThreads(__tstate); | |
33561 | if (PyErr_Occurred()) SWIG_fail; | |
33562 | } | |
33563 | { | |
33564 | wxSize * resultptr; | |
33565 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33566 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33567 | } |
33568 | return resultobj; | |
33569 | fail: | |
33570 | return NULL; | |
33571 | } | |
33572 | ||
33573 | ||
2f4c0a16 | 33574 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33575 | PyObject *resultobj; |
33576 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33577 | wxPoint result; | |
33578 | PyObject * obj0 = 0 ; | |
33579 | char *kwnames[] = { | |
33580 | (char *) "self", NULL | |
33581 | }; | |
33582 | ||
33583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33586 | { |
33587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33588 | result = (arg1)->GetPosition(); | |
33589 | ||
33590 | wxPyEndAllowThreads(__tstate); | |
33591 | if (PyErr_Occurred()) SWIG_fail; | |
33592 | } | |
33593 | { | |
33594 | wxPoint * resultptr; | |
33595 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 33596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
33597 | } |
33598 | return resultobj; | |
33599 | fail: | |
33600 | return NULL; | |
33601 | } | |
33602 | ||
33603 | ||
2f4c0a16 | 33604 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33605 | PyObject *resultobj; |
33606 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33607 | wxSize result; | |
33608 | PyObject * obj0 = 0 ; | |
33609 | char *kwnames[] = { | |
33610 | (char *) "self", NULL | |
33611 | }; | |
33612 | ||
33613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33616 | { |
33617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33618 | result = (arg1)->GetMinSize(); | |
33619 | ||
33620 | wxPyEndAllowThreads(__tstate); | |
33621 | if (PyErr_Occurred()) SWIG_fail; | |
33622 | } | |
33623 | { | |
33624 | wxSize * resultptr; | |
33625 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33627 | } |
33628 | return resultobj; | |
33629 | fail: | |
33630 | return NULL; | |
33631 | } | |
33632 | ||
33633 | ||
2f4c0a16 | 33634 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33635 | PyObject *resultobj; |
33636 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33637 | PyObject * obj0 = 0 ; | |
33638 | char *kwnames[] = { | |
33639 | (char *) "self", NULL | |
33640 | }; | |
33641 | ||
33642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33645 | { |
33646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33647 | (arg1)->RecalcSizes(); | |
33648 | ||
33649 | wxPyEndAllowThreads(__tstate); | |
33650 | if (PyErr_Occurred()) SWIG_fail; | |
33651 | } | |
33652 | Py_INCREF(Py_None); resultobj = Py_None; | |
33653 | return resultobj; | |
33654 | fail: | |
33655 | return NULL; | |
33656 | } | |
33657 | ||
33658 | ||
2f4c0a16 | 33659 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33660 | PyObject *resultobj; |
33661 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33662 | wxSize result; | |
33663 | PyObject * obj0 = 0 ; | |
33664 | char *kwnames[] = { | |
33665 | (char *) "self", NULL | |
33666 | }; | |
33667 | ||
33668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33671 | { |
33672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33673 | result = (arg1)->CalcMin(); | |
33674 | ||
33675 | wxPyEndAllowThreads(__tstate); | |
33676 | if (PyErr_Occurred()) SWIG_fail; | |
33677 | } | |
33678 | { | |
33679 | wxSize * resultptr; | |
33680 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33682 | } |
33683 | return resultobj; | |
33684 | fail: | |
33685 | return NULL; | |
33686 | } | |
33687 | ||
33688 | ||
2f4c0a16 | 33689 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33690 | PyObject *resultobj; |
33691 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33692 | PyObject * obj0 = 0 ; | |
33693 | char *kwnames[] = { | |
33694 | (char *) "self", NULL | |
33695 | }; | |
33696 | ||
33697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33700 | { |
33701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33702 | (arg1)->Layout(); | |
33703 | ||
33704 | wxPyEndAllowThreads(__tstate); | |
33705 | if (PyErr_Occurred()) SWIG_fail; | |
33706 | } | |
33707 | Py_INCREF(Py_None); resultobj = Py_None; | |
33708 | return resultobj; | |
33709 | fail: | |
33710 | return NULL; | |
33711 | } | |
33712 | ||
33713 | ||
2f4c0a16 | 33714 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33715 | PyObject *resultobj; |
33716 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33718 | wxSize result; | |
33719 | PyObject * obj0 = 0 ; | |
33720 | PyObject * obj1 = 0 ; | |
33721 | char *kwnames[] = { | |
33722 | (char *) "self",(char *) "window", NULL | |
33723 | }; | |
33724 | ||
33725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33730 | { |
33731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33732 | result = (arg1)->Fit(arg2); | |
33733 | ||
33734 | wxPyEndAllowThreads(__tstate); | |
33735 | if (PyErr_Occurred()) SWIG_fail; | |
33736 | } | |
33737 | { | |
33738 | wxSize * resultptr; | |
33739 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33740 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33741 | } |
33742 | return resultobj; | |
33743 | fail: | |
33744 | return NULL; | |
33745 | } | |
33746 | ||
33747 | ||
2f4c0a16 | 33748 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33749 | PyObject *resultobj; |
33750 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33752 | PyObject * obj0 = 0 ; | |
33753 | PyObject * obj1 = 0 ; | |
33754 | char *kwnames[] = { | |
33755 | (char *) "self",(char *) "window", NULL | |
33756 | }; | |
33757 | ||
33758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33763 | { |
33764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33765 | (arg1)->FitInside(arg2); | |
33766 | ||
33767 | wxPyEndAllowThreads(__tstate); | |
33768 | if (PyErr_Occurred()) SWIG_fail; | |
33769 | } | |
33770 | Py_INCREF(Py_None); resultobj = Py_None; | |
33771 | return resultobj; | |
33772 | fail: | |
33773 | return NULL; | |
33774 | } | |
33775 | ||
33776 | ||
2f4c0a16 | 33777 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33778 | PyObject *resultobj; |
33779 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33780 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33781 | PyObject * obj0 = 0 ; | |
33782 | PyObject * obj1 = 0 ; | |
33783 | char *kwnames[] = { | |
33784 | (char *) "self",(char *) "window", NULL | |
33785 | }; | |
33786 | ||
33787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33792 | { |
33793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33794 | (arg1)->SetSizeHints(arg2); | |
33795 | ||
33796 | wxPyEndAllowThreads(__tstate); | |
33797 | if (PyErr_Occurred()) SWIG_fail; | |
33798 | } | |
33799 | Py_INCREF(Py_None); resultobj = Py_None; | |
33800 | return resultobj; | |
33801 | fail: | |
33802 | return NULL; | |
33803 | } | |
33804 | ||
33805 | ||
2f4c0a16 | 33806 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33807 | PyObject *resultobj; |
33808 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33809 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33810 | PyObject * obj0 = 0 ; | |
33811 | PyObject * obj1 = 0 ; | |
33812 | char *kwnames[] = { | |
33813 | (char *) "self",(char *) "window", NULL | |
33814 | }; | |
33815 | ||
33816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33821 | { |
33822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33823 | (arg1)->SetVirtualSizeHints(arg2); | |
33824 | ||
33825 | wxPyEndAllowThreads(__tstate); | |
33826 | if (PyErr_Occurred()) SWIG_fail; | |
33827 | } | |
33828 | Py_INCREF(Py_None); resultobj = Py_None; | |
33829 | return resultobj; | |
33830 | fail: | |
33831 | return NULL; | |
33832 | } | |
33833 | ||
33834 | ||
2f4c0a16 | 33835 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33836 | PyObject *resultobj; |
33837 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 33838 | bool arg2 = (bool) False ; |
d14a1e28 RD |
33839 | PyObject * obj0 = 0 ; |
33840 | PyObject * obj1 = 0 ; | |
33841 | char *kwnames[] = { | |
33842 | (char *) "self",(char *) "delete_windows", NULL | |
33843 | }; | |
33844 | ||
33845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33848 | if (obj1) { |
2f4c0a16 RD |
33849 | arg2 = (bool) SWIG_AsBool(obj1); |
33850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33851 | } |
33852 | { | |
33853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33854 | (arg1)->Clear(arg2); | |
33855 | ||
33856 | wxPyEndAllowThreads(__tstate); | |
33857 | if (PyErr_Occurred()) SWIG_fail; | |
33858 | } | |
33859 | Py_INCREF(Py_None); resultobj = Py_None; | |
33860 | return resultobj; | |
33861 | fail: | |
33862 | return NULL; | |
33863 | } | |
33864 | ||
33865 | ||
2f4c0a16 | 33866 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33867 | PyObject *resultobj; |
33868 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33869 | PyObject * obj0 = 0 ; | |
33870 | char *kwnames[] = { | |
33871 | (char *) "self", NULL | |
33872 | }; | |
33873 | ||
33874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33877 | { |
33878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33879 | (arg1)->DeleteWindows(); | |
33880 | ||
33881 | wxPyEndAllowThreads(__tstate); | |
33882 | if (PyErr_Occurred()) SWIG_fail; | |
33883 | } | |
33884 | Py_INCREF(Py_None); resultobj = Py_None; | |
33885 | return resultobj; | |
33886 | fail: | |
33887 | return NULL; | |
33888 | } | |
33889 | ||
33890 | ||
2f4c0a16 | 33891 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33892 | PyObject *resultobj; |
33893 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33894 | PyObject *result; | |
33895 | PyObject * obj0 = 0 ; | |
33896 | char *kwnames[] = { | |
33897 | (char *) "self", NULL | |
33898 | }; | |
33899 | ||
33900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33903 | { |
33904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33905 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
33906 | ||
33907 | wxPyEndAllowThreads(__tstate); | |
33908 | if (PyErr_Occurred()) SWIG_fail; | |
33909 | } | |
33910 | resultobj = result; | |
33911 | return resultobj; | |
33912 | fail: | |
33913 | return NULL; | |
33914 | } | |
33915 | ||
33916 | ||
2f4c0a16 | 33917 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33918 | PyObject *resultobj; |
33919 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33920 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 33921 | bool arg3 = (bool) True ; |
d14a1e28 RD |
33922 | PyObject * obj0 = 0 ; |
33923 | PyObject * obj1 = 0 ; | |
33924 | PyObject * obj2 = 0 ; | |
33925 | char *kwnames[] = { | |
33926 | (char *) "self",(char *) "item",(char *) "show", NULL | |
33927 | }; | |
33928 | ||
33929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33932 | arg2 = obj1; |
33933 | if (obj2) { | |
2f4c0a16 RD |
33934 | arg3 = (bool) SWIG_AsBool(obj2); |
33935 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33936 | } |
33937 | { | |
33938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33939 | wxSizer_Show(arg1,arg2,arg3); | |
33940 | ||
33941 | wxPyEndAllowThreads(__tstate); | |
33942 | if (PyErr_Occurred()) SWIG_fail; | |
33943 | } | |
33944 | Py_INCREF(Py_None); resultobj = Py_None; | |
33945 | return resultobj; | |
33946 | fail: | |
33947 | return NULL; | |
33948 | } | |
33949 | ||
33950 | ||
2f4c0a16 | 33951 | static PyObject *_wrap_Sizer_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33952 | PyObject *resultobj; |
33953 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33954 | PyObject *arg2 = (PyObject *) 0 ; | |
33955 | PyObject * obj0 = 0 ; | |
33956 | PyObject * obj1 = 0 ; | |
33957 | char *kwnames[] = { | |
33958 | (char *) "self",(char *) "item", NULL | |
33959 | }; | |
33960 | ||
33961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33964 | arg2 = obj1; |
33965 | { | |
33966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33967 | wxSizer_Hide(arg1,arg2); | |
33968 | ||
33969 | wxPyEndAllowThreads(__tstate); | |
33970 | if (PyErr_Occurred()) SWIG_fail; | |
33971 | } | |
33972 | Py_INCREF(Py_None); resultobj = Py_None; | |
33973 | return resultobj; | |
33974 | fail: | |
33975 | return NULL; | |
33976 | } | |
33977 | ||
33978 | ||
2f4c0a16 | 33979 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33980 | PyObject *resultobj; |
33981 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33982 | PyObject *arg2 = (PyObject *) 0 ; | |
33983 | bool result; | |
33984 | PyObject * obj0 = 0 ; | |
33985 | PyObject * obj1 = 0 ; | |
33986 | char *kwnames[] = { | |
33987 | (char *) "self",(char *) "item", NULL | |
33988 | }; | |
33989 | ||
33990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33993 | arg2 = obj1; |
33994 | { | |
33995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33996 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
33997 | ||
33998 | wxPyEndAllowThreads(__tstate); | |
33999 | if (PyErr_Occurred()) SWIG_fail; | |
34000 | } | |
02a34c4c | 34001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
34002 | return resultobj; |
34003 | fail: | |
34004 | return NULL; | |
34005 | } | |
34006 | ||
34007 | ||
2f4c0a16 | 34008 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34009 | PyObject *resultobj; |
34010 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34011 | bool arg2 ; | |
34012 | PyObject * obj0 = 0 ; | |
34013 | PyObject * obj1 = 0 ; | |
34014 | char *kwnames[] = { | |
34015 | (char *) "self",(char *) "show", NULL | |
34016 | }; | |
34017 | ||
34018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34021 | arg2 = (bool) SWIG_AsBool(obj1); | |
34022 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34023 | { |
34024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34025 | (arg1)->ShowItems(arg2); | |
34026 | ||
34027 | wxPyEndAllowThreads(__tstate); | |
34028 | if (PyErr_Occurred()) SWIG_fail; | |
34029 | } | |
34030 | Py_INCREF(Py_None); resultobj = Py_None; | |
34031 | return resultobj; | |
34032 | fail: | |
34033 | return NULL; | |
34034 | } | |
34035 | ||
34036 | ||
2f4c0a16 | 34037 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34038 | PyObject *obj; |
34039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34040 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
34041 | Py_INCREF(obj); | |
34042 | return Py_BuildValue((char *)""); | |
34043 | } | |
2f4c0a16 | 34044 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34045 | PyObject *resultobj; |
34046 | wxPySizer *result; | |
34047 | char *kwnames[] = { | |
34048 | NULL | |
34049 | }; | |
34050 | ||
34051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
34052 | { | |
34053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34054 | result = (wxPySizer *)new wxPySizer(); | |
34055 | ||
34056 | wxPyEndAllowThreads(__tstate); | |
34057 | if (PyErr_Occurred()) SWIG_fail; | |
34058 | } | |
2f4c0a16 | 34059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
34060 | return resultobj; |
34061 | fail: | |
34062 | return NULL; | |
34063 | } | |
34064 | ||
34065 | ||
2f4c0a16 | 34066 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34067 | PyObject *resultobj; |
34068 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
34069 | PyObject *arg2 = (PyObject *) 0 ; | |
34070 | PyObject *arg3 = (PyObject *) 0 ; | |
34071 | PyObject * obj0 = 0 ; | |
34072 | PyObject * obj1 = 0 ; | |
34073 | PyObject * obj2 = 0 ; | |
34074 | char *kwnames[] = { | |
34075 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34076 | }; | |
34077 | ||
34078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
34080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34081 | arg2 = obj1; |
34082 | arg3 = obj2; | |
34083 | { | |
34084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34085 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34086 | ||
34087 | wxPyEndAllowThreads(__tstate); | |
34088 | if (PyErr_Occurred()) SWIG_fail; | |
34089 | } | |
34090 | Py_INCREF(Py_None); resultobj = Py_None; | |
34091 | return resultobj; | |
34092 | fail: | |
34093 | return NULL; | |
34094 | } | |
34095 | ||
34096 | ||
2f4c0a16 | 34097 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34098 | PyObject *obj; |
34099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34100 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
34101 | Py_INCREF(obj); | |
34102 | return Py_BuildValue((char *)""); | |
34103 | } | |
2f4c0a16 | 34104 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34105 | PyObject *resultobj; |
34106 | int arg1 = (int) wxHORIZONTAL ; | |
34107 | wxBoxSizer *result; | |
8edf1c75 | 34108 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
34109 | char *kwnames[] = { |
34110 | (char *) "orient", NULL | |
34111 | }; | |
34112 | ||
8edf1c75 RD |
34113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
34114 | if (obj0) { | |
2f4c0a16 RD |
34115 | arg1 = (int) SWIG_AsInt(obj0); |
34116 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34117 | } |
d14a1e28 RD |
34118 | { |
34119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34120 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
34121 | ||
34122 | wxPyEndAllowThreads(__tstate); | |
34123 | if (PyErr_Occurred()) SWIG_fail; | |
34124 | } | |
2f4c0a16 | 34125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
34126 | return resultobj; |
34127 | fail: | |
34128 | return NULL; | |
34129 | } | |
34130 | ||
34131 | ||
2f4c0a16 | 34132 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34133 | PyObject *resultobj; |
34134 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34135 | int result; | |
34136 | PyObject * obj0 = 0 ; | |
34137 | char *kwnames[] = { | |
34138 | (char *) "self", NULL | |
34139 | }; | |
34140 | ||
34141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34144 | { |
34145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34146 | result = (int)(arg1)->GetOrientation(); | |
34147 | ||
34148 | wxPyEndAllowThreads(__tstate); | |
34149 | if (PyErr_Occurred()) SWIG_fail; | |
34150 | } | |
2f4c0a16 | 34151 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34152 | return resultobj; |
34153 | fail: | |
34154 | return NULL; | |
34155 | } | |
34156 | ||
34157 | ||
2f4c0a16 | 34158 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34159 | PyObject *resultobj; |
34160 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34161 | int arg2 ; | |
34162 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34164 | char *kwnames[] = { |
34165 | (char *) "self",(char *) "orient", NULL | |
34166 | }; | |
34167 | ||
8edf1c75 | 34168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34171 | arg2 = (int) SWIG_AsInt(obj1); | |
34172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34173 | { |
34174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34175 | (arg1)->SetOrientation(arg2); | |
34176 | ||
34177 | wxPyEndAllowThreads(__tstate); | |
34178 | if (PyErr_Occurred()) SWIG_fail; | |
34179 | } | |
34180 | Py_INCREF(Py_None); resultobj = Py_None; | |
34181 | return resultobj; | |
34182 | fail: | |
34183 | return NULL; | |
34184 | } | |
34185 | ||
34186 | ||
2f4c0a16 | 34187 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34188 | PyObject *resultobj; |
34189 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34190 | PyObject * obj0 = 0 ; | |
34191 | char *kwnames[] = { | |
34192 | (char *) "self", NULL | |
34193 | }; | |
34194 | ||
34195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34198 | { |
34199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34200 | (arg1)->RecalcSizes(); | |
34201 | ||
34202 | wxPyEndAllowThreads(__tstate); | |
34203 | if (PyErr_Occurred()) SWIG_fail; | |
34204 | } | |
34205 | Py_INCREF(Py_None); resultobj = Py_None; | |
34206 | return resultobj; | |
34207 | fail: | |
34208 | return NULL; | |
34209 | } | |
34210 | ||
34211 | ||
2f4c0a16 | 34212 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34213 | PyObject *resultobj; |
34214 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34215 | wxSize result; | |
34216 | PyObject * obj0 = 0 ; | |
34217 | char *kwnames[] = { | |
34218 | (char *) "self", NULL | |
34219 | }; | |
34220 | ||
34221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34224 | { |
34225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34226 | result = (arg1)->CalcMin(); | |
34227 | ||
34228 | wxPyEndAllowThreads(__tstate); | |
34229 | if (PyErr_Occurred()) SWIG_fail; | |
34230 | } | |
34231 | { | |
34232 | wxSize * resultptr; | |
34233 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34235 | } |
34236 | return resultobj; | |
34237 | fail: | |
34238 | return NULL; | |
34239 | } | |
34240 | ||
34241 | ||
2f4c0a16 | 34242 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34243 | PyObject *obj; |
34244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34245 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
34246 | Py_INCREF(obj); | |
34247 | return Py_BuildValue((char *)""); | |
34248 | } | |
2f4c0a16 | 34249 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34250 | PyObject *resultobj; |
34251 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
34252 | int arg2 = (int) wxHORIZONTAL ; | |
34253 | wxStaticBoxSizer *result; | |
34254 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34256 | char *kwnames[] = { |
34257 | (char *) "box",(char *) "orient", NULL | |
34258 | }; | |
34259 | ||
8edf1c75 | 34260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
34262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 34263 | if (obj1) { |
2f4c0a16 RD |
34264 | arg2 = (int) SWIG_AsInt(obj1); |
34265 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34266 | } |
d14a1e28 RD |
34267 | { |
34268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34269 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
34270 | ||
34271 | wxPyEndAllowThreads(__tstate); | |
34272 | if (PyErr_Occurred()) SWIG_fail; | |
34273 | } | |
2f4c0a16 | 34274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
34275 | return resultobj; |
34276 | fail: | |
34277 | return NULL; | |
34278 | } | |
34279 | ||
34280 | ||
2f4c0a16 | 34281 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34282 | PyObject *resultobj; |
34283 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34284 | wxStaticBox *result; | |
34285 | PyObject * obj0 = 0 ; | |
34286 | char *kwnames[] = { | |
34287 | (char *) "self", NULL | |
34288 | }; | |
34289 | ||
34290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34293 | { |
34294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34295 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
34296 | ||
34297 | wxPyEndAllowThreads(__tstate); | |
34298 | if (PyErr_Occurred()) SWIG_fail; | |
34299 | } | |
34300 | { | |
34301 | resultobj = wxPyMake_wxObject(result); | |
34302 | } | |
34303 | return resultobj; | |
34304 | fail: | |
34305 | return NULL; | |
34306 | } | |
34307 | ||
34308 | ||
2f4c0a16 | 34309 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34310 | PyObject *resultobj; |
34311 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34312 | PyObject * obj0 = 0 ; | |
34313 | char *kwnames[] = { | |
34314 | (char *) "self", NULL | |
34315 | }; | |
34316 | ||
34317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34320 | { |
34321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34322 | (arg1)->RecalcSizes(); | |
34323 | ||
34324 | wxPyEndAllowThreads(__tstate); | |
34325 | if (PyErr_Occurred()) SWIG_fail; | |
34326 | } | |
34327 | Py_INCREF(Py_None); resultobj = Py_None; | |
34328 | return resultobj; | |
34329 | fail: | |
34330 | return NULL; | |
34331 | } | |
34332 | ||
34333 | ||
2f4c0a16 | 34334 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34335 | PyObject *resultobj; |
34336 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34337 | wxSize result; | |
34338 | PyObject * obj0 = 0 ; | |
34339 | char *kwnames[] = { | |
34340 | (char *) "self", NULL | |
34341 | }; | |
34342 | ||
34343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34346 | { |
34347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34348 | result = (arg1)->CalcMin(); | |
34349 | ||
34350 | wxPyEndAllowThreads(__tstate); | |
34351 | if (PyErr_Occurred()) SWIG_fail; | |
34352 | } | |
34353 | { | |
34354 | wxSize * resultptr; | |
34355 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34357 | } |
34358 | return resultobj; | |
34359 | fail: | |
34360 | return NULL; | |
34361 | } | |
34362 | ||
34363 | ||
2f4c0a16 | 34364 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34365 | PyObject *obj; |
34366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34367 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
34368 | Py_INCREF(obj); | |
34369 | return Py_BuildValue((char *)""); | |
34370 | } | |
2f4c0a16 | 34371 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34372 | PyObject *resultobj; |
34373 | int arg1 = (int) 1 ; | |
34374 | int arg2 = (int) 0 ; | |
34375 | int arg3 = (int) 0 ; | |
34376 | int arg4 = (int) 0 ; | |
34377 | wxGridSizer *result; | |
8edf1c75 RD |
34378 | PyObject * obj0 = 0 ; |
34379 | PyObject * obj1 = 0 ; | |
34380 | PyObject * obj2 = 0 ; | |
34381 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34382 | char *kwnames[] = { |
34383 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34384 | }; | |
34385 | ||
8edf1c75 RD |
34386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34387 | if (obj0) { | |
2f4c0a16 RD |
34388 | arg1 = (int) SWIG_AsInt(obj0); |
34389 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34390 | } |
34391 | if (obj1) { | |
2f4c0a16 RD |
34392 | arg2 = (int) SWIG_AsInt(obj1); |
34393 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34394 | } |
34395 | if (obj2) { | |
2f4c0a16 RD |
34396 | arg3 = (int) SWIG_AsInt(obj2); |
34397 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34398 | } |
34399 | if (obj3) { | |
2f4c0a16 RD |
34400 | arg4 = (int) SWIG_AsInt(obj3); |
34401 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34402 | } |
d14a1e28 RD |
34403 | { |
34404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34405 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
34406 | ||
34407 | wxPyEndAllowThreads(__tstate); | |
34408 | if (PyErr_Occurred()) SWIG_fail; | |
34409 | } | |
2f4c0a16 | 34410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
34411 | return resultobj; |
34412 | fail: | |
34413 | return NULL; | |
34414 | } | |
34415 | ||
34416 | ||
2f4c0a16 | 34417 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34418 | PyObject *resultobj; |
34419 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34420 | PyObject * obj0 = 0 ; | |
34421 | char *kwnames[] = { | |
34422 | (char *) "self", NULL | |
34423 | }; | |
34424 | ||
34425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34428 | { |
34429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34430 | (arg1)->RecalcSizes(); | |
34431 | ||
34432 | wxPyEndAllowThreads(__tstate); | |
34433 | if (PyErr_Occurred()) SWIG_fail; | |
34434 | } | |
34435 | Py_INCREF(Py_None); resultobj = Py_None; | |
34436 | return resultobj; | |
34437 | fail: | |
34438 | return NULL; | |
34439 | } | |
34440 | ||
34441 | ||
2f4c0a16 | 34442 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34443 | PyObject *resultobj; |
34444 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34445 | wxSize result; | |
34446 | PyObject * obj0 = 0 ; | |
34447 | char *kwnames[] = { | |
34448 | (char *) "self", NULL | |
34449 | }; | |
34450 | ||
34451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34454 | { |
34455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34456 | result = (arg1)->CalcMin(); | |
34457 | ||
34458 | wxPyEndAllowThreads(__tstate); | |
34459 | if (PyErr_Occurred()) SWIG_fail; | |
34460 | } | |
34461 | { | |
34462 | wxSize * resultptr; | |
34463 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34465 | } |
34466 | return resultobj; | |
34467 | fail: | |
34468 | return NULL; | |
34469 | } | |
34470 | ||
34471 | ||
2f4c0a16 | 34472 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34473 | PyObject *resultobj; |
34474 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34475 | int arg2 ; | |
34476 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34478 | char *kwnames[] = { |
34479 | (char *) "self",(char *) "cols", NULL | |
34480 | }; | |
34481 | ||
8edf1c75 | 34482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34485 | arg2 = (int) SWIG_AsInt(obj1); | |
34486 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34487 | { |
34488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34489 | (arg1)->SetCols(arg2); | |
34490 | ||
34491 | wxPyEndAllowThreads(__tstate); | |
34492 | if (PyErr_Occurred()) SWIG_fail; | |
34493 | } | |
34494 | Py_INCREF(Py_None); resultobj = Py_None; | |
34495 | return resultobj; | |
34496 | fail: | |
34497 | return NULL; | |
34498 | } | |
34499 | ||
34500 | ||
2f4c0a16 | 34501 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34502 | PyObject *resultobj; |
34503 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34504 | int arg2 ; | |
34505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34507 | char *kwnames[] = { |
34508 | (char *) "self",(char *) "rows", NULL | |
34509 | }; | |
34510 | ||
8edf1c75 | 34511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34514 | arg2 = (int) SWIG_AsInt(obj1); | |
34515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34516 | { |
34517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34518 | (arg1)->SetRows(arg2); | |
34519 | ||
34520 | wxPyEndAllowThreads(__tstate); | |
34521 | if (PyErr_Occurred()) SWIG_fail; | |
34522 | } | |
34523 | Py_INCREF(Py_None); resultobj = Py_None; | |
34524 | return resultobj; | |
34525 | fail: | |
34526 | return NULL; | |
34527 | } | |
34528 | ||
34529 | ||
2f4c0a16 | 34530 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34531 | PyObject *resultobj; |
34532 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34533 | int arg2 ; | |
34534 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34536 | char *kwnames[] = { |
34537 | (char *) "self",(char *) "gap", NULL | |
34538 | }; | |
34539 | ||
8edf1c75 | 34540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34543 | arg2 = (int) SWIG_AsInt(obj1); | |
34544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34545 | { |
34546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34547 | (arg1)->SetVGap(arg2); | |
34548 | ||
34549 | wxPyEndAllowThreads(__tstate); | |
34550 | if (PyErr_Occurred()) SWIG_fail; | |
34551 | } | |
34552 | Py_INCREF(Py_None); resultobj = Py_None; | |
34553 | return resultobj; | |
34554 | fail: | |
34555 | return NULL; | |
34556 | } | |
34557 | ||
34558 | ||
2f4c0a16 | 34559 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34560 | PyObject *resultobj; |
34561 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34562 | int arg2 ; | |
34563 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34565 | char *kwnames[] = { |
34566 | (char *) "self",(char *) "gap", NULL | |
34567 | }; | |
34568 | ||
8edf1c75 | 34569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34572 | arg2 = (int) SWIG_AsInt(obj1); | |
34573 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34574 | { |
34575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34576 | (arg1)->SetHGap(arg2); | |
34577 | ||
34578 | wxPyEndAllowThreads(__tstate); | |
34579 | if (PyErr_Occurred()) SWIG_fail; | |
34580 | } | |
34581 | Py_INCREF(Py_None); resultobj = Py_None; | |
34582 | return resultobj; | |
34583 | fail: | |
34584 | return NULL; | |
34585 | } | |
34586 | ||
34587 | ||
2f4c0a16 | 34588 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34589 | PyObject *resultobj; |
34590 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34591 | int result; | |
34592 | PyObject * obj0 = 0 ; | |
34593 | char *kwnames[] = { | |
34594 | (char *) "self", NULL | |
34595 | }; | |
34596 | ||
34597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34600 | { |
34601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34602 | result = (int)(arg1)->GetCols(); | |
34603 | ||
34604 | wxPyEndAllowThreads(__tstate); | |
34605 | if (PyErr_Occurred()) SWIG_fail; | |
34606 | } | |
2f4c0a16 | 34607 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34608 | return resultobj; |
34609 | fail: | |
34610 | return NULL; | |
34611 | } | |
34612 | ||
34613 | ||
2f4c0a16 | 34614 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34615 | PyObject *resultobj; |
34616 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34617 | int result; | |
34618 | PyObject * obj0 = 0 ; | |
34619 | char *kwnames[] = { | |
34620 | (char *) "self", NULL | |
34621 | }; | |
34622 | ||
34623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34626 | { |
34627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34628 | result = (int)(arg1)->GetRows(); | |
34629 | ||
34630 | wxPyEndAllowThreads(__tstate); | |
34631 | if (PyErr_Occurred()) SWIG_fail; | |
34632 | } | |
2f4c0a16 | 34633 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34634 | return resultobj; |
34635 | fail: | |
34636 | return NULL; | |
34637 | } | |
34638 | ||
34639 | ||
2f4c0a16 | 34640 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34641 | PyObject *resultobj; |
34642 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34643 | int result; | |
34644 | PyObject * obj0 = 0 ; | |
34645 | char *kwnames[] = { | |
34646 | (char *) "self", NULL | |
34647 | }; | |
34648 | ||
34649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34652 | { |
34653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34654 | result = (int)(arg1)->GetVGap(); | |
34655 | ||
34656 | wxPyEndAllowThreads(__tstate); | |
34657 | if (PyErr_Occurred()) SWIG_fail; | |
34658 | } | |
2f4c0a16 | 34659 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34660 | return resultobj; |
34661 | fail: | |
34662 | return NULL; | |
34663 | } | |
34664 | ||
34665 | ||
2f4c0a16 | 34666 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34667 | PyObject *resultobj; |
34668 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34669 | int result; | |
34670 | PyObject * obj0 = 0 ; | |
34671 | char *kwnames[] = { | |
34672 | (char *) "self", NULL | |
34673 | }; | |
34674 | ||
34675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34678 | { |
34679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34680 | result = (int)(arg1)->GetHGap(); | |
34681 | ||
34682 | wxPyEndAllowThreads(__tstate); | |
34683 | if (PyErr_Occurred()) SWIG_fail; | |
34684 | } | |
2f4c0a16 | 34685 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34686 | return resultobj; |
34687 | fail: | |
34688 | return NULL; | |
34689 | } | |
34690 | ||
34691 | ||
2f4c0a16 | 34692 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34693 | PyObject *obj; |
34694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34695 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
34696 | Py_INCREF(obj); | |
34697 | return Py_BuildValue((char *)""); | |
34698 | } | |
2f4c0a16 | 34699 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34700 | PyObject *resultobj; |
34701 | int arg1 = (int) 1 ; | |
34702 | int arg2 = (int) 0 ; | |
34703 | int arg3 = (int) 0 ; | |
34704 | int arg4 = (int) 0 ; | |
34705 | wxFlexGridSizer *result; | |
8edf1c75 RD |
34706 | PyObject * obj0 = 0 ; |
34707 | PyObject * obj1 = 0 ; | |
34708 | PyObject * obj2 = 0 ; | |
34709 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34710 | char *kwnames[] = { |
34711 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34712 | }; | |
34713 | ||
8edf1c75 RD |
34714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34715 | if (obj0) { | |
2f4c0a16 RD |
34716 | arg1 = (int) SWIG_AsInt(obj0); |
34717 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34718 | } |
34719 | if (obj1) { | |
2f4c0a16 RD |
34720 | arg2 = (int) SWIG_AsInt(obj1); |
34721 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34722 | } |
34723 | if (obj2) { | |
2f4c0a16 RD |
34724 | arg3 = (int) SWIG_AsInt(obj2); |
34725 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34726 | } |
34727 | if (obj3) { | |
2f4c0a16 RD |
34728 | arg4 = (int) SWIG_AsInt(obj3); |
34729 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34730 | } |
d14a1e28 RD |
34731 | { |
34732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34733 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
34734 | ||
34735 | wxPyEndAllowThreads(__tstate); | |
34736 | if (PyErr_Occurred()) SWIG_fail; | |
34737 | } | |
2f4c0a16 | 34738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
34739 | return resultobj; |
34740 | fail: | |
34741 | return NULL; | |
34742 | } | |
34743 | ||
34744 | ||
2f4c0a16 | 34745 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34746 | PyObject *resultobj; |
34747 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34748 | PyObject * obj0 = 0 ; | |
34749 | char *kwnames[] = { | |
34750 | (char *) "self", NULL | |
34751 | }; | |
34752 | ||
34753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34756 | { |
34757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34758 | (arg1)->RecalcSizes(); | |
34759 | ||
34760 | wxPyEndAllowThreads(__tstate); | |
34761 | if (PyErr_Occurred()) SWIG_fail; | |
34762 | } | |
34763 | Py_INCREF(Py_None); resultobj = Py_None; | |
34764 | return resultobj; | |
34765 | fail: | |
34766 | return NULL; | |
34767 | } | |
34768 | ||
34769 | ||
2f4c0a16 | 34770 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34771 | PyObject *resultobj; |
34772 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34773 | wxSize result; | |
34774 | PyObject * obj0 = 0 ; | |
34775 | char *kwnames[] = { | |
34776 | (char *) "self", NULL | |
34777 | }; | |
34778 | ||
34779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34782 | { |
34783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34784 | result = (arg1)->CalcMin(); | |
34785 | ||
34786 | wxPyEndAllowThreads(__tstate); | |
34787 | if (PyErr_Occurred()) SWIG_fail; | |
34788 | } | |
34789 | { | |
34790 | wxSize * resultptr; | |
34791 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34793 | } |
34794 | return resultobj; | |
34795 | fail: | |
34796 | return NULL; | |
34797 | } | |
34798 | ||
34799 | ||
2f4c0a16 | 34800 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34801 | PyObject *resultobj; |
34802 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34803 | size_t arg2 ; | |
34804 | int arg3 = (int) 0 ; | |
34805 | PyObject * obj0 = 0 ; | |
34806 | PyObject * obj1 = 0 ; | |
8edf1c75 | 34807 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34808 | char *kwnames[] = { |
34809 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34810 | }; | |
34811 | ||
8edf1c75 | 34812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
34813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34815 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34816 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34817 | if (obj2) { |
2f4c0a16 RD |
34818 | arg3 = (int) SWIG_AsInt(obj2); |
34819 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34820 | } |
d14a1e28 RD |
34821 | { |
34822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34823 | (arg1)->AddGrowableRow(arg2,arg3); | |
34824 | ||
34825 | wxPyEndAllowThreads(__tstate); | |
34826 | if (PyErr_Occurred()) SWIG_fail; | |
34827 | } | |
34828 | Py_INCREF(Py_None); resultobj = Py_None; | |
34829 | return resultobj; | |
34830 | fail: | |
34831 | return NULL; | |
34832 | } | |
34833 | ||
34834 | ||
2f4c0a16 | 34835 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34836 | PyObject *resultobj; |
34837 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34838 | size_t arg2 ; | |
34839 | PyObject * obj0 = 0 ; | |
34840 | PyObject * obj1 = 0 ; | |
34841 | char *kwnames[] = { | |
34842 | (char *) "self",(char *) "idx", NULL | |
34843 | }; | |
34844 | ||
34845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34848 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34849 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34850 | { |
34851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34852 | (arg1)->RemoveGrowableRow(arg2); | |
34853 | ||
34854 | wxPyEndAllowThreads(__tstate); | |
34855 | if (PyErr_Occurred()) SWIG_fail; | |
34856 | } | |
34857 | Py_INCREF(Py_None); resultobj = Py_None; | |
34858 | return resultobj; | |
34859 | fail: | |
34860 | return NULL; | |
34861 | } | |
34862 | ||
34863 | ||
2f4c0a16 | 34864 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34865 | PyObject *resultobj; |
34866 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34867 | size_t arg2 ; | |
34868 | int arg3 = (int) 0 ; | |
34869 | PyObject * obj0 = 0 ; | |
34870 | PyObject * obj1 = 0 ; | |
8edf1c75 | 34871 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34872 | char *kwnames[] = { |
34873 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34874 | }; | |
34875 | ||
8edf1c75 | 34876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
34877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34879 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34880 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34881 | if (obj2) { |
2f4c0a16 RD |
34882 | arg3 = (int) SWIG_AsInt(obj2); |
34883 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34884 | } |
d14a1e28 RD |
34885 | { |
34886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34887 | (arg1)->AddGrowableCol(arg2,arg3); | |
34888 | ||
34889 | wxPyEndAllowThreads(__tstate); | |
34890 | if (PyErr_Occurred()) SWIG_fail; | |
34891 | } | |
34892 | Py_INCREF(Py_None); resultobj = Py_None; | |
34893 | return resultobj; | |
34894 | fail: | |
34895 | return NULL; | |
34896 | } | |
34897 | ||
34898 | ||
2f4c0a16 | 34899 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34900 | PyObject *resultobj; |
34901 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34902 | size_t arg2 ; | |
34903 | PyObject * obj0 = 0 ; | |
34904 | PyObject * obj1 = 0 ; | |
34905 | char *kwnames[] = { | |
34906 | (char *) "self",(char *) "idx", NULL | |
34907 | }; | |
34908 | ||
34909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34912 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34914 | { |
34915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34916 | (arg1)->RemoveGrowableCol(arg2); | |
34917 | ||
34918 | wxPyEndAllowThreads(__tstate); | |
34919 | if (PyErr_Occurred()) SWIG_fail; | |
34920 | } | |
34921 | Py_INCREF(Py_None); resultobj = Py_None; | |
34922 | return resultobj; | |
34923 | fail: | |
34924 | return NULL; | |
34925 | } | |
34926 | ||
34927 | ||
2f4c0a16 | 34928 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34929 | PyObject *resultobj; |
34930 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34931 | int arg2 ; | |
34932 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34934 | char *kwnames[] = { |
34935 | (char *) "self",(char *) "direction", NULL | |
34936 | }; | |
34937 | ||
8edf1c75 | 34938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34941 | arg2 = (int) SWIG_AsInt(obj1); | |
34942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34943 | { |
34944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34945 | (arg1)->SetFlexibleDirection(arg2); | |
34946 | ||
34947 | wxPyEndAllowThreads(__tstate); | |
34948 | if (PyErr_Occurred()) SWIG_fail; | |
34949 | } | |
34950 | Py_INCREF(Py_None); resultobj = Py_None; | |
34951 | return resultobj; | |
34952 | fail: | |
34953 | return NULL; | |
34954 | } | |
34955 | ||
34956 | ||
2f4c0a16 | 34957 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34958 | PyObject *resultobj; |
34959 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34960 | int result; | |
34961 | PyObject * obj0 = 0 ; | |
34962 | char *kwnames[] = { | |
34963 | (char *) "self", NULL | |
34964 | }; | |
34965 | ||
34966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34969 | { |
34970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34971 | result = (int)(arg1)->GetFlexibleDirection(); | |
34972 | ||
34973 | wxPyEndAllowThreads(__tstate); | |
34974 | if (PyErr_Occurred()) SWIG_fail; | |
34975 | } | |
2f4c0a16 | 34976 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34977 | return resultobj; |
34978 | fail: | |
34979 | return NULL; | |
34980 | } | |
34981 | ||
34982 | ||
2f4c0a16 | 34983 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34984 | PyObject *resultobj; |
34985 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34986 | int arg2 ; | |
34987 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34988 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34989 | char *kwnames[] = { |
34990 | (char *) "self",(char *) "mode", NULL | |
34991 | }; | |
34992 | ||
8edf1c75 | 34993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
34995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34996 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
34997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34998 | { |
34999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35000 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35001 | ||
35002 | wxPyEndAllowThreads(__tstate); | |
35003 | if (PyErr_Occurred()) SWIG_fail; | |
35004 | } | |
35005 | Py_INCREF(Py_None); resultobj = Py_None; | |
35006 | return resultobj; | |
35007 | fail: | |
35008 | return NULL; | |
35009 | } | |
35010 | ||
35011 | ||
2f4c0a16 | 35012 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35013 | PyObject *resultobj; |
35014 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35015 | int result; | |
35016 | PyObject * obj0 = 0 ; | |
35017 | char *kwnames[] = { | |
35018 | (char *) "self", NULL | |
35019 | }; | |
35020 | ||
35021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35024 | { |
35025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35026 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
35027 | ||
35028 | wxPyEndAllowThreads(__tstate); | |
35029 | if (PyErr_Occurred()) SWIG_fail; | |
35030 | } | |
2f4c0a16 | 35031 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35032 | return resultobj; |
35033 | fail: | |
35034 | return NULL; | |
35035 | } | |
35036 | ||
35037 | ||
2f4c0a16 | 35038 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
423f194a RD |
35039 | PyObject *resultobj; |
35040 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35041 | wxArrayInt *result; | |
35042 | PyObject * obj0 = 0 ; | |
35043 | char *kwnames[] = { | |
35044 | (char *) "self", NULL | |
35045 | }; | |
35046 | ||
35047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
35050 | { |
35051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35052 | { | |
35053 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
35054 | result = (wxArrayInt *) &_result_ref; | |
35055 | } | |
35056 | ||
35057 | wxPyEndAllowThreads(__tstate); | |
35058 | if (PyErr_Occurred()) SWIG_fail; | |
35059 | } | |
35060 | { | |
35061 | resultobj = PyList_New(0); | |
35062 | size_t idx; | |
35063 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35064 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35065 | PyList_Append(resultobj, val); | |
35066 | Py_DECREF(val); | |
35067 | } | |
35068 | } | |
35069 | return resultobj; | |
35070 | fail: | |
35071 | return NULL; | |
35072 | } | |
35073 | ||
35074 | ||
2f4c0a16 | 35075 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
423f194a RD |
35076 | PyObject *resultobj; |
35077 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35078 | wxArrayInt *result; | |
35079 | PyObject * obj0 = 0 ; | |
35080 | char *kwnames[] = { | |
35081 | (char *) "self", NULL | |
35082 | }; | |
35083 | ||
35084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
35087 | { |
35088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35089 | { | |
35090 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
35091 | result = (wxArrayInt *) &_result_ref; | |
35092 | } | |
35093 | ||
35094 | wxPyEndAllowThreads(__tstate); | |
35095 | if (PyErr_Occurred()) SWIG_fail; | |
35096 | } | |
35097 | { | |
35098 | resultobj = PyList_New(0); | |
35099 | size_t idx; | |
35100 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35101 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35102 | PyList_Append(resultobj, val); | |
35103 | Py_DECREF(val); | |
35104 | } | |
35105 | } | |
35106 | return resultobj; | |
35107 | fail: | |
35108 | return NULL; | |
35109 | } | |
35110 | ||
35111 | ||
2f4c0a16 | 35112 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35113 | PyObject *obj; |
35114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35115 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
35116 | Py_INCREF(obj); | |
35117 | return Py_BuildValue((char *)""); | |
35118 | } | |
2f4c0a16 | 35119 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35120 | PyObject *resultobj; |
35121 | int arg1 = (int) 0 ; | |
35122 | int arg2 = (int) 0 ; | |
35123 | wxGBPosition *result; | |
8edf1c75 RD |
35124 | PyObject * obj0 = 0 ; |
35125 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35126 | char *kwnames[] = { |
35127 | (char *) "row",(char *) "col", NULL | |
35128 | }; | |
35129 | ||
8edf1c75 RD |
35130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
35131 | if (obj0) { | |
2f4c0a16 RD |
35132 | arg1 = (int) SWIG_AsInt(obj0); |
35133 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35134 | } |
35135 | if (obj1) { | |
2f4c0a16 RD |
35136 | arg2 = (int) SWIG_AsInt(obj1); |
35137 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35138 | } |
d14a1e28 RD |
35139 | { |
35140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35141 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
35142 | ||
35143 | wxPyEndAllowThreads(__tstate); | |
35144 | if (PyErr_Occurred()) SWIG_fail; | |
35145 | } | |
2f4c0a16 | 35146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
35147 | return resultobj; |
35148 | fail: | |
35149 | return NULL; | |
35150 | } | |
35151 | ||
35152 | ||
2f4c0a16 | 35153 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35154 | PyObject *resultobj; |
35155 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35156 | int result; | |
35157 | PyObject * obj0 = 0 ; | |
35158 | char *kwnames[] = { | |
35159 | (char *) "self", NULL | |
35160 | }; | |
35161 | ||
35162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35165 | { |
35166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35167 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
35168 | ||
35169 | wxPyEndAllowThreads(__tstate); | |
35170 | if (PyErr_Occurred()) SWIG_fail; | |
35171 | } | |
2f4c0a16 | 35172 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35173 | return resultobj; |
35174 | fail: | |
35175 | return NULL; | |
35176 | } | |
35177 | ||
35178 | ||
2f4c0a16 | 35179 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35180 | PyObject *resultobj; |
35181 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35182 | int result; | |
35183 | PyObject * obj0 = 0 ; | |
35184 | char *kwnames[] = { | |
35185 | (char *) "self", NULL | |
35186 | }; | |
35187 | ||
35188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35191 | { |
35192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35193 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
35194 | ||
35195 | wxPyEndAllowThreads(__tstate); | |
35196 | if (PyErr_Occurred()) SWIG_fail; | |
35197 | } | |
2f4c0a16 | 35198 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35199 | return resultobj; |
35200 | fail: | |
35201 | return NULL; | |
35202 | } | |
35203 | ||
35204 | ||
2f4c0a16 | 35205 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35206 | PyObject *resultobj; |
35207 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35208 | int arg2 ; | |
35209 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35211 | char *kwnames[] = { |
35212 | (char *) "self",(char *) "row", NULL | |
35213 | }; | |
35214 | ||
8edf1c75 | 35215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35218 | arg2 = (int) SWIG_AsInt(obj1); | |
35219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35220 | { |
35221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35222 | (arg1)->SetRow(arg2); | |
35223 | ||
35224 | wxPyEndAllowThreads(__tstate); | |
35225 | if (PyErr_Occurred()) SWIG_fail; | |
35226 | } | |
35227 | Py_INCREF(Py_None); resultobj = Py_None; | |
35228 | return resultobj; | |
35229 | fail: | |
35230 | return NULL; | |
35231 | } | |
35232 | ||
35233 | ||
2f4c0a16 | 35234 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35235 | PyObject *resultobj; |
35236 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35237 | int arg2 ; | |
35238 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35239 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35240 | char *kwnames[] = { |
35241 | (char *) "self",(char *) "col", NULL | |
35242 | }; | |
35243 | ||
8edf1c75 | 35244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35247 | arg2 = (int) SWIG_AsInt(obj1); | |
35248 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35249 | { |
35250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35251 | (arg1)->SetCol(arg2); | |
35252 | ||
35253 | wxPyEndAllowThreads(__tstate); | |
35254 | if (PyErr_Occurred()) SWIG_fail; | |
35255 | } | |
35256 | Py_INCREF(Py_None); resultobj = Py_None; | |
35257 | return resultobj; | |
35258 | fail: | |
35259 | return NULL; | |
35260 | } | |
35261 | ||
35262 | ||
2f4c0a16 | 35263 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35264 | PyObject *resultobj; |
35265 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38f59159 | 35266 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35267 | bool result; |
d14a1e28 RD |
35268 | PyObject * obj0 = 0 ; |
35269 | PyObject * obj1 = 0 ; | |
35270 | char *kwnames[] = { | |
38f59159 | 35271 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35272 | }; |
35273 | ||
35274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBPosition, | |
35278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35279 | { |
35280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 35281 | result = (bool)wxGBPosition___eq__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35282 | |
35283 | wxPyEndAllowThreads(__tstate); | |
35284 | if (PyErr_Occurred()) SWIG_fail; | |
35285 | } | |
02a34c4c | 35286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35287 | return resultobj; |
35288 | fail: | |
35289 | return NULL; | |
35290 | } | |
35291 | ||
35292 | ||
2f4c0a16 | 35293 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35294 | PyObject *resultobj; |
35295 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38f59159 | 35296 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35297 | bool result; |
d14a1e28 RD |
35298 | PyObject * obj0 = 0 ; |
35299 | PyObject * obj1 = 0 ; | |
35300 | char *kwnames[] = { | |
38f59159 | 35301 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35302 | }; |
35303 | ||
35304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBPosition, | |
35308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35309 | { |
35310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 35311 | result = (bool)wxGBPosition___ne__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35312 | |
35313 | wxPyEndAllowThreads(__tstate); | |
35314 | if (PyErr_Occurred()) SWIG_fail; | |
35315 | } | |
02a34c4c | 35316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35317 | return resultobj; |
35318 | fail: | |
35319 | return NULL; | |
35320 | } | |
35321 | ||
35322 | ||
2f4c0a16 | 35323 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
423f194a RD |
35324 | PyObject *resultobj; |
35325 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35326 | int arg2 = (int) 0 ; | |
35327 | int arg3 = (int) 0 ; | |
35328 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35329 | PyObject * obj1 = 0 ; |
35330 | PyObject * obj2 = 0 ; | |
423f194a RD |
35331 | char *kwnames[] = { |
35332 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35333 | }; | |
35334 | ||
8edf1c75 | 35335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 35338 | if (obj1) { |
2f4c0a16 RD |
35339 | arg2 = (int) SWIG_AsInt(obj1); |
35340 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35341 | } |
35342 | if (obj2) { | |
2f4c0a16 RD |
35343 | arg3 = (int) SWIG_AsInt(obj2); |
35344 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35345 | } |
423f194a RD |
35346 | { |
35347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35348 | wxGBPosition_Set(arg1,arg2,arg3); | |
35349 | ||
35350 | wxPyEndAllowThreads(__tstate); | |
35351 | if (PyErr_Occurred()) SWIG_fail; | |
35352 | } | |
35353 | Py_INCREF(Py_None); resultobj = Py_None; | |
35354 | return resultobj; | |
35355 | fail: | |
35356 | return NULL; | |
35357 | } | |
35358 | ||
35359 | ||
2f4c0a16 | 35360 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35361 | PyObject *resultobj; |
35362 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35363 | PyObject *result; | |
35364 | PyObject * obj0 = 0 ; | |
35365 | char *kwnames[] = { | |
35366 | (char *) "self", NULL | |
35367 | }; | |
35368 | ||
423f194a | 35369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
35370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35372 | { |
35373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35374 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
35375 | |
35376 | wxPyEndAllowThreads(__tstate); | |
35377 | if (PyErr_Occurred()) SWIG_fail; | |
35378 | } | |
35379 | resultobj = result; | |
35380 | return resultobj; | |
35381 | fail: | |
35382 | return NULL; | |
35383 | } | |
35384 | ||
35385 | ||
2f4c0a16 | 35386 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35387 | PyObject *obj; |
35388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35389 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
35390 | Py_INCREF(obj); | |
35391 | return Py_BuildValue((char *)""); | |
35392 | } | |
2f4c0a16 | 35393 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35394 | PyObject *resultobj; |
35395 | int arg1 = (int) 1 ; | |
35396 | int arg2 = (int) 1 ; | |
35397 | wxGBSpan *result; | |
8edf1c75 RD |
35398 | PyObject * obj0 = 0 ; |
35399 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35400 | char *kwnames[] = { |
35401 | (char *) "rowspan",(char *) "colspan", NULL | |
35402 | }; | |
35403 | ||
8edf1c75 RD |
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
35405 | if (obj0) { | |
2f4c0a16 RD |
35406 | arg1 = (int) SWIG_AsInt(obj0); |
35407 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35408 | } |
35409 | if (obj1) { | |
2f4c0a16 RD |
35410 | arg2 = (int) SWIG_AsInt(obj1); |
35411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35412 | } |
d14a1e28 RD |
35413 | { |
35414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35415 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
35416 | ||
35417 | wxPyEndAllowThreads(__tstate); | |
35418 | if (PyErr_Occurred()) SWIG_fail; | |
35419 | } | |
2f4c0a16 | 35420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
35421 | return resultobj; |
35422 | fail: | |
35423 | return NULL; | |
35424 | } | |
35425 | ||
35426 | ||
2f4c0a16 | 35427 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35428 | PyObject *resultobj; |
35429 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35430 | int result; | |
35431 | PyObject * obj0 = 0 ; | |
35432 | char *kwnames[] = { | |
35433 | (char *) "self", NULL | |
35434 | }; | |
35435 | ||
35436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35439 | { |
35440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35441 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
35442 | ||
35443 | wxPyEndAllowThreads(__tstate); | |
35444 | if (PyErr_Occurred()) SWIG_fail; | |
35445 | } | |
2f4c0a16 | 35446 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35447 | return resultobj; |
35448 | fail: | |
35449 | return NULL; | |
35450 | } | |
35451 | ||
35452 | ||
2f4c0a16 | 35453 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35454 | PyObject *resultobj; |
35455 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35456 | int result; | |
35457 | PyObject * obj0 = 0 ; | |
35458 | char *kwnames[] = { | |
35459 | (char *) "self", NULL | |
35460 | }; | |
35461 | ||
35462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35465 | { |
35466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35467 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
35468 | ||
35469 | wxPyEndAllowThreads(__tstate); | |
35470 | if (PyErr_Occurred()) SWIG_fail; | |
35471 | } | |
2f4c0a16 | 35472 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35473 | return resultobj; |
35474 | fail: | |
35475 | return NULL; | |
35476 | } | |
35477 | ||
35478 | ||
2f4c0a16 | 35479 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35480 | PyObject *resultobj; |
35481 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35482 | int arg2 ; | |
35483 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35484 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35485 | char *kwnames[] = { |
35486 | (char *) "self",(char *) "rowspan", NULL | |
35487 | }; | |
35488 | ||
8edf1c75 | 35489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35492 | arg2 = (int) SWIG_AsInt(obj1); | |
35493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35494 | { |
35495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35496 | (arg1)->SetRowspan(arg2); | |
35497 | ||
35498 | wxPyEndAllowThreads(__tstate); | |
35499 | if (PyErr_Occurred()) SWIG_fail; | |
35500 | } | |
35501 | Py_INCREF(Py_None); resultobj = Py_None; | |
35502 | return resultobj; | |
35503 | fail: | |
35504 | return NULL; | |
35505 | } | |
35506 | ||
35507 | ||
2f4c0a16 | 35508 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35509 | PyObject *resultobj; |
35510 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35511 | int arg2 ; | |
35512 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35513 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35514 | char *kwnames[] = { |
35515 | (char *) "self",(char *) "colspan", NULL | |
35516 | }; | |
35517 | ||
8edf1c75 | 35518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35521 | arg2 = (int) SWIG_AsInt(obj1); | |
35522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35523 | { |
35524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35525 | (arg1)->SetColspan(arg2); | |
35526 | ||
35527 | wxPyEndAllowThreads(__tstate); | |
35528 | if (PyErr_Occurred()) SWIG_fail; | |
35529 | } | |
35530 | Py_INCREF(Py_None); resultobj = Py_None; | |
35531 | return resultobj; | |
35532 | fail: | |
35533 | return NULL; | |
35534 | } | |
35535 | ||
35536 | ||
2f4c0a16 | 35537 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35538 | PyObject *resultobj; |
35539 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38f59159 | 35540 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35541 | bool result; |
d14a1e28 RD |
35542 | PyObject * obj0 = 0 ; |
35543 | PyObject * obj1 = 0 ; | |
35544 | char *kwnames[] = { | |
38f59159 | 35545 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35546 | }; |
35547 | ||
35548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSpan, | |
35552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35553 | { |
35554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 35555 | result = (bool)wxGBSpan___eq__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35556 | |
35557 | wxPyEndAllowThreads(__tstate); | |
35558 | if (PyErr_Occurred()) SWIG_fail; | |
35559 | } | |
02a34c4c | 35560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35561 | return resultobj; |
35562 | fail: | |
35563 | return NULL; | |
35564 | } | |
35565 | ||
35566 | ||
2f4c0a16 | 35567 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35568 | PyObject *resultobj; |
35569 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38f59159 | 35570 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35571 | bool result; |
d14a1e28 RD |
35572 | PyObject * obj0 = 0 ; |
35573 | PyObject * obj1 = 0 ; | |
35574 | char *kwnames[] = { | |
38f59159 | 35575 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35576 | }; |
35577 | ||
35578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSpan, | |
35582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35583 | { |
35584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 35585 | result = (bool)wxGBSpan___ne__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35586 | |
35587 | wxPyEndAllowThreads(__tstate); | |
35588 | if (PyErr_Occurred()) SWIG_fail; | |
35589 | } | |
02a34c4c | 35590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35591 | return resultobj; |
35592 | fail: | |
35593 | return NULL; | |
35594 | } | |
35595 | ||
35596 | ||
2f4c0a16 | 35597 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
423f194a RD |
35598 | PyObject *resultobj; |
35599 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35600 | int arg2 = (int) 1 ; | |
35601 | int arg3 = (int) 1 ; | |
35602 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35603 | PyObject * obj1 = 0 ; |
35604 | PyObject * obj2 = 0 ; | |
423f194a RD |
35605 | char *kwnames[] = { |
35606 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
35607 | }; | |
35608 | ||
8edf1c75 | 35609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 35612 | if (obj1) { |
2f4c0a16 RD |
35613 | arg2 = (int) SWIG_AsInt(obj1); |
35614 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35615 | } |
35616 | if (obj2) { | |
2f4c0a16 RD |
35617 | arg3 = (int) SWIG_AsInt(obj2); |
35618 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35619 | } |
423f194a RD |
35620 | { |
35621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35622 | wxGBSpan_Set(arg1,arg2,arg3); | |
35623 | ||
35624 | wxPyEndAllowThreads(__tstate); | |
35625 | if (PyErr_Occurred()) SWIG_fail; | |
35626 | } | |
35627 | Py_INCREF(Py_None); resultobj = Py_None; | |
35628 | return resultobj; | |
35629 | fail: | |
35630 | return NULL; | |
35631 | } | |
35632 | ||
35633 | ||
2f4c0a16 | 35634 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35635 | PyObject *resultobj; |
35636 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35637 | PyObject *result; | |
35638 | PyObject * obj0 = 0 ; | |
35639 | char *kwnames[] = { | |
35640 | (char *) "self", NULL | |
35641 | }; | |
35642 | ||
423f194a | 35643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
35644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35646 | { |
35647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35648 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
35649 | |
35650 | wxPyEndAllowThreads(__tstate); | |
35651 | if (PyErr_Occurred()) SWIG_fail; | |
35652 | } | |
35653 | resultobj = result; | |
35654 | return resultobj; | |
35655 | fail: | |
35656 | return NULL; | |
35657 | } | |
35658 | ||
35659 | ||
2f4c0a16 | 35660 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35661 | PyObject *obj; |
35662 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35663 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
35664 | Py_INCREF(obj); | |
35665 | return Py_BuildValue((char *)""); | |
35666 | } | |
8edf1c75 | 35667 | static int _wrap_DefaultSpan_set(PyObject *) { |
d14a1e28 RD |
35668 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
35669 | return 1; | |
35670 | } | |
35671 | ||
35672 | ||
35673 | static PyObject *_wrap_DefaultSpan_get() { | |
35674 | PyObject *pyobj; | |
35675 | ||
2f4c0a16 | 35676 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
35677 | return pyobj; |
35678 | } | |
35679 | ||
35680 | ||
2f4c0a16 | 35681 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35682 | PyObject *resultobj; |
35683 | wxGBSizerItem *result; | |
35684 | char *kwnames[] = { | |
35685 | NULL | |
35686 | }; | |
35687 | ||
35688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
35689 | { | |
35690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35691 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
35692 | ||
35693 | wxPyEndAllowThreads(__tstate); | |
35694 | if (PyErr_Occurred()) SWIG_fail; | |
35695 | } | |
2f4c0a16 | 35696 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
35697 | return resultobj; |
35698 | fail: | |
35699 | return NULL; | |
35700 | } | |
35701 | ||
35702 | ||
2f4c0a16 | 35703 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35704 | PyObject *resultobj; |
35705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
35706 | wxGBPosition *arg2 = 0 ; | |
35707 | wxGBSpan *arg3 = 0 ; | |
35708 | int arg4 ; | |
35709 | int arg5 ; | |
35710 | wxObject *arg6 = (wxObject *) 0 ; | |
35711 | wxGBSizerItem *result; | |
35712 | wxGBPosition temp2 ; | |
35713 | wxGBSpan temp3 ; | |
35714 | PyObject * obj0 = 0 ; | |
35715 | PyObject * obj1 = 0 ; | |
35716 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35717 | PyObject * obj3 = 0 ; |
35718 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35719 | PyObject * obj5 = 0 ; |
35720 | char *kwnames[] = { | |
35721 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35722 | }; | |
35723 | ||
8edf1c75 | 35724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
35725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
35726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35727 | { |
35728 | arg2 = &temp2; | |
35729 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35730 | } | |
35731 | { | |
35732 | arg3 = &temp3; | |
35733 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35734 | } | |
2f4c0a16 RD |
35735 | arg4 = (int) SWIG_AsInt(obj3); |
35736 | if (PyErr_Occurred()) SWIG_fail; | |
35737 | arg5 = (int) SWIG_AsInt(obj4); | |
35738 | if (PyErr_Occurred()) SWIG_fail; | |
35739 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
35740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35741 | { |
35742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35743 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35744 | ||
35745 | wxPyEndAllowThreads(__tstate); | |
35746 | if (PyErr_Occurred()) SWIG_fail; | |
35747 | } | |
2f4c0a16 | 35748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
35749 | return resultobj; |
35750 | fail: | |
35751 | return NULL; | |
35752 | } | |
35753 | ||
35754 | ||
2f4c0a16 | 35755 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35756 | PyObject *resultobj; |
35757 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35758 | wxGBPosition *arg2 = 0 ; | |
35759 | wxGBSpan *arg3 = 0 ; | |
35760 | int arg4 ; | |
35761 | int arg5 ; | |
35762 | wxObject *arg6 = (wxObject *) 0 ; | |
35763 | wxGBSizerItem *result; | |
35764 | wxGBPosition temp2 ; | |
35765 | wxGBSpan temp3 ; | |
35766 | PyObject * obj0 = 0 ; | |
35767 | PyObject * obj1 = 0 ; | |
35768 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35769 | PyObject * obj3 = 0 ; |
35770 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35771 | PyObject * obj5 = 0 ; |
35772 | char *kwnames[] = { | |
35773 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35774 | }; | |
35775 | ||
8edf1c75 | 35776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
35777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35779 | { |
35780 | arg2 = &temp2; | |
35781 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35782 | } | |
35783 | { | |
35784 | arg3 = &temp3; | |
35785 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35786 | } | |
2f4c0a16 RD |
35787 | arg4 = (int) SWIG_AsInt(obj3); |
35788 | if (PyErr_Occurred()) SWIG_fail; | |
35789 | arg5 = (int) SWIG_AsInt(obj4); | |
35790 | if (PyErr_Occurred()) SWIG_fail; | |
35791 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
35792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35793 | { |
35794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35795 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35796 | ||
35797 | wxPyEndAllowThreads(__tstate); | |
35798 | if (PyErr_Occurred()) SWIG_fail; | |
35799 | } | |
2f4c0a16 | 35800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
35801 | return resultobj; |
35802 | fail: | |
35803 | return NULL; | |
35804 | } | |
35805 | ||
35806 | ||
2f4c0a16 | 35807 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35808 | PyObject *resultobj; |
35809 | int arg1 ; | |
35810 | int arg2 ; | |
35811 | wxGBPosition *arg3 = 0 ; | |
35812 | wxGBSpan *arg4 = 0 ; | |
35813 | int arg5 ; | |
35814 | int arg6 ; | |
35815 | wxObject *arg7 = (wxObject *) 0 ; | |
35816 | wxGBSizerItem *result; | |
35817 | wxGBPosition temp3 ; | |
35818 | wxGBSpan temp4 ; | |
8edf1c75 RD |
35819 | PyObject * obj0 = 0 ; |
35820 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35821 | PyObject * obj2 = 0 ; |
35822 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
35823 | PyObject * obj4 = 0 ; |
35824 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
35825 | PyObject * obj6 = 0 ; |
35826 | char *kwnames[] = { | |
35827 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35828 | }; | |
35829 | ||
8edf1c75 | 35830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
35831 | arg1 = (int) SWIG_AsInt(obj0); |
35832 | if (PyErr_Occurred()) SWIG_fail; | |
35833 | arg2 = (int) SWIG_AsInt(obj1); | |
35834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35835 | { |
35836 | arg3 = &temp3; | |
35837 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
35838 | } | |
35839 | { | |
35840 | arg4 = &temp4; | |
35841 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
35842 | } | |
2f4c0a16 RD |
35843 | arg5 = (int) SWIG_AsInt(obj4); |
35844 | if (PyErr_Occurred()) SWIG_fail; | |
35845 | arg6 = (int) SWIG_AsInt(obj5); | |
35846 | if (PyErr_Occurred()) SWIG_fail; | |
35847 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
35848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35849 | { |
35850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35851 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
35852 | ||
35853 | wxPyEndAllowThreads(__tstate); | |
35854 | if (PyErr_Occurred()) SWIG_fail; | |
35855 | } | |
2f4c0a16 | 35856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
35857 | return resultobj; |
35858 | fail: | |
35859 | return NULL; | |
35860 | } | |
35861 | ||
35862 | ||
2f4c0a16 | 35863 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35864 | PyObject *resultobj; |
35865 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35866 | wxGBPosition result; | |
35867 | PyObject * obj0 = 0 ; | |
35868 | char *kwnames[] = { | |
35869 | (char *) "self", NULL | |
35870 | }; | |
35871 | ||
35872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
35874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35875 | { |
35876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35877 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
35878 | ||
35879 | wxPyEndAllowThreads(__tstate); | |
35880 | if (PyErr_Occurred()) SWIG_fail; | |
35881 | } | |
35882 | { | |
35883 | wxGBPosition * resultptr; | |
35884 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 35885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
35886 | } |
35887 | return resultobj; | |
35888 | fail: | |
35889 | return NULL; | |
35890 | } | |
35891 | ||
35892 | ||
2f4c0a16 | 35893 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35894 | PyObject *resultobj; |
35895 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35896 | wxGBSpan result; | |
35897 | PyObject * obj0 = 0 ; | |
35898 | char *kwnames[] = { | |
35899 | (char *) "self", NULL | |
35900 | }; | |
35901 | ||
35902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
35904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35905 | { |
35906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35907 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
35908 | ||
35909 | wxPyEndAllowThreads(__tstate); | |
35910 | if (PyErr_Occurred()) SWIG_fail; | |
35911 | } | |
35912 | { | |
35913 | wxGBSpan * resultptr; | |
35914 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 35915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
35916 | } |
35917 | return resultobj; | |
35918 | fail: | |
35919 | return NULL; | |
35920 | } | |
35921 | ||
35922 | ||
2f4c0a16 | 35923 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35924 | PyObject *resultobj; |
35925 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35926 | wxGBPosition *arg2 = 0 ; | |
35927 | bool result; | |
35928 | wxGBPosition temp2 ; | |
35929 | PyObject * obj0 = 0 ; | |
35930 | PyObject * obj1 = 0 ; | |
35931 | char *kwnames[] = { | |
35932 | (char *) "self",(char *) "pos", NULL | |
35933 | }; | |
35934 | ||
35935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
35937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35938 | { |
35939 | arg2 = &temp2; | |
35940 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35941 | } | |
35942 | { | |
35943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35944 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
35945 | ||
35946 | wxPyEndAllowThreads(__tstate); | |
35947 | if (PyErr_Occurred()) SWIG_fail; | |
35948 | } | |
02a34c4c | 35949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35950 | return resultobj; |
35951 | fail: | |
35952 | return NULL; | |
35953 | } | |
35954 | ||
35955 | ||
2f4c0a16 | 35956 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35957 | PyObject *resultobj; |
35958 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35959 | wxGBSpan *arg2 = 0 ; | |
35960 | bool result; | |
35961 | wxGBSpan temp2 ; | |
35962 | PyObject * obj0 = 0 ; | |
35963 | PyObject * obj1 = 0 ; | |
35964 | char *kwnames[] = { | |
35965 | (char *) "self",(char *) "span", NULL | |
35966 | }; | |
35967 | ||
35968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
35970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35971 | { |
35972 | arg2 = &temp2; | |
35973 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
35974 | } | |
35975 | { | |
35976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35977 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
35978 | ||
35979 | wxPyEndAllowThreads(__tstate); | |
35980 | if (PyErr_Occurred()) SWIG_fail; | |
35981 | } | |
02a34c4c | 35982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35983 | return resultobj; |
35984 | fail: | |
35985 | return NULL; | |
35986 | } | |
35987 | ||
35988 | ||
2f4c0a16 | 35989 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
35990 | PyObject *resultobj; |
35991 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35992 | wxGBSizerItem *arg2 = 0 ; | |
35993 | bool result; | |
35994 | PyObject * obj0 = 0 ; | |
35995 | PyObject * obj1 = 0 ; | |
35996 | ||
35997 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
35999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
36001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36002 | SWIG_fail; | |
d14a1e28 | 36003 | if (arg2 == NULL) { |
2f4c0a16 RD |
36004 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36005 | SWIG_fail; | |
d14a1e28 RD |
36006 | } |
36007 | { | |
36008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36009 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
36010 | ||
36011 | wxPyEndAllowThreads(__tstate); | |
36012 | if (PyErr_Occurred()) SWIG_fail; | |
36013 | } | |
02a34c4c | 36014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36015 | return resultobj; |
36016 | fail: | |
36017 | return NULL; | |
36018 | } | |
36019 | ||
36020 | ||
2f4c0a16 | 36021 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
36022 | PyObject *resultobj; |
36023 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36024 | wxGBPosition *arg2 = 0 ; | |
36025 | wxGBSpan *arg3 = 0 ; | |
36026 | bool result; | |
36027 | wxGBPosition temp2 ; | |
36028 | wxGBSpan temp3 ; | |
36029 | PyObject * obj0 = 0 ; | |
36030 | PyObject * obj1 = 0 ; | |
36031 | PyObject * obj2 = 0 ; | |
36032 | ||
36033 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36036 | { |
36037 | arg2 = &temp2; | |
36038 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36039 | } | |
36040 | { | |
36041 | arg3 = &temp3; | |
36042 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36043 | } | |
36044 | { | |
36045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36046 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
36047 | ||
36048 | wxPyEndAllowThreads(__tstate); | |
36049 | if (PyErr_Occurred()) SWIG_fail; | |
36050 | } | |
02a34c4c | 36051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36052 | return resultobj; |
36053 | fail: | |
36054 | return NULL; | |
36055 | } | |
36056 | ||
36057 | ||
36058 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
36059 | int argc; | |
36060 | PyObject *argv[4]; | |
36061 | int ii; | |
36062 | ||
36063 | argc = PyObject_Length(args); | |
36064 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36065 | argv[ii] = PyTuple_GetItem(args,ii); | |
36066 | } | |
36067 | if (argc == 2) { | |
36068 | int _v; | |
36069 | { | |
36070 | void *ptr; | |
2f4c0a16 | 36071 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36072 | _v = 0; |
36073 | PyErr_Clear(); | |
36074 | } else { | |
36075 | _v = 1; | |
36076 | } | |
36077 | } | |
36078 | if (_v) { | |
36079 | { | |
36080 | void *ptr; | |
2f4c0a16 | 36081 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36082 | _v = 0; |
36083 | PyErr_Clear(); | |
36084 | } else { | |
36085 | _v = 1; | |
36086 | } | |
36087 | } | |
36088 | if (_v) { | |
36089 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
36090 | } | |
36091 | } | |
36092 | } | |
36093 | if (argc == 3) { | |
36094 | int _v; | |
36095 | { | |
36096 | void *ptr; | |
2f4c0a16 | 36097 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36098 | _v = 0; |
36099 | PyErr_Clear(); | |
36100 | } else { | |
36101 | _v = 1; | |
36102 | } | |
36103 | } | |
36104 | if (_v) { | |
36105 | { | |
36106 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
36107 | } | |
36108 | if (_v) { | |
36109 | { | |
36110 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36111 | } | |
36112 | if (_v) { | |
36113 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
36114 | } | |
36115 | } | |
36116 | } | |
36117 | } | |
36118 | ||
36119 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
36120 | return NULL; | |
36121 | } | |
36122 | ||
36123 | ||
2f4c0a16 | 36124 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36125 | PyObject *resultobj; |
36126 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36127 | int *arg2 = 0 ; | |
36128 | int *arg3 = 0 ; | |
36129 | PyObject * obj0 = 0 ; | |
36130 | PyObject * obj1 = 0 ; | |
36131 | PyObject * obj2 = 0 ; | |
36132 | char *kwnames[] = { | |
36133 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36134 | }; | |
36135 | ||
36136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
36140 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36141 | SWIG_fail; | |
d14a1e28 | 36142 | if (arg2 == NULL) { |
2f4c0a16 RD |
36143 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36144 | SWIG_fail; | |
d14a1e28 | 36145 | } |
2f4c0a16 RD |
36146 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
36147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36148 | SWIG_fail; | |
d14a1e28 | 36149 | if (arg3 == NULL) { |
2f4c0a16 RD |
36150 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36151 | SWIG_fail; | |
d14a1e28 RD |
36152 | } |
36153 | { | |
36154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36155 | (arg1)->GetEndPos(*arg2,*arg3); | |
36156 | ||
36157 | wxPyEndAllowThreads(__tstate); | |
36158 | if (PyErr_Occurred()) SWIG_fail; | |
36159 | } | |
36160 | Py_INCREF(Py_None); resultobj = Py_None; | |
36161 | return resultobj; | |
36162 | fail: | |
36163 | return NULL; | |
36164 | } | |
36165 | ||
36166 | ||
2f4c0a16 | 36167 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36168 | PyObject *resultobj; |
36169 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36170 | wxGridBagSizer *result; | |
36171 | PyObject * obj0 = 0 ; | |
36172 | char *kwnames[] = { | |
36173 | (char *) "self", NULL | |
36174 | }; | |
36175 | ||
36176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36179 | { |
36180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36181 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
36182 | ||
36183 | wxPyEndAllowThreads(__tstate); | |
36184 | if (PyErr_Occurred()) SWIG_fail; | |
36185 | } | |
2f4c0a16 | 36186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
36187 | return resultobj; |
36188 | fail: | |
36189 | return NULL; | |
36190 | } | |
36191 | ||
36192 | ||
2f4c0a16 | 36193 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36194 | PyObject *resultobj; |
36195 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36196 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
36197 | PyObject * obj0 = 0 ; | |
36198 | PyObject * obj1 = 0 ; | |
36199 | char *kwnames[] = { | |
36200 | (char *) "self",(char *) "sizer", NULL | |
36201 | }; | |
36202 | ||
36203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
36207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36208 | { |
36209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36210 | (arg1)->SetGBSizer(arg2); | |
36211 | ||
36212 | wxPyEndAllowThreads(__tstate); | |
36213 | if (PyErr_Occurred()) SWIG_fail; | |
36214 | } | |
36215 | Py_INCREF(Py_None); resultobj = Py_None; | |
36216 | return resultobj; | |
36217 | fail: | |
36218 | return NULL; | |
36219 | } | |
36220 | ||
36221 | ||
2f4c0a16 | 36222 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
36223 | PyObject *obj; |
36224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36225 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
36226 | Py_INCREF(obj); | |
36227 | return Py_BuildValue((char *)""); | |
36228 | } | |
2f4c0a16 | 36229 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36230 | PyObject *resultobj; |
36231 | int arg1 = (int) 0 ; | |
36232 | int arg2 = (int) 0 ; | |
36233 | wxGridBagSizer *result; | |
8edf1c75 RD |
36234 | PyObject * obj0 = 0 ; |
36235 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36236 | char *kwnames[] = { |
36237 | (char *) "vgap",(char *) "hgap", NULL | |
36238 | }; | |
36239 | ||
8edf1c75 RD |
36240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
36241 | if (obj0) { | |
2f4c0a16 RD |
36242 | arg1 = (int) SWIG_AsInt(obj0); |
36243 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36244 | } |
36245 | if (obj1) { | |
2f4c0a16 RD |
36246 | arg2 = (int) SWIG_AsInt(obj1); |
36247 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36248 | } |
d14a1e28 RD |
36249 | { |
36250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36251 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
36252 | ||
36253 | wxPyEndAllowThreads(__tstate); | |
36254 | if (PyErr_Occurred()) SWIG_fail; | |
36255 | } | |
2f4c0a16 | 36256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
36257 | return resultobj; |
36258 | fail: | |
36259 | return NULL; | |
36260 | } | |
36261 | ||
36262 | ||
2f4c0a16 | 36263 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36264 | PyObject *resultobj; |
36265 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36266 | PyObject *arg2 = (PyObject *) 0 ; | |
36267 | wxGBPosition *arg3 = 0 ; | |
36268 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
36269 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
36270 | int arg5 = (int) 0 ; | |
36271 | int arg6 = (int) 0 ; | |
36272 | PyObject *arg7 = (PyObject *) NULL ; | |
36273 | bool result; | |
36274 | wxGBPosition temp3 ; | |
36275 | wxGBSpan temp4 ; | |
36276 | PyObject * obj0 = 0 ; | |
36277 | PyObject * obj1 = 0 ; | |
36278 | PyObject * obj2 = 0 ; | |
36279 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36280 | PyObject * obj4 = 0 ; |
36281 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36282 | PyObject * obj6 = 0 ; |
36283 | char *kwnames[] = { | |
36284 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36285 | }; | |
36286 | ||
8edf1c75 | 36287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
36288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36290 | arg2 = obj1; |
36291 | { | |
36292 | arg3 = &temp3; | |
36293 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36294 | } | |
36295 | if (obj3) { | |
36296 | { | |
36297 | arg4 = &temp4; | |
36298 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36299 | } | |
36300 | } | |
8edf1c75 | 36301 | if (obj4) { |
2f4c0a16 RD |
36302 | arg5 = (int) SWIG_AsInt(obj4); |
36303 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36304 | } |
36305 | if (obj5) { | |
2f4c0a16 RD |
36306 | arg6 = (int) SWIG_AsInt(obj5); |
36307 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36308 | } |
d14a1e28 RD |
36309 | if (obj6) { |
36310 | arg7 = obj6; | |
36311 | } | |
36312 | { | |
36313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36314 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36315 | ||
36316 | wxPyEndAllowThreads(__tstate); | |
36317 | if (PyErr_Occurred()) SWIG_fail; | |
36318 | } | |
02a34c4c | 36319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36320 | return resultobj; |
36321 | fail: | |
36322 | return NULL; | |
36323 | } | |
36324 | ||
36325 | ||
2f4c0a16 | 36326 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36327 | PyObject *resultobj; |
36328 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36329 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
36330 | bool result; | |
36331 | PyObject * obj0 = 0 ; | |
36332 | PyObject * obj1 = 0 ; | |
36333 | char *kwnames[] = { | |
36334 | (char *) "self",(char *) "item", NULL | |
36335 | }; | |
36336 | ||
36337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
36341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36342 | { |
36343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36344 | result = (bool)(arg1)->Add(arg2); | |
36345 | ||
36346 | wxPyEndAllowThreads(__tstate); | |
36347 | if (PyErr_Occurred()) SWIG_fail; | |
36348 | } | |
02a34c4c | 36349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36350 | return resultobj; |
36351 | fail: | |
36352 | return NULL; | |
36353 | } | |
36354 | ||
36355 | ||
2f4c0a16 | 36356 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36357 | PyObject *resultobj; |
36358 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36359 | wxSize result; | |
36360 | PyObject * obj0 = 0 ; | |
36361 | char *kwnames[] = { | |
36362 | (char *) "self", NULL | |
36363 | }; | |
36364 | ||
36365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36368 | { |
36369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36370 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
36371 | ||
36372 | wxPyEndAllowThreads(__tstate); | |
36373 | if (PyErr_Occurred()) SWIG_fail; | |
36374 | } | |
36375 | { | |
36376 | wxSize * resultptr; | |
36377 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 36378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36379 | } |
36380 | return resultobj; | |
36381 | fail: | |
36382 | return NULL; | |
36383 | } | |
36384 | ||
36385 | ||
2f4c0a16 | 36386 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36387 | PyObject *resultobj; |
36388 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36389 | wxSize *arg2 = 0 ; | |
36390 | wxSize temp2 ; | |
36391 | PyObject * obj0 = 0 ; | |
36392 | PyObject * obj1 = 0 ; | |
36393 | char *kwnames[] = { | |
36394 | (char *) "self",(char *) "sz", NULL | |
36395 | }; | |
36396 | ||
36397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36400 | { |
36401 | arg2 = &temp2; | |
36402 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36403 | } | |
36404 | { | |
36405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36406 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
36407 | ||
36408 | wxPyEndAllowThreads(__tstate); | |
36409 | if (PyErr_Occurred()) SWIG_fail; | |
36410 | } | |
36411 | Py_INCREF(Py_None); resultobj = Py_None; | |
36412 | return resultobj; | |
36413 | fail: | |
36414 | return NULL; | |
36415 | } | |
36416 | ||
36417 | ||
2f4c0a16 | 36418 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
36419 | PyObject *resultobj; |
36420 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36422 | wxGBPosition result; | |
36423 | PyObject * obj0 = 0 ; | |
36424 | PyObject * obj1 = 0 ; | |
36425 | ||
36426 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36431 | { |
36432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36433 | result = (arg1)->GetItemPosition(arg2); | |
36434 | ||
36435 | wxPyEndAllowThreads(__tstate); | |
36436 | if (PyErr_Occurred()) SWIG_fail; | |
36437 | } | |
36438 | { | |
36439 | wxGBPosition * resultptr; | |
36440 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36442 | } |
36443 | return resultobj; | |
36444 | fail: | |
36445 | return NULL; | |
36446 | } | |
36447 | ||
36448 | ||
2f4c0a16 | 36449 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
36450 | PyObject *resultobj; |
36451 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36452 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36453 | wxGBPosition result; | |
36454 | PyObject * obj0 = 0 ; | |
36455 | PyObject * obj1 = 0 ; | |
36456 | ||
36457 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
36461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36462 | { |
36463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36464 | result = (arg1)->GetItemPosition(arg2); | |
36465 | ||
36466 | wxPyEndAllowThreads(__tstate); | |
36467 | if (PyErr_Occurred()) SWIG_fail; | |
36468 | } | |
36469 | { | |
36470 | wxGBPosition * resultptr; | |
36471 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36473 | } |
36474 | return resultobj; | |
36475 | fail: | |
36476 | return NULL; | |
36477 | } | |
36478 | ||
36479 | ||
2f4c0a16 | 36480 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
36481 | PyObject *resultobj; |
36482 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36483 | size_t arg2 ; | |
36484 | wxGBPosition result; | |
36485 | PyObject * obj0 = 0 ; | |
36486 | PyObject * obj1 = 0 ; | |
36487 | ||
36488 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36491 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36492 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36493 | { |
36494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36495 | result = (arg1)->GetItemPosition(arg2); | |
36496 | ||
36497 | wxPyEndAllowThreads(__tstate); | |
36498 | if (PyErr_Occurred()) SWIG_fail; | |
36499 | } | |
36500 | { | |
36501 | wxGBPosition * resultptr; | |
36502 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36504 | } |
36505 | return resultobj; | |
36506 | fail: | |
36507 | return NULL; | |
36508 | } | |
36509 | ||
36510 | ||
36511 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
36512 | int argc; | |
36513 | PyObject *argv[3]; | |
36514 | int ii; | |
36515 | ||
36516 | argc = PyObject_Length(args); | |
36517 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36518 | argv[ii] = PyTuple_GetItem(args,ii); | |
36519 | } | |
36520 | if (argc == 2) { | |
36521 | int _v; | |
36522 | { | |
36523 | void *ptr; | |
2f4c0a16 | 36524 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36525 | _v = 0; |
36526 | PyErr_Clear(); | |
36527 | } else { | |
36528 | _v = 1; | |
36529 | } | |
36530 | } | |
36531 | if (_v) { | |
36532 | { | |
36533 | void *ptr; | |
2f4c0a16 | 36534 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
36535 | _v = 0; |
36536 | PyErr_Clear(); | |
36537 | } else { | |
36538 | _v = 1; | |
36539 | } | |
36540 | } | |
36541 | if (_v) { | |
36542 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
36543 | } | |
36544 | } | |
36545 | } | |
36546 | if (argc == 2) { | |
36547 | int _v; | |
36548 | { | |
36549 | void *ptr; | |
2f4c0a16 | 36550 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36551 | _v = 0; |
36552 | PyErr_Clear(); | |
36553 | } else { | |
36554 | _v = 1; | |
36555 | } | |
36556 | } | |
36557 | if (_v) { | |
36558 | { | |
36559 | void *ptr; | |
2f4c0a16 | 36560 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
36561 | _v = 0; |
36562 | PyErr_Clear(); | |
36563 | } else { | |
36564 | _v = 1; | |
36565 | } | |
36566 | } | |
36567 | if (_v) { | |
36568 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
36569 | } | |
36570 | } | |
36571 | } | |
36572 | if (argc == 2) { | |
36573 | int _v; | |
36574 | { | |
36575 | void *ptr; | |
2f4c0a16 | 36576 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36577 | _v = 0; |
36578 | PyErr_Clear(); | |
36579 | } else { | |
36580 | _v = 1; | |
36581 | } | |
36582 | } | |
36583 | if (_v) { | |
2f4c0a16 | 36584 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
36585 | if (_v) { |
36586 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
36587 | } | |
36588 | } | |
36589 | } | |
36590 | ||
36591 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
36592 | return NULL; | |
36593 | } | |
36594 | ||
36595 | ||
2f4c0a16 | 36596 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
36597 | PyObject *resultobj; |
36598 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36599 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36600 | wxGBPosition *arg3 = 0 ; | |
36601 | bool result; | |
36602 | wxGBPosition temp3 ; | |
36603 | PyObject * obj0 = 0 ; | |
36604 | PyObject * obj1 = 0 ; | |
36605 | PyObject * obj2 = 0 ; | |
36606 | ||
36607 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36612 | { |
36613 | arg3 = &temp3; | |
36614 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36615 | } | |
36616 | { | |
36617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36618 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36619 | ||
36620 | wxPyEndAllowThreads(__tstate); | |
36621 | if (PyErr_Occurred()) SWIG_fail; | |
36622 | } | |
02a34c4c | 36623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36624 | return resultobj; |
36625 | fail: | |
36626 | return NULL; | |
36627 | } | |
36628 | ||
36629 | ||
2f4c0a16 | 36630 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
36631 | PyObject *resultobj; |
36632 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36633 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36634 | wxGBPosition *arg3 = 0 ; | |
36635 | bool result; | |
36636 | wxGBPosition temp3 ; | |
36637 | PyObject * obj0 = 0 ; | |
36638 | PyObject * obj1 = 0 ; | |
36639 | PyObject * obj2 = 0 ; | |
36640 | ||
36641 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
36645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36646 | { |
36647 | arg3 = &temp3; | |
36648 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36649 | } | |
36650 | { | |
36651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36652 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36653 | ||
36654 | wxPyEndAllowThreads(__tstate); | |
36655 | if (PyErr_Occurred()) SWIG_fail; | |
36656 | } | |
02a34c4c | 36657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36658 | return resultobj; |
36659 | fail: | |
36660 | return NULL; | |
36661 | } | |
36662 | ||
36663 | ||
2f4c0a16 | 36664 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
36665 | PyObject *resultobj; |
36666 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36667 | size_t arg2 ; | |
36668 | wxGBPosition *arg3 = 0 ; | |
36669 | bool result; | |
36670 | wxGBPosition temp3 ; | |
36671 | PyObject * obj0 = 0 ; | |
36672 | PyObject * obj1 = 0 ; | |
36673 | PyObject * obj2 = 0 ; | |
36674 | ||
36675 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36678 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36680 | { |
36681 | arg3 = &temp3; | |
36682 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36683 | } | |
36684 | { | |
36685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36686 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36687 | ||
36688 | wxPyEndAllowThreads(__tstate); | |
36689 | if (PyErr_Occurred()) SWIG_fail; | |
36690 | } | |
02a34c4c | 36691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36692 | return resultobj; |
36693 | fail: | |
36694 | return NULL; | |
36695 | } | |
36696 | ||
36697 | ||
36698 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
36699 | int argc; | |
36700 | PyObject *argv[4]; | |
36701 | int ii; | |
36702 | ||
36703 | argc = PyObject_Length(args); | |
36704 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36705 | argv[ii] = PyTuple_GetItem(args,ii); | |
36706 | } | |
36707 | if (argc == 3) { | |
36708 | int _v; | |
36709 | { | |
36710 | void *ptr; | |
2f4c0a16 | 36711 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36712 | _v = 0; |
36713 | PyErr_Clear(); | |
36714 | } else { | |
36715 | _v = 1; | |
36716 | } | |
36717 | } | |
36718 | if (_v) { | |
36719 | { | |
36720 | void *ptr; | |
2f4c0a16 | 36721 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
36722 | _v = 0; |
36723 | PyErr_Clear(); | |
36724 | } else { | |
36725 | _v = 1; | |
36726 | } | |
36727 | } | |
36728 | if (_v) { | |
36729 | { | |
36730 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36731 | } | |
36732 | if (_v) { | |
36733 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
36734 | } | |
36735 | } | |
36736 | } | |
36737 | } | |
36738 | if (argc == 3) { | |
36739 | int _v; | |
36740 | { | |
36741 | void *ptr; | |
2f4c0a16 | 36742 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36743 | _v = 0; |
36744 | PyErr_Clear(); | |
36745 | } else { | |
36746 | _v = 1; | |
36747 | } | |
36748 | } | |
36749 | if (_v) { | |
36750 | { | |
36751 | void *ptr; | |
2f4c0a16 | 36752 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
36753 | _v = 0; |
36754 | PyErr_Clear(); | |
36755 | } else { | |
36756 | _v = 1; | |
36757 | } | |
36758 | } | |
36759 | if (_v) { | |
36760 | { | |
36761 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36762 | } | |
36763 | if (_v) { | |
36764 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
36765 | } | |
36766 | } | |
36767 | } | |
36768 | } | |
36769 | if (argc == 3) { | |
36770 | int _v; | |
36771 | { | |
36772 | void *ptr; | |
2f4c0a16 | 36773 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36774 | _v = 0; |
36775 | PyErr_Clear(); | |
36776 | } else { | |
36777 | _v = 1; | |
36778 | } | |
36779 | } | |
36780 | if (_v) { | |
2f4c0a16 | 36781 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
36782 | if (_v) { |
36783 | { | |
36784 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36785 | } | |
36786 | if (_v) { | |
36787 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
36788 | } | |
36789 | } | |
36790 | } | |
36791 | } | |
36792 | ||
36793 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
36794 | return NULL; | |
36795 | } | |
36796 | ||
36797 | ||
2f4c0a16 | 36798 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
36799 | PyObject *resultobj; |
36800 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36801 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36802 | wxGBSpan result; | |
36803 | PyObject * obj0 = 0 ; | |
36804 | PyObject * obj1 = 0 ; | |
36805 | ||
36806 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36811 | { |
36812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36813 | result = (arg1)->GetItemSpan(arg2); | |
36814 | ||
36815 | wxPyEndAllowThreads(__tstate); | |
36816 | if (PyErr_Occurred()) SWIG_fail; | |
36817 | } | |
36818 | { | |
36819 | wxGBSpan * resultptr; | |
36820 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36821 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36822 | } |
36823 | return resultobj; | |
36824 | fail: | |
36825 | return NULL; | |
36826 | } | |
36827 | ||
36828 | ||
2f4c0a16 | 36829 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
36830 | PyObject *resultobj; |
36831 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36832 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36833 | wxGBSpan result; | |
36834 | PyObject * obj0 = 0 ; | |
36835 | PyObject * obj1 = 0 ; | |
36836 | ||
36837 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36840 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
36841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36842 | { |
36843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36844 | result = (arg1)->GetItemSpan(arg2); | |
36845 | ||
36846 | wxPyEndAllowThreads(__tstate); | |
36847 | if (PyErr_Occurred()) SWIG_fail; | |
36848 | } | |
36849 | { | |
36850 | wxGBSpan * resultptr; | |
36851 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36853 | } |
36854 | return resultobj; | |
36855 | fail: | |
36856 | return NULL; | |
36857 | } | |
36858 | ||
36859 | ||
2f4c0a16 | 36860 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
36861 | PyObject *resultobj; |
36862 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36863 | size_t arg2 ; | |
36864 | wxGBSpan result; | |
36865 | PyObject * obj0 = 0 ; | |
36866 | PyObject * obj1 = 0 ; | |
36867 | ||
36868 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36871 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36873 | { |
36874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36875 | result = (arg1)->GetItemSpan(arg2); | |
36876 | ||
36877 | wxPyEndAllowThreads(__tstate); | |
36878 | if (PyErr_Occurred()) SWIG_fail; | |
36879 | } | |
36880 | { | |
36881 | wxGBSpan * resultptr; | |
36882 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36883 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36884 | } |
36885 | return resultobj; | |
36886 | fail: | |
36887 | return NULL; | |
36888 | } | |
36889 | ||
36890 | ||
36891 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
36892 | int argc; | |
36893 | PyObject *argv[3]; | |
36894 | int ii; | |
36895 | ||
36896 | argc = PyObject_Length(args); | |
36897 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36898 | argv[ii] = PyTuple_GetItem(args,ii); | |
36899 | } | |
36900 | if (argc == 2) { | |
36901 | int _v; | |
36902 | { | |
36903 | void *ptr; | |
2f4c0a16 | 36904 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36905 | _v = 0; |
36906 | PyErr_Clear(); | |
36907 | } else { | |
36908 | _v = 1; | |
36909 | } | |
36910 | } | |
36911 | if (_v) { | |
36912 | { | |
36913 | void *ptr; | |
2f4c0a16 | 36914 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
36915 | _v = 0; |
36916 | PyErr_Clear(); | |
36917 | } else { | |
36918 | _v = 1; | |
36919 | } | |
36920 | } | |
36921 | if (_v) { | |
36922 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
36923 | } | |
36924 | } | |
36925 | } | |
36926 | if (argc == 2) { | |
36927 | int _v; | |
36928 | { | |
36929 | void *ptr; | |
2f4c0a16 | 36930 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36931 | _v = 0; |
36932 | PyErr_Clear(); | |
36933 | } else { | |
36934 | _v = 1; | |
36935 | } | |
36936 | } | |
36937 | if (_v) { | |
36938 | { | |
36939 | void *ptr; | |
2f4c0a16 | 36940 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
36941 | _v = 0; |
36942 | PyErr_Clear(); | |
36943 | } else { | |
36944 | _v = 1; | |
36945 | } | |
36946 | } | |
36947 | if (_v) { | |
36948 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
36949 | } | |
36950 | } | |
36951 | } | |
36952 | if (argc == 2) { | |
36953 | int _v; | |
36954 | { | |
36955 | void *ptr; | |
2f4c0a16 | 36956 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
36957 | _v = 0; |
36958 | PyErr_Clear(); | |
36959 | } else { | |
36960 | _v = 1; | |
36961 | } | |
36962 | } | |
36963 | if (_v) { | |
2f4c0a16 | 36964 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
36965 | if (_v) { |
36966 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
36967 | } | |
36968 | } | |
36969 | } | |
36970 | ||
36971 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
36972 | return NULL; | |
36973 | } | |
36974 | ||
36975 | ||
2f4c0a16 | 36976 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
36977 | PyObject *resultobj; |
36978 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36980 | wxGBSpan *arg3 = 0 ; | |
36981 | bool result; | |
36982 | wxGBSpan temp3 ; | |
36983 | PyObject * obj0 = 0 ; | |
36984 | PyObject * obj1 = 0 ; | |
36985 | PyObject * obj2 = 0 ; | |
36986 | ||
36987 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36992 | { |
36993 | arg3 = &temp3; | |
36994 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36995 | } | |
36996 | { | |
36997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36998 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
36999 | ||
37000 | wxPyEndAllowThreads(__tstate); | |
37001 | if (PyErr_Occurred()) SWIG_fail; | |
37002 | } | |
02a34c4c | 37003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37004 | return resultobj; |
37005 | fail: | |
37006 | return NULL; | |
37007 | } | |
37008 | ||
37009 | ||
2f4c0a16 | 37010 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
37011 | PyObject *resultobj; |
37012 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37013 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37014 | wxGBSpan *arg3 = 0 ; | |
37015 | bool result; | |
37016 | wxGBSpan temp3 ; | |
37017 | PyObject * obj0 = 0 ; | |
37018 | PyObject * obj1 = 0 ; | |
37019 | PyObject * obj2 = 0 ; | |
37020 | ||
37021 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37026 | { |
37027 | arg3 = &temp3; | |
37028 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37029 | } | |
37030 | { | |
37031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37032 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37033 | ||
37034 | wxPyEndAllowThreads(__tstate); | |
37035 | if (PyErr_Occurred()) SWIG_fail; | |
37036 | } | |
02a34c4c | 37037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37038 | return resultobj; |
37039 | fail: | |
37040 | return NULL; | |
37041 | } | |
37042 | ||
37043 | ||
2f4c0a16 | 37044 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
37045 | PyObject *resultobj; |
37046 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37047 | size_t arg2 ; | |
37048 | wxGBSpan *arg3 = 0 ; | |
37049 | bool result; | |
37050 | wxGBSpan temp3 ; | |
37051 | PyObject * obj0 = 0 ; | |
37052 | PyObject * obj1 = 0 ; | |
37053 | PyObject * obj2 = 0 ; | |
37054 | ||
37055 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37058 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37060 | { |
37061 | arg3 = &temp3; | |
37062 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37063 | } | |
37064 | { | |
37065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37066 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37067 | ||
37068 | wxPyEndAllowThreads(__tstate); | |
37069 | if (PyErr_Occurred()) SWIG_fail; | |
37070 | } | |
02a34c4c | 37071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37072 | return resultobj; |
37073 | fail: | |
37074 | return NULL; | |
37075 | } | |
37076 | ||
37077 | ||
37078 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
37079 | int argc; | |
37080 | PyObject *argv[4]; | |
37081 | int ii; | |
37082 | ||
37083 | argc = PyObject_Length(args); | |
37084 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37085 | argv[ii] = PyTuple_GetItem(args,ii); | |
37086 | } | |
37087 | if (argc == 3) { | |
37088 | int _v; | |
37089 | { | |
37090 | void *ptr; | |
2f4c0a16 | 37091 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37092 | _v = 0; |
37093 | PyErr_Clear(); | |
37094 | } else { | |
37095 | _v = 1; | |
37096 | } | |
37097 | } | |
37098 | if (_v) { | |
37099 | { | |
37100 | void *ptr; | |
2f4c0a16 | 37101 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37102 | _v = 0; |
37103 | PyErr_Clear(); | |
37104 | } else { | |
37105 | _v = 1; | |
37106 | } | |
37107 | } | |
37108 | if (_v) { | |
37109 | { | |
37110 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37111 | } | |
37112 | if (_v) { | |
37113 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
37114 | } | |
37115 | } | |
37116 | } | |
37117 | } | |
37118 | if (argc == 3) { | |
37119 | int _v; | |
37120 | { | |
37121 | void *ptr; | |
2f4c0a16 | 37122 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37123 | _v = 0; |
37124 | PyErr_Clear(); | |
37125 | } else { | |
37126 | _v = 1; | |
37127 | } | |
37128 | } | |
37129 | if (_v) { | |
37130 | { | |
37131 | void *ptr; | |
2f4c0a16 | 37132 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37133 | _v = 0; |
37134 | PyErr_Clear(); | |
37135 | } else { | |
37136 | _v = 1; | |
37137 | } | |
37138 | } | |
37139 | if (_v) { | |
37140 | { | |
37141 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37142 | } | |
37143 | if (_v) { | |
37144 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
37145 | } | |
37146 | } | |
37147 | } | |
37148 | } | |
37149 | if (argc == 3) { | |
37150 | int _v; | |
37151 | { | |
37152 | void *ptr; | |
2f4c0a16 | 37153 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37154 | _v = 0; |
37155 | PyErr_Clear(); | |
37156 | } else { | |
37157 | _v = 1; | |
37158 | } | |
37159 | } | |
37160 | if (_v) { | |
2f4c0a16 | 37161 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37162 | if (_v) { |
37163 | { | |
37164 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37165 | } | |
37166 | if (_v) { | |
37167 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
37168 | } | |
37169 | } | |
37170 | } | |
37171 | } | |
37172 | ||
37173 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
37174 | return NULL; | |
37175 | } | |
37176 | ||
37177 | ||
2f4c0a16 | 37178 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
37179 | PyObject *resultobj; |
37180 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37181 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37182 | wxGBSizerItem *result; | |
37183 | PyObject * obj0 = 0 ; | |
37184 | PyObject * obj1 = 0 ; | |
37185 | ||
37186 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37191 | { |
37192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37193 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37194 | ||
37195 | wxPyEndAllowThreads(__tstate); | |
37196 | if (PyErr_Occurred()) SWIG_fail; | |
37197 | } | |
2f4c0a16 | 37198 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37199 | return resultobj; |
37200 | fail: | |
37201 | return NULL; | |
37202 | } | |
37203 | ||
37204 | ||
2f4c0a16 | 37205 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
37206 | PyObject *resultobj; |
37207 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37208 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37209 | wxGBSizerItem *result; | |
37210 | PyObject * obj0 = 0 ; | |
37211 | PyObject * obj1 = 0 ; | |
37212 | ||
37213 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37216 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37218 | { |
37219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37220 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37221 | ||
37222 | wxPyEndAllowThreads(__tstate); | |
37223 | if (PyErr_Occurred()) SWIG_fail; | |
37224 | } | |
2f4c0a16 | 37225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37226 | return resultobj; |
37227 | fail: | |
37228 | return NULL; | |
37229 | } | |
37230 | ||
37231 | ||
37232 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
37233 | int argc; | |
37234 | PyObject *argv[3]; | |
37235 | int ii; | |
37236 | ||
37237 | argc = PyObject_Length(args); | |
37238 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37239 | argv[ii] = PyTuple_GetItem(args,ii); | |
37240 | } | |
37241 | if (argc == 2) { | |
37242 | int _v; | |
37243 | { | |
37244 | void *ptr; | |
2f4c0a16 | 37245 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37246 | _v = 0; |
37247 | PyErr_Clear(); | |
37248 | } else { | |
37249 | _v = 1; | |
37250 | } | |
37251 | } | |
37252 | if (_v) { | |
37253 | { | |
37254 | void *ptr; | |
2f4c0a16 | 37255 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37256 | _v = 0; |
37257 | PyErr_Clear(); | |
37258 | } else { | |
37259 | _v = 1; | |
37260 | } | |
37261 | } | |
37262 | if (_v) { | |
37263 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
37264 | } | |
37265 | } | |
37266 | } | |
37267 | if (argc == 2) { | |
37268 | int _v; | |
37269 | { | |
37270 | void *ptr; | |
2f4c0a16 | 37271 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37272 | _v = 0; |
37273 | PyErr_Clear(); | |
37274 | } else { | |
37275 | _v = 1; | |
37276 | } | |
37277 | } | |
37278 | if (_v) { | |
37279 | { | |
37280 | void *ptr; | |
2f4c0a16 | 37281 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37282 | _v = 0; |
37283 | PyErr_Clear(); | |
37284 | } else { | |
37285 | _v = 1; | |
37286 | } | |
37287 | } | |
37288 | if (_v) { | |
37289 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
37290 | } | |
37291 | } | |
37292 | } | |
37293 | ||
37294 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
37295 | return NULL; | |
37296 | } | |
37297 | ||
37298 | ||
2f4c0a16 | 37299 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37300 | PyObject *resultobj; |
37301 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37302 | wxGBPosition *arg2 = 0 ; | |
37303 | wxGBSizerItem *result; | |
37304 | wxGBPosition temp2 ; | |
37305 | PyObject * obj0 = 0 ; | |
37306 | PyObject * obj1 = 0 ; | |
37307 | char *kwnames[] = { | |
37308 | (char *) "self",(char *) "pos", NULL | |
37309 | }; | |
37310 | ||
37311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37314 | { |
37315 | arg2 = &temp2; | |
37316 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37317 | } | |
37318 | { | |
37319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37320 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
37321 | ||
37322 | wxPyEndAllowThreads(__tstate); | |
37323 | if (PyErr_Occurred()) SWIG_fail; | |
37324 | } | |
2f4c0a16 | 37325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37326 | return resultobj; |
37327 | fail: | |
37328 | return NULL; | |
37329 | } | |
37330 | ||
37331 | ||
2f4c0a16 | 37332 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
423f194a RD |
37333 | PyObject *resultobj; |
37334 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37335 | wxPoint *arg2 = 0 ; | |
37336 | wxGBSizerItem *result; | |
37337 | wxPoint temp2 ; | |
37338 | PyObject * obj0 = 0 ; | |
37339 | PyObject * obj1 = 0 ; | |
37340 | char *kwnames[] = { | |
37341 | (char *) "self",(char *) "pt", NULL | |
37342 | }; | |
37343 | ||
37344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
37347 | { |
37348 | arg2 = &temp2; | |
37349 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37350 | } | |
37351 | { | |
37352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37353 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
37354 | ||
37355 | wxPyEndAllowThreads(__tstate); | |
37356 | if (PyErr_Occurred()) SWIG_fail; | |
37357 | } | |
2f4c0a16 | 37358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
423f194a RD |
37359 | return resultobj; |
37360 | fail: | |
37361 | return NULL; | |
37362 | } | |
37363 | ||
37364 | ||
2f4c0a16 | 37365 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37366 | PyObject *resultobj; |
37367 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37368 | wxObject *arg2 = (wxObject *) 0 ; | |
37369 | wxGBSizerItem *result; | |
37370 | PyObject * obj0 = 0 ; | |
37371 | PyObject * obj1 = 0 ; | |
37372 | char *kwnames[] = { | |
37373 | (char *) "self",(char *) "userData", NULL | |
37374 | }; | |
37375 | ||
37376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
37380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37381 | { |
37382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37383 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
37384 | ||
37385 | wxPyEndAllowThreads(__tstate); | |
37386 | if (PyErr_Occurred()) SWIG_fail; | |
37387 | } | |
2f4c0a16 | 37388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37389 | return resultobj; |
37390 | fail: | |
37391 | return NULL; | |
37392 | } | |
37393 | ||
37394 | ||
2f4c0a16 | 37395 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37396 | PyObject *resultobj; |
37397 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37398 | PyObject * obj0 = 0 ; | |
37399 | char *kwnames[] = { | |
37400 | (char *) "self", NULL | |
37401 | }; | |
37402 | ||
37403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37406 | { |
37407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37408 | (arg1)->RecalcSizes(); | |
37409 | ||
37410 | wxPyEndAllowThreads(__tstate); | |
37411 | if (PyErr_Occurred()) SWIG_fail; | |
37412 | } | |
37413 | Py_INCREF(Py_None); resultobj = Py_None; | |
37414 | return resultobj; | |
37415 | fail: | |
37416 | return NULL; | |
37417 | } | |
37418 | ||
37419 | ||
2f4c0a16 | 37420 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37421 | PyObject *resultobj; |
37422 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37423 | wxSize result; | |
37424 | PyObject * obj0 = 0 ; | |
37425 | char *kwnames[] = { | |
37426 | (char *) "self", NULL | |
37427 | }; | |
37428 | ||
37429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37432 | { |
37433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37434 | result = (arg1)->CalcMin(); | |
37435 | ||
37436 | wxPyEndAllowThreads(__tstate); | |
37437 | if (PyErr_Occurred()) SWIG_fail; | |
37438 | } | |
37439 | { | |
37440 | wxSize * resultptr; | |
37441 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 37442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37443 | } |
37444 | return resultobj; | |
37445 | fail: | |
37446 | return NULL; | |
37447 | } | |
37448 | ||
37449 | ||
2f4c0a16 | 37450 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
37451 | PyObject *resultobj; |
37452 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37453 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37454 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
37455 | bool result; | |
37456 | PyObject * obj0 = 0 ; | |
37457 | PyObject * obj1 = 0 ; | |
37458 | PyObject * obj2 = 0 ; | |
37459 | ||
37460 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 37465 | if (obj2) { |
2f4c0a16 RD |
37466 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
37467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37468 | } |
37469 | { | |
37470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37471 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
37472 | ||
37473 | wxPyEndAllowThreads(__tstate); | |
37474 | if (PyErr_Occurred()) SWIG_fail; | |
37475 | } | |
02a34c4c | 37476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37477 | return resultobj; |
37478 | fail: | |
37479 | return NULL; | |
37480 | } | |
37481 | ||
37482 | ||
2f4c0a16 | 37483 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
37484 | PyObject *resultobj; |
37485 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37486 | wxGBPosition *arg2 = 0 ; | |
37487 | wxGBSpan *arg3 = 0 ; | |
37488 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
37489 | bool result; | |
37490 | wxGBPosition temp2 ; | |
37491 | wxGBSpan temp3 ; | |
37492 | PyObject * obj0 = 0 ; | |
37493 | PyObject * obj1 = 0 ; | |
37494 | PyObject * obj2 = 0 ; | |
37495 | PyObject * obj3 = 0 ; | |
37496 | ||
37497 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
37498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37500 | { |
37501 | arg2 = &temp2; | |
37502 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37503 | } | |
37504 | { | |
37505 | arg3 = &temp3; | |
37506 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37507 | } | |
37508 | if (obj3) { | |
2f4c0a16 RD |
37509 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
37510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37511 | } |
37512 | { | |
37513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37514 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
37515 | ||
37516 | wxPyEndAllowThreads(__tstate); | |
37517 | if (PyErr_Occurred()) SWIG_fail; | |
37518 | } | |
02a34c4c | 37519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37520 | return resultobj; |
37521 | fail: | |
37522 | return NULL; | |
37523 | } | |
37524 | ||
37525 | ||
37526 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
37527 | int argc; | |
37528 | PyObject *argv[5]; | |
37529 | int ii; | |
37530 | ||
37531 | argc = PyObject_Length(args); | |
37532 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
37533 | argv[ii] = PyTuple_GetItem(args,ii); | |
37534 | } | |
37535 | if ((argc >= 2) && (argc <= 3)) { | |
37536 | int _v; | |
37537 | { | |
37538 | void *ptr; | |
2f4c0a16 | 37539 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37540 | _v = 0; |
37541 | PyErr_Clear(); | |
37542 | } else { | |
37543 | _v = 1; | |
37544 | } | |
37545 | } | |
37546 | if (_v) { | |
37547 | { | |
37548 | void *ptr; | |
2f4c0a16 | 37549 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37550 | _v = 0; |
37551 | PyErr_Clear(); | |
37552 | } else { | |
37553 | _v = 1; | |
37554 | } | |
37555 | } | |
37556 | if (_v) { | |
37557 | if (argc <= 2) { | |
37558 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37559 | } | |
37560 | { | |
37561 | void *ptr; | |
2f4c0a16 | 37562 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37563 | _v = 0; |
37564 | PyErr_Clear(); | |
37565 | } else { | |
37566 | _v = 1; | |
37567 | } | |
37568 | } | |
37569 | if (_v) { | |
37570 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37571 | } | |
37572 | } | |
37573 | } | |
37574 | } | |
37575 | if ((argc >= 3) && (argc <= 4)) { | |
37576 | int _v; | |
37577 | { | |
37578 | void *ptr; | |
2f4c0a16 | 37579 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37580 | _v = 0; |
37581 | PyErr_Clear(); | |
37582 | } else { | |
37583 | _v = 1; | |
37584 | } | |
37585 | } | |
37586 | if (_v) { | |
37587 | { | |
37588 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37589 | } | |
37590 | if (_v) { | |
37591 | { | |
37592 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37593 | } | |
37594 | if (_v) { | |
37595 | if (argc <= 3) { | |
37596 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37597 | } | |
37598 | { | |
37599 | void *ptr; | |
2f4c0a16 | 37600 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37601 | _v = 0; |
37602 | PyErr_Clear(); | |
37603 | } else { | |
37604 | _v = 1; | |
37605 | } | |
37606 | } | |
37607 | if (_v) { | |
37608 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37609 | } | |
37610 | } | |
37611 | } | |
37612 | } | |
37613 | } | |
37614 | ||
37615 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
37616 | return NULL; | |
37617 | } | |
37618 | ||
37619 | ||
2f4c0a16 | 37620 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37621 | PyObject *obj; |
37622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37623 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
37624 | Py_INCREF(obj); | |
37625 | return Py_BuildValue((char *)""); | |
37626 | } | |
2f4c0a16 | 37627 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37628 | PyObject *resultobj; |
37629 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37630 | int arg2 ; | |
37631 | wxWindow *arg3 = (wxWindow *) 0 ; | |
37632 | int arg4 ; | |
37633 | int arg5 = (int) 0 ; | |
37634 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
37635 | PyObject * obj0 = 0 ; | |
8edf1c75 | 37636 | PyObject * obj1 = 0 ; |
d14a1e28 | 37637 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
37638 | PyObject * obj3 = 0 ; |
37639 | PyObject * obj4 = 0 ; | |
37640 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37641 | char *kwnames[] = { |
37642 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
37643 | }; | |
37644 | ||
8edf1c75 | 37645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
37646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37648 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
37649 | if (PyErr_Occurred()) SWIG_fail; | |
37650 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
37651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37652 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
37653 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37654 | if (obj4) { |
2f4c0a16 RD |
37655 | arg5 = (int) SWIG_AsInt(obj4); |
37656 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
37657 | } |
37658 | if (obj5) { | |
2f4c0a16 RD |
37659 | arg6 = (int) SWIG_AsInt(obj5); |
37660 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37661 | } |
d14a1e28 RD |
37662 | { |
37663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37664 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
37665 | ||
37666 | wxPyEndAllowThreads(__tstate); | |
37667 | if (PyErr_Occurred()) SWIG_fail; | |
37668 | } | |
37669 | Py_INCREF(Py_None); resultobj = Py_None; | |
37670 | return resultobj; | |
37671 | fail: | |
37672 | return NULL; | |
37673 | } | |
37674 | ||
37675 | ||
2f4c0a16 | 37676 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37677 | PyObject *resultobj; |
37678 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37679 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37680 | int arg3 = (int) 0 ; | |
37681 | PyObject * obj0 = 0 ; | |
37682 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37683 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37684 | char *kwnames[] = { |
37685 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37686 | }; | |
37687 | ||
8edf1c75 | 37688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
37689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 37693 | if (obj2) { |
2f4c0a16 RD |
37694 | arg3 = (int) SWIG_AsInt(obj2); |
37695 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37696 | } |
d14a1e28 RD |
37697 | { |
37698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37699 | (arg1)->LeftOf(arg2,arg3); | |
37700 | ||
37701 | wxPyEndAllowThreads(__tstate); | |
37702 | if (PyErr_Occurred()) SWIG_fail; | |
37703 | } | |
37704 | Py_INCREF(Py_None); resultobj = Py_None; | |
37705 | return resultobj; | |
37706 | fail: | |
37707 | return NULL; | |
37708 | } | |
37709 | ||
37710 | ||
2f4c0a16 | 37711 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37712 | PyObject *resultobj; |
37713 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37715 | int arg3 = (int) 0 ; | |
37716 | PyObject * obj0 = 0 ; | |
37717 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37718 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37719 | char *kwnames[] = { |
37720 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37721 | }; | |
37722 | ||
8edf1c75 | 37723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
37724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 37728 | if (obj2) { |
2f4c0a16 RD |
37729 | arg3 = (int) SWIG_AsInt(obj2); |
37730 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37731 | } |
d14a1e28 RD |
37732 | { |
37733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37734 | (arg1)->RightOf(arg2,arg3); | |
37735 | ||
37736 | wxPyEndAllowThreads(__tstate); | |
37737 | if (PyErr_Occurred()) SWIG_fail; | |
37738 | } | |
37739 | Py_INCREF(Py_None); resultobj = Py_None; | |
37740 | return resultobj; | |
37741 | fail: | |
37742 | return NULL; | |
37743 | } | |
37744 | ||
37745 | ||
2f4c0a16 | 37746 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37747 | PyObject *resultobj; |
37748 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37750 | int arg3 = (int) 0 ; | |
37751 | PyObject * obj0 = 0 ; | |
37752 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37753 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37754 | char *kwnames[] = { |
37755 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37756 | }; | |
37757 | ||
8edf1c75 | 37758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
37759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 37763 | if (obj2) { |
2f4c0a16 RD |
37764 | arg3 = (int) SWIG_AsInt(obj2); |
37765 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37766 | } |
d14a1e28 RD |
37767 | { |
37768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37769 | (arg1)->Above(arg2,arg3); | |
37770 | ||
37771 | wxPyEndAllowThreads(__tstate); | |
37772 | if (PyErr_Occurred()) SWIG_fail; | |
37773 | } | |
37774 | Py_INCREF(Py_None); resultobj = Py_None; | |
37775 | return resultobj; | |
37776 | fail: | |
37777 | return NULL; | |
37778 | } | |
37779 | ||
37780 | ||
2f4c0a16 | 37781 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37782 | PyObject *resultobj; |
37783 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37784 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37785 | int arg3 = (int) 0 ; | |
37786 | PyObject * obj0 = 0 ; | |
37787 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37788 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37789 | char *kwnames[] = { |
37790 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37791 | }; | |
37792 | ||
8edf1c75 | 37793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
37794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 37798 | if (obj2) { |
2f4c0a16 RD |
37799 | arg3 = (int) SWIG_AsInt(obj2); |
37800 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37801 | } |
d14a1e28 RD |
37802 | { |
37803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37804 | (arg1)->Below(arg2,arg3); | |
37805 | ||
37806 | wxPyEndAllowThreads(__tstate); | |
37807 | if (PyErr_Occurred()) SWIG_fail; | |
37808 | } | |
37809 | Py_INCREF(Py_None); resultobj = Py_None; | |
37810 | return resultobj; | |
37811 | fail: | |
37812 | return NULL; | |
37813 | } | |
37814 | ||
37815 | ||
2f4c0a16 | 37816 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37817 | PyObject *resultobj; |
37818 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37819 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37820 | int arg3 ; | |
37821 | int arg4 = (int) 0 ; | |
37822 | PyObject * obj0 = 0 ; | |
37823 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
37824 | PyObject * obj2 = 0 ; |
37825 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
37826 | char *kwnames[] = { |
37827 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
37828 | }; | |
37829 | ||
8edf1c75 | 37830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
37831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37835 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
37836 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37837 | if (obj3) { |
2f4c0a16 RD |
37838 | arg4 = (int) SWIG_AsInt(obj3); |
37839 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37840 | } |
d14a1e28 RD |
37841 | { |
37842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37843 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
37844 | ||
37845 | wxPyEndAllowThreads(__tstate); | |
37846 | if (PyErr_Occurred()) SWIG_fail; | |
37847 | } | |
37848 | Py_INCREF(Py_None); resultobj = Py_None; | |
37849 | return resultobj; | |
37850 | fail: | |
37851 | return NULL; | |
37852 | } | |
37853 | ||
37854 | ||
2f4c0a16 | 37855 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37856 | PyObject *resultobj; |
37857 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37858 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37859 | int arg3 ; | |
37860 | int arg4 ; | |
37861 | PyObject * obj0 = 0 ; | |
37862 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
37863 | PyObject * obj2 = 0 ; |
37864 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
37865 | char *kwnames[] = { |
37866 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
37867 | }; | |
37868 | ||
8edf1c75 | 37869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
37870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37874 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
37875 | if (PyErr_Occurred()) SWIG_fail; | |
37876 | arg4 = (int) SWIG_AsInt(obj3); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37878 | { |
37879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37880 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
37881 | ||
37882 | wxPyEndAllowThreads(__tstate); | |
37883 | if (PyErr_Occurred()) SWIG_fail; | |
37884 | } | |
37885 | Py_INCREF(Py_None); resultobj = Py_None; | |
37886 | return resultobj; | |
37887 | fail: | |
37888 | return NULL; | |
37889 | } | |
37890 | ||
37891 | ||
2f4c0a16 | 37892 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37893 | PyObject *resultobj; |
37894 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37895 | int arg2 ; | |
37896 | PyObject * obj0 = 0 ; | |
8edf1c75 | 37897 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37898 | char *kwnames[] = { |
37899 | (char *) "self",(char *) "val", NULL | |
37900 | }; | |
37901 | ||
8edf1c75 | 37902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
37903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37905 | arg2 = (int) SWIG_AsInt(obj1); | |
37906 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37907 | { |
37908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37909 | (arg1)->Absolute(arg2); | |
37910 | ||
37911 | wxPyEndAllowThreads(__tstate); | |
37912 | if (PyErr_Occurred()) SWIG_fail; | |
37913 | } | |
37914 | Py_INCREF(Py_None); resultobj = Py_None; | |
37915 | return resultobj; | |
37916 | fail: | |
37917 | return NULL; | |
37918 | } | |
37919 | ||
37920 | ||
2f4c0a16 | 37921 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37922 | PyObject *resultobj; |
37923 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37924 | PyObject * obj0 = 0 ; | |
37925 | char *kwnames[] = { | |
37926 | (char *) "self", NULL | |
37927 | }; | |
37928 | ||
37929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37932 | { |
37933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37934 | (arg1)->Unconstrained(); | |
37935 | ||
37936 | wxPyEndAllowThreads(__tstate); | |
37937 | if (PyErr_Occurred()) SWIG_fail; | |
37938 | } | |
37939 | Py_INCREF(Py_None); resultobj = Py_None; | |
37940 | return resultobj; | |
37941 | fail: | |
37942 | return NULL; | |
37943 | } | |
37944 | ||
37945 | ||
2f4c0a16 | 37946 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37947 | PyObject *resultobj; |
37948 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37949 | PyObject * obj0 = 0 ; | |
37950 | char *kwnames[] = { | |
37951 | (char *) "self", NULL | |
37952 | }; | |
37953 | ||
37954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37957 | { |
37958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37959 | (arg1)->AsIs(); | |
37960 | ||
37961 | wxPyEndAllowThreads(__tstate); | |
37962 | if (PyErr_Occurred()) SWIG_fail; | |
37963 | } | |
37964 | Py_INCREF(Py_None); resultobj = Py_None; | |
37965 | return resultobj; | |
37966 | fail: | |
37967 | return NULL; | |
37968 | } | |
37969 | ||
37970 | ||
2f4c0a16 | 37971 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37972 | PyObject *resultobj; |
37973 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37974 | wxWindow *result; | |
37975 | PyObject * obj0 = 0 ; | |
37976 | char *kwnames[] = { | |
37977 | (char *) "self", NULL | |
37978 | }; | |
37979 | ||
37980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
37982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37983 | { |
37984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37985 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
37986 | ||
37987 | wxPyEndAllowThreads(__tstate); | |
37988 | if (PyErr_Occurred()) SWIG_fail; | |
37989 | } | |
37990 | { | |
37991 | resultobj = wxPyMake_wxObject(result); | |
37992 | } | |
37993 | return resultobj; | |
37994 | fail: | |
37995 | return NULL; | |
37996 | } | |
37997 | ||
37998 | ||
2f4c0a16 | 37999 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38000 | PyObject *resultobj; |
38001 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38002 | int result; | |
38003 | PyObject * obj0 = 0 ; | |
38004 | char *kwnames[] = { | |
38005 | (char *) "self", NULL | |
38006 | }; | |
38007 | ||
38008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38011 | { |
38012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38013 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
38014 | ||
38015 | wxPyEndAllowThreads(__tstate); | |
38016 | if (PyErr_Occurred()) SWIG_fail; | |
38017 | } | |
2f4c0a16 | 38018 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38019 | return resultobj; |
38020 | fail: | |
38021 | return NULL; | |
38022 | } | |
38023 | ||
38024 | ||
2f4c0a16 | 38025 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38026 | PyObject *resultobj; |
38027 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38028 | int arg2 ; | |
38029 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38031 | char *kwnames[] = { |
38032 | (char *) "self",(char *) "which", NULL | |
38033 | }; | |
38034 | ||
8edf1c75 | 38035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38038 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
38039 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38040 | { |
38041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38042 | (arg1)->SetEdge((wxEdge )arg2); | |
38043 | ||
38044 | wxPyEndAllowThreads(__tstate); | |
38045 | if (PyErr_Occurred()) SWIG_fail; | |
38046 | } | |
38047 | Py_INCREF(Py_None); resultobj = Py_None; | |
38048 | return resultobj; | |
38049 | fail: | |
38050 | return NULL; | |
38051 | } | |
38052 | ||
38053 | ||
2f4c0a16 | 38054 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38055 | PyObject *resultobj; |
38056 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38057 | int arg2 ; | |
38058 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38060 | char *kwnames[] = { |
38061 | (char *) "self",(char *) "v", NULL | |
38062 | }; | |
38063 | ||
8edf1c75 | 38064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38067 | arg2 = (int) SWIG_AsInt(obj1); | |
38068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38069 | { |
38070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38071 | (arg1)->SetValue(arg2); | |
38072 | ||
38073 | wxPyEndAllowThreads(__tstate); | |
38074 | if (PyErr_Occurred()) SWIG_fail; | |
38075 | } | |
38076 | Py_INCREF(Py_None); resultobj = Py_None; | |
38077 | return resultobj; | |
38078 | fail: | |
38079 | return NULL; | |
38080 | } | |
38081 | ||
38082 | ||
2f4c0a16 | 38083 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38084 | PyObject *resultobj; |
38085 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38086 | int result; | |
38087 | PyObject * obj0 = 0 ; | |
38088 | char *kwnames[] = { | |
38089 | (char *) "self", NULL | |
38090 | }; | |
38091 | ||
38092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38095 | { |
38096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38097 | result = (int)(arg1)->GetMargin(); | |
38098 | ||
38099 | wxPyEndAllowThreads(__tstate); | |
38100 | if (PyErr_Occurred()) SWIG_fail; | |
38101 | } | |
2f4c0a16 | 38102 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38103 | return resultobj; |
38104 | fail: | |
38105 | return NULL; | |
38106 | } | |
38107 | ||
38108 | ||
2f4c0a16 | 38109 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38110 | PyObject *resultobj; |
38111 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38112 | int arg2 ; | |
38113 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38115 | char *kwnames[] = { |
38116 | (char *) "self",(char *) "m", NULL | |
38117 | }; | |
38118 | ||
8edf1c75 | 38119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38122 | arg2 = (int) SWIG_AsInt(obj1); | |
38123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38124 | { |
38125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38126 | (arg1)->SetMargin(arg2); | |
38127 | ||
38128 | wxPyEndAllowThreads(__tstate); | |
38129 | if (PyErr_Occurred()) SWIG_fail; | |
38130 | } | |
38131 | Py_INCREF(Py_None); resultobj = Py_None; | |
38132 | return resultobj; | |
38133 | fail: | |
38134 | return NULL; | |
38135 | } | |
38136 | ||
38137 | ||
2f4c0a16 | 38138 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38139 | PyObject *resultobj; |
38140 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38141 | int result; | |
38142 | PyObject * obj0 = 0 ; | |
38143 | char *kwnames[] = { | |
38144 | (char *) "self", NULL | |
38145 | }; | |
38146 | ||
38147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38150 | { |
38151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38152 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
38153 | ||
38154 | wxPyEndAllowThreads(__tstate); | |
38155 | if (PyErr_Occurred()) SWIG_fail; | |
38156 | } | |
2f4c0a16 | 38157 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38158 | return resultobj; |
38159 | fail: | |
38160 | return NULL; | |
38161 | } | |
38162 | ||
38163 | ||
2f4c0a16 | 38164 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38165 | PyObject *resultobj; |
38166 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38167 | int result; | |
38168 | PyObject * obj0 = 0 ; | |
38169 | char *kwnames[] = { | |
38170 | (char *) "self", NULL | |
38171 | }; | |
38172 | ||
38173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38176 | { |
38177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38178 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
38179 | ||
38180 | wxPyEndAllowThreads(__tstate); | |
38181 | if (PyErr_Occurred()) SWIG_fail; | |
38182 | } | |
2f4c0a16 | 38183 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38184 | return resultobj; |
38185 | fail: | |
38186 | return NULL; | |
38187 | } | |
38188 | ||
38189 | ||
2f4c0a16 | 38190 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38191 | PyObject *resultobj; |
38192 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38193 | int result; | |
38194 | PyObject * obj0 = 0 ; | |
38195 | char *kwnames[] = { | |
38196 | (char *) "self", NULL | |
38197 | }; | |
38198 | ||
38199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38202 | { |
38203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38204 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
38205 | ||
38206 | wxPyEndAllowThreads(__tstate); | |
38207 | if (PyErr_Occurred()) SWIG_fail; | |
38208 | } | |
2f4c0a16 | 38209 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38210 | return resultobj; |
38211 | fail: | |
38212 | return NULL; | |
38213 | } | |
38214 | ||
38215 | ||
2f4c0a16 | 38216 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38217 | PyObject *resultobj; |
38218 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38219 | bool result; | |
38220 | PyObject * obj0 = 0 ; | |
38221 | char *kwnames[] = { | |
38222 | (char *) "self", NULL | |
38223 | }; | |
38224 | ||
38225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38228 | { |
38229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38230 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
38231 | ||
38232 | wxPyEndAllowThreads(__tstate); | |
38233 | if (PyErr_Occurred()) SWIG_fail; | |
38234 | } | |
02a34c4c | 38235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38236 | return resultobj; |
38237 | fail: | |
38238 | return NULL; | |
38239 | } | |
38240 | ||
38241 | ||
2f4c0a16 | 38242 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38243 | PyObject *resultobj; |
38244 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38245 | bool arg2 ; | |
38246 | PyObject * obj0 = 0 ; | |
38247 | PyObject * obj1 = 0 ; | |
38248 | char *kwnames[] = { | |
38249 | (char *) "self",(char *) "d", NULL | |
38250 | }; | |
38251 | ||
38252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38255 | arg2 = (bool) SWIG_AsBool(obj1); | |
38256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38257 | { |
38258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38259 | (arg1)->SetDone(arg2); | |
38260 | ||
38261 | wxPyEndAllowThreads(__tstate); | |
38262 | if (PyErr_Occurred()) SWIG_fail; | |
38263 | } | |
38264 | Py_INCREF(Py_None); resultobj = Py_None; | |
38265 | return resultobj; | |
38266 | fail: | |
38267 | return NULL; | |
38268 | } | |
38269 | ||
38270 | ||
2f4c0a16 | 38271 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38272 | PyObject *resultobj; |
38273 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38274 | int result; | |
38275 | PyObject * obj0 = 0 ; | |
38276 | char *kwnames[] = { | |
38277 | (char *) "self", NULL | |
38278 | }; | |
38279 | ||
38280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38283 | { |
38284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38285 | result = (int)(arg1)->GetRelationship(); | |
38286 | ||
38287 | wxPyEndAllowThreads(__tstate); | |
38288 | if (PyErr_Occurred()) SWIG_fail; | |
38289 | } | |
2f4c0a16 | 38290 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38291 | return resultobj; |
38292 | fail: | |
38293 | return NULL; | |
38294 | } | |
38295 | ||
38296 | ||
2f4c0a16 | 38297 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38298 | PyObject *resultobj; |
38299 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38300 | int arg2 ; | |
38301 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38302 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38303 | char *kwnames[] = { |
38304 | (char *) "self",(char *) "r", NULL | |
38305 | }; | |
38306 | ||
8edf1c75 | 38307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38310 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38312 | { |
38313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38314 | (arg1)->SetRelationship((wxRelationship )arg2); | |
38315 | ||
38316 | wxPyEndAllowThreads(__tstate); | |
38317 | if (PyErr_Occurred()) SWIG_fail; | |
38318 | } | |
38319 | Py_INCREF(Py_None); resultobj = Py_None; | |
38320 | return resultobj; | |
38321 | fail: | |
38322 | return NULL; | |
38323 | } | |
38324 | ||
38325 | ||
2f4c0a16 | 38326 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38327 | PyObject *resultobj; |
38328 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38330 | bool result; | |
38331 | PyObject * obj0 = 0 ; | |
38332 | PyObject * obj1 = 0 ; | |
38333 | char *kwnames[] = { | |
38334 | (char *) "self",(char *) "otherW", NULL | |
38335 | }; | |
38336 | ||
38337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38342 | { |
38343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38344 | result = (bool)(arg1)->ResetIfWin(arg2); | |
38345 | ||
38346 | wxPyEndAllowThreads(__tstate); | |
38347 | if (PyErr_Occurred()) SWIG_fail; | |
38348 | } | |
02a34c4c | 38349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38350 | return resultobj; |
38351 | fail: | |
38352 | return NULL; | |
38353 | } | |
38354 | ||
38355 | ||
2f4c0a16 | 38356 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38357 | PyObject *resultobj; |
38358 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38359 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
38360 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38361 | bool result; | |
38362 | PyObject * obj0 = 0 ; | |
38363 | PyObject * obj1 = 0 ; | |
38364 | PyObject * obj2 = 0 ; | |
38365 | char *kwnames[] = { | |
38366 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
38367 | }; | |
38368 | ||
38369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
38373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38374 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38376 | { |
38377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38378 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
38379 | ||
38380 | wxPyEndAllowThreads(__tstate); | |
38381 | if (PyErr_Occurred()) SWIG_fail; | |
38382 | } | |
02a34c4c | 38383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38384 | return resultobj; |
38385 | fail: | |
38386 | return NULL; | |
38387 | } | |
38388 | ||
38389 | ||
2f4c0a16 | 38390 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38391 | PyObject *resultobj; |
38392 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38393 | int arg2 ; | |
38394 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38395 | wxWindow *arg4 = (wxWindow *) 0 ; | |
38396 | int result; | |
38397 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38398 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38399 | PyObject * obj2 = 0 ; |
38400 | PyObject * obj3 = 0 ; | |
38401 | char *kwnames[] = { | |
38402 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
38403 | }; | |
38404 | ||
8edf1c75 | 38405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38408 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
38409 | if (PyErr_Occurred()) SWIG_fail; | |
38410 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38412 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
38413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38414 | { |
38415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38416 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
38417 | ||
38418 | wxPyEndAllowThreads(__tstate); | |
38419 | if (PyErr_Occurred()) SWIG_fail; | |
38420 | } | |
2f4c0a16 | 38421 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38422 | return resultobj; |
38423 | fail: | |
38424 | return NULL; | |
38425 | } | |
38426 | ||
38427 | ||
2f4c0a16 | 38428 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38429 | PyObject *obj; |
38430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38431 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
38432 | Py_INCREF(obj); | |
38433 | return Py_BuildValue((char *)""); | |
38434 | } | |
2f4c0a16 | 38435 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38436 | PyObject *resultobj; |
38437 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38438 | wxIndividualLayoutConstraint *result; | |
38439 | PyObject * obj0 = 0 ; | |
38440 | char *kwnames[] = { | |
38441 | (char *) "self", NULL | |
38442 | }; | |
38443 | ||
38444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38447 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
38448 | ||
2f4c0a16 | 38449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38450 | return resultobj; |
38451 | fail: | |
38452 | return NULL; | |
38453 | } | |
38454 | ||
38455 | ||
2f4c0a16 | 38456 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38457 | PyObject *resultobj; |
38458 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38459 | wxIndividualLayoutConstraint *result; | |
38460 | PyObject * obj0 = 0 ; | |
38461 | char *kwnames[] = { | |
38462 | (char *) "self", NULL | |
38463 | }; | |
38464 | ||
38465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38468 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
38469 | ||
2f4c0a16 | 38470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38471 | return resultobj; |
38472 | fail: | |
38473 | return NULL; | |
38474 | } | |
38475 | ||
38476 | ||
2f4c0a16 | 38477 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38478 | PyObject *resultobj; |
38479 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38480 | wxIndividualLayoutConstraint *result; | |
38481 | PyObject * obj0 = 0 ; | |
38482 | char *kwnames[] = { | |
38483 | (char *) "self", NULL | |
38484 | }; | |
38485 | ||
38486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38489 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
38490 | ||
2f4c0a16 | 38491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38492 | return resultobj; |
38493 | fail: | |
38494 | return NULL; | |
38495 | } | |
38496 | ||
38497 | ||
2f4c0a16 | 38498 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38499 | PyObject *resultobj; |
38500 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38501 | wxIndividualLayoutConstraint *result; | |
38502 | PyObject * obj0 = 0 ; | |
38503 | char *kwnames[] = { | |
38504 | (char *) "self", NULL | |
38505 | }; | |
38506 | ||
38507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38510 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
38511 | ||
2f4c0a16 | 38512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38513 | return resultobj; |
38514 | fail: | |
38515 | return NULL; | |
38516 | } | |
38517 | ||
38518 | ||
2f4c0a16 | 38519 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38520 | PyObject *resultobj; |
38521 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38522 | wxIndividualLayoutConstraint *result; | |
38523 | PyObject * obj0 = 0 ; | |
38524 | char *kwnames[] = { | |
38525 | (char *) "self", NULL | |
38526 | }; | |
38527 | ||
38528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38531 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
38532 | ||
2f4c0a16 | 38533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38534 | return resultobj; |
38535 | fail: | |
38536 | return NULL; | |
38537 | } | |
38538 | ||
38539 | ||
2f4c0a16 | 38540 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38541 | PyObject *resultobj; |
38542 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38543 | wxIndividualLayoutConstraint *result; | |
38544 | PyObject * obj0 = 0 ; | |
38545 | char *kwnames[] = { | |
38546 | (char *) "self", NULL | |
38547 | }; | |
38548 | ||
38549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38552 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
38553 | ||
2f4c0a16 | 38554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38555 | return resultobj; |
38556 | fail: | |
38557 | return NULL; | |
38558 | } | |
38559 | ||
38560 | ||
2f4c0a16 | 38561 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38562 | PyObject *resultobj; |
38563 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38564 | wxIndividualLayoutConstraint *result; | |
38565 | PyObject * obj0 = 0 ; | |
38566 | char *kwnames[] = { | |
38567 | (char *) "self", NULL | |
38568 | }; | |
38569 | ||
38570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38573 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
38574 | ||
2f4c0a16 | 38575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38576 | return resultobj; |
38577 | fail: | |
38578 | return NULL; | |
38579 | } | |
38580 | ||
38581 | ||
2f4c0a16 | 38582 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38583 | PyObject *resultobj; |
38584 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38585 | wxIndividualLayoutConstraint *result; | |
38586 | PyObject * obj0 = 0 ; | |
38587 | char *kwnames[] = { | |
38588 | (char *) "self", NULL | |
38589 | }; | |
38590 | ||
38591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38594 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
38595 | ||
2f4c0a16 | 38596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38597 | return resultobj; |
38598 | fail: | |
38599 | return NULL; | |
38600 | } | |
38601 | ||
38602 | ||
2f4c0a16 | 38603 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38604 | PyObject *resultobj; |
38605 | wxLayoutConstraints *result; | |
38606 | char *kwnames[] = { | |
38607 | NULL | |
38608 | }; | |
38609 | ||
38610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
38611 | { | |
38612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38613 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
38614 | ||
38615 | wxPyEndAllowThreads(__tstate); | |
38616 | if (PyErr_Occurred()) SWIG_fail; | |
38617 | } | |
2f4c0a16 | 38618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
38619 | return resultobj; |
38620 | fail: | |
38621 | return NULL; | |
38622 | } | |
38623 | ||
38624 | ||
2f4c0a16 | 38625 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38626 | PyObject *resultobj; |
38627 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38629 | int *arg3 = (int *) 0 ; | |
38630 | bool result; | |
38631 | int temp3 ; | |
38632 | PyObject * obj0 = 0 ; | |
38633 | PyObject * obj1 = 0 ; | |
38634 | char *kwnames[] = { | |
38635 | (char *) "self",(char *) "win", NULL | |
38636 | }; | |
38637 | ||
38638 | arg3 = &temp3; | |
38639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38644 | { |
38645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38646 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
38647 | ||
38648 | wxPyEndAllowThreads(__tstate); | |
38649 | if (PyErr_Occurred()) SWIG_fail; | |
38650 | } | |
02a34c4c | 38651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38652 | { |
38653 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
38654 | resultobj = t_output_helper(resultobj,o); | |
38655 | } | |
38656 | return resultobj; | |
38657 | fail: | |
38658 | return NULL; | |
38659 | } | |
38660 | ||
38661 | ||
2f4c0a16 | 38662 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38663 | PyObject *resultobj; |
38664 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38665 | bool result; | |
38666 | PyObject * obj0 = 0 ; | |
38667 | char *kwnames[] = { | |
38668 | (char *) "self", NULL | |
38669 | }; | |
38670 | ||
38671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38674 | { |
38675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38676 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
38677 | ||
38678 | wxPyEndAllowThreads(__tstate); | |
38679 | if (PyErr_Occurred()) SWIG_fail; | |
38680 | } | |
02a34c4c | 38681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38682 | return resultobj; |
38683 | fail: | |
38684 | return NULL; | |
38685 | } | |
38686 | ||
38687 | ||
2f4c0a16 | 38688 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38689 | PyObject *obj; |
38690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38691 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
38692 | Py_INCREF(obj); | |
38693 | return Py_BuildValue((char *)""); | |
38694 | } | |
38695 | static PyMethodDef SwigMethods[] = { | |
2f4c0a16 RD |
38696 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
38697 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
38698 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38699 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38700 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
38701 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38702 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38703 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38704 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38705 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38706 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38707 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38708 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38709 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38710 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38711 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38712 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38713 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38714 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38715 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38716 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38717 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38718 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38719 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
38720 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38721 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38722 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38723 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38724 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38725 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38726 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38727 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38728 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38729 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38730 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38731 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38732 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
38733 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38734 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38735 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38736 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38737 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38738 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38739 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38740 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38741 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38742 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38743 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38744 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38745 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38746 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38747 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
38748 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38749 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38750 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38751 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38752 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38753 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38754 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38755 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38756 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38757 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38758 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38759 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38760 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38761 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38762 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38763 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38764 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38765 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38766 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38767 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38768 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38769 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38770 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38771 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38772 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38773 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38774 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38775 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38776 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38777 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38778 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38779 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38780 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38781 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38782 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38783 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38784 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38785 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38786 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38787 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38788 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38789 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38790 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38791 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38792 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38793 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38794 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38795 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38796 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38797 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38798 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
38799 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38800 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38801 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38802 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38803 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38804 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38805 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38806 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38807 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38808 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38809 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38810 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38811 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38812 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38813 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38814 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38815 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38816 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38817 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38818 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38819 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38820 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38821 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38822 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38823 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38824 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38825 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38826 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
38827 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38828 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38829 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38830 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38831 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38832 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38833 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38834 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38835 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38836 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38837 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38838 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38839 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38840 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38841 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38842 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38843 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38844 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
38845 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38846 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
38847 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38848 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38849 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38850 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38851 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38852 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38853 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38854 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
38855 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
38856 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38857 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38858 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38859 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38860 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38861 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38862 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38863 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38864 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38865 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38866 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38867 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
38868 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38869 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38870 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38871 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38872 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38873 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38874 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38875 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38876 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38877 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38878 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, | |
38879 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38880 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38881 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38882 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38883 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
38884 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38885 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38886 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38887 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38888 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38889 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
38890 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38891 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38892 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38893 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38894 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38895 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38896 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38897 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38898 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38899 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
38900 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38901 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38902 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38903 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38904 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38905 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38906 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38907 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38908 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38909 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
38910 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38911 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38912 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38913 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
38914 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38915 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38916 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38917 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38918 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38919 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38920 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38921 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38922 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38923 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38924 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38925 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38926 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38927 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38928 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38929 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38930 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38931 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38932 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38933 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38934 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38935 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38936 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38937 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38938 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38939 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38940 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38941 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38942 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38943 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38944 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38945 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38946 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38947 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38948 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38949 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38950 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38951 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38952 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38953 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38954 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38955 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38956 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38957 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38958 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38959 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38960 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38961 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38962 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38963 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38964 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38965 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38966 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38967 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38968 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38969 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38970 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38971 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38972 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38973 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38974 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38975 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38976 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38977 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38978 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38979 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38980 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38981 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38982 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38983 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
38984 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38985 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38986 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
38987 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38988 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
38989 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38990 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
38991 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38992 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
38993 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38994 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
38995 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38996 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
38997 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
38998 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
38999 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39000 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
39001 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39002 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
39003 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39004 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
39005 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39006 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
39007 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39008 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39009 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39010 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39011 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39012 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39013 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39014 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39015 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39016 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39017 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39018 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39019 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39020 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
39021 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39022 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39023 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39024 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39025 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39026 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39027 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39028 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39029 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39030 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39031 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39032 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39033 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39034 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39035 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39036 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39037 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39038 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
39039 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39040 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39041 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
39042 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39043 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39044 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
39045 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39046 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39047 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39048 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39049 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39050 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39051 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39052 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39053 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39054 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39055 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39056 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
39057 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39058 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39059 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39060 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39061 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
39062 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39063 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39064 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39065 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39066 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39067 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
39068 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39069 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39070 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39071 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39072 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39073 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
39074 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39075 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39076 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39077 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39078 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39079 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39080 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39081 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39082 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39083 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39084 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39085 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39086 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39087 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39088 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39089 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39090 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39091 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39092 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39093 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39094 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39095 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39096 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39097 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39098 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39099 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39100 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39101 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39102 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39103 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39104 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39105 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39106 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39107 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39108 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39109 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39110 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39111 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39112 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39113 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39114 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39115 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39116 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39117 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39118 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39119 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39120 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39121 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39122 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39123 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39124 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39125 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39126 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39127 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39128 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39129 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39130 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39131 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39132 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39133 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39134 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39135 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
39136 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39137 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39138 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39139 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39140 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39141 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39142 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
39143 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39144 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39145 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39146 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39147 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39148 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39149 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39150 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39151 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39152 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39153 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39154 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39155 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39156 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39157 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39158 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39159 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39160 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39161 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39162 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39163 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39164 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39165 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39166 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39167 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39168 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39169 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39170 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39171 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39172 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39173 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39174 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39175 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39176 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39177 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
39178 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39179 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39180 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39181 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39182 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39183 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39184 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39185 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39186 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39187 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
39188 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39189 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39190 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39191 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39192 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39193 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39194 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39195 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39196 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39197 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
39198 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39199 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
39200 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39201 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
39202 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39203 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39204 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
39205 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39206 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39207 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39208 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
39209 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39210 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39211 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
39212 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39213 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39214 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
39215 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39216 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
39217 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39218 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39219 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39220 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39221 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
39222 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39223 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39224 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39225 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39226 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39227 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39228 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39229 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
39230 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39231 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39232 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39233 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
39234 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39235 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39236 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
39237 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39238 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
39239 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39240 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39241 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39242 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
39243 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39244 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39245 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39246 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39247 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39248 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39249 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39250 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39251 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39252 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39253 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39254 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39255 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39256 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39257 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39258 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39259 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
39260 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39261 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
39262 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39263 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39264 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
39265 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39266 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
39267 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39268 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39269 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39270 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
39271 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39272 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39273 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39274 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
39275 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39276 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39277 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39278 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39279 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39280 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39281 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39282 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
39283 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39284 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39285 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
39286 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39287 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39288 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
39289 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39290 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39291 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39292 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
39293 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39294 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39295 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39296 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39297 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39298 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39299 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
39300 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39301 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39302 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39303 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39304 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
39305 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39306 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39307 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39308 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39309 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
39310 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39311 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39312 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39313 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39314 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39315 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39316 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39317 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39318 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39319 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39320 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39321 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39322 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39323 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39324 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39325 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39326 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39327 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39328 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39329 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39330 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39331 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39332 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39333 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39334 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39335 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39336 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39337 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39338 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39339 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39340 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39341 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39342 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39343 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39344 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39345 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39346 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39347 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39348 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39349 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39350 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39351 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39352 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39353 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
39354 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39355 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39356 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39357 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39358 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39359 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39360 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39361 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39362 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39363 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39364 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39365 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39366 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39367 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39368 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39369 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39370 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
39371 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39372 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39373 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39374 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
39375 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39376 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39377 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39378 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39379 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39380 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39381 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39382 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39383 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39384 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39385 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39386 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39387 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39388 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39389 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39390 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39391 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39392 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39393 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39394 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39395 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39396 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39397 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39398 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39399 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39400 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39401 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39402 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39403 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39404 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39405 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39406 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39407 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39408 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39409 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39410 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39411 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39412 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39413 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39414 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39415 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39416 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39417 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39418 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39419 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39420 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39421 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39422 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39423 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39424 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39425 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39426 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39427 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39428 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39429 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39430 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39431 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39432 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39433 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39434 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39435 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39436 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39437 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39438 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39439 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39440 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39441 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39442 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39443 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39444 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39445 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39446 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39447 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39448 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39449 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39450 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39451 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39452 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39453 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39454 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39455 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39456 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39457 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39458 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39459 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39460 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39461 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39462 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39463 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39464 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39465 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39466 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39467 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39468 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39469 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39470 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39471 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39472 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39473 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39474 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39475 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39476 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39477 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39478 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39479 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39480 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39481 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39482 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39483 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39484 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39485 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39486 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39487 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39488 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39489 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39490 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39491 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39492 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39493 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39494 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39495 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39496 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39497 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39498 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39499 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39500 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39501 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39502 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39503 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39504 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39505 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39506 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39507 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39508 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39509 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39510 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39511 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39512 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39513 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39514 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39515 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39516 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39517 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39518 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39519 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39520 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
39521 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39522 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39523 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39524 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39525 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39526 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39527 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39528 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39529 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39530 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39531 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39532 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39533 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39534 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39535 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39536 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39537 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39538 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39539 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39540 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39541 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39542 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39543 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39544 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39545 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39546 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39547 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39548 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39549 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39550 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39551 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39552 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39553 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39554 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39555 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39556 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
39557 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39558 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39559 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39560 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39561 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39562 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39563 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39564 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39565 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39566 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39567 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39568 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39569 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39570 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
39571 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39572 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39573 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
39574 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39575 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39576 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39577 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39578 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39579 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39580 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39581 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39582 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39583 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39584 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39585 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39586 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39587 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39588 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39589 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39590 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39591 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39592 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39593 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39594 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39595 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39596 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39597 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39598 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39599 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39600 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39601 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39602 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39603 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39604 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39605 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39606 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39607 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39608 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39609 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39610 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39611 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39612 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39613 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39614 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39615 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39616 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39617 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39618 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39619 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39620 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39621 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39622 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39623 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39624 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39625 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39626 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39627 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39628 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
39629 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39630 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39631 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39632 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39633 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39634 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39635 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39636 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39637 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39638 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39639 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39640 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39641 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39642 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39643 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39644 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39645 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39646 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39647 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39648 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39649 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39650 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39651 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39652 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39653 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39654 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39655 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
39656 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39657 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39658 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39659 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39660 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39661 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39662 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39663 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39664 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39665 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39666 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39667 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39668 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39669 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39670 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39671 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39672 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39673 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39674 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39675 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39676 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39677 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39678 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39679 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39680 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39681 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39682 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39683 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39684 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
39685 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39686 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39687 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39688 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39689 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39690 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39691 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
39692 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39693 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39694 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39695 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39696 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39697 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39698 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39699 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39700 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39701 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39702 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39703 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39704 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39705 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39706 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39707 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39708 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
39709 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
39710 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39711 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39712 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39713 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39714 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39715 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39716 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39717 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39718 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39719 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39720 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39721 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39722 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39723 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39724 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39725 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39726 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39727 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39728 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39729 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39730 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39731 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39732 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39733 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39734 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39735 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39736 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39737 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39738 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39739 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39740 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39741 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39742 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39743 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39744 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
39745 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39746 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39747 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39748 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39749 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39750 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39751 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39752 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39753 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39754 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39755 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39756 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39757 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39758 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39759 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39760 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39761 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39762 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39763 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39764 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39765 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39766 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39767 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39768 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39769 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39770 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39771 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39772 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39773 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
39774 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39775 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39776 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
39777 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39778 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39779 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39780 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39781 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39782 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
39783 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39784 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39785 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39786 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39787 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
39788 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39789 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39790 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39791 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39792 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39793 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39794 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39795 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39796 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39797 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39798 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39799 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
39800 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39801 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39802 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39803 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39804 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39805 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39806 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39807 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39808 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39809 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39810 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39811 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39812 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39813 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
39814 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39815 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39816 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39817 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39818 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39819 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39820 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39821 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39822 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39823 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
39824 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39825 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39826 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39827 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39828 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39829 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39830 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39831 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39832 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39833 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
39834 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39835 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39836 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39837 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39838 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39839 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39840 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39841 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39842 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS, NULL }, | |
39843 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39844 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39845 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39846 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
39847 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39848 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39849 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39850 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39851 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39852 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
39853 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
39854 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
39855 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
39856 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
39857 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39858 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39859 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39860 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39861 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39862 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS, NULL }, | |
39863 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
39864 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39865 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39866 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39867 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39868 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39869 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39870 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39871 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39872 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39873 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39874 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39875 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39876 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39877 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39878 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39879 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39880 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39881 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39882 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39883 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39884 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39885 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39886 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39887 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39888 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39889 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39890 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
39891 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39892 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39893 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39894 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39895 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39896 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39897 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39898 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39899 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39900 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39901 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
39902 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
39903 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
39904 | }; |
39905 | ||
39906 | ||
39907 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39908 | ||
39909 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
39910 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
39911 | } | |
39912 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
39913 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
39914 | } | |
39915 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
39916 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39917 | } | |
39918 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
39919 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39920 | } | |
39921 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
39922 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
39923 | } | |
39924 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
39925 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39926 | } | |
39927 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
39928 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
39929 | } | |
39930 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
39931 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39932 | } | |
39933 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
39934 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39935 | } | |
39936 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
39937 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
39938 | } | |
39939 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
39940 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
39941 | } | |
39942 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
39943 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
39944 | } | |
39945 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
39946 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
39947 | } | |
39948 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
39949 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
39950 | } | |
39951 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
39952 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
39953 | } | |
39954 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
39955 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
39956 | } | |
39957 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
39958 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
39959 | } | |
39960 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
39961 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39962 | } | |
39963 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
39964 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
39965 | } | |
39966 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
39967 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39968 | } | |
39969 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
39970 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39971 | } | |
39972 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
39973 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
39974 | } | |
39975 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
39976 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
39977 | } | |
39978 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
39979 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
39980 | } | |
39981 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
39982 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
39983 | } | |
39984 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
39985 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
39986 | } | |
39987 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
39988 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
39989 | } | |
39990 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
39991 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
39992 | } | |
39993 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
39994 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39995 | } | |
39996 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
39997 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39998 | } | |
39999 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
40000 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40001 | } | |
40002 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
40003 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40004 | } | |
40005 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
40006 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40007 | } | |
40008 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
40009 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
40010 | } | |
40011 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
40012 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
40013 | } | |
40014 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
40015 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40016 | } | |
40017 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
40018 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
40019 | } | |
40020 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
40021 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
40022 | } | |
40023 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
40024 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40025 | } | |
40026 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
40027 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40028 | } | |
40029 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
40030 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40031 | } | |
40032 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
40033 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
40034 | } | |
40035 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
40036 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
40037 | } | |
40038 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
40039 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40040 | } | |
40041 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
40042 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40043 | } | |
40044 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
40045 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40046 | } | |
40047 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
40048 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
40049 | } | |
40050 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
40051 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
40052 | } | |
40053 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
40054 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
40055 | } | |
40056 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
40057 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
40058 | } | |
40059 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
40060 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40061 | } | |
40062 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
40063 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
40064 | } | |
40065 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
40066 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
40067 | } | |
40068 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
40069 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
40070 | } | |
40071 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
40072 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
40073 | } | |
40074 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
40075 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
40076 | } | |
40077 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
40078 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
40079 | } | |
40080 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
40081 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
40082 | } | |
40083 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
40084 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
40085 | } | |
40086 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
40087 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
40088 | } | |
40089 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
40090 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
40091 | } | |
40092 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
40093 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40094 | } | |
40095 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
40096 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
40097 | } | |
40098 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
40099 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
40100 | } | |
40101 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
40102 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40103 | } | |
40104 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
40105 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40106 | } | |
40107 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
40108 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
40109 | } | |
40110 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
40111 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
40112 | } | |
40113 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
40114 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
40115 | } | |
40116 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
40117 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
40118 | } | |
40119 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
40120 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
40121 | } | |
40122 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
40123 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
40124 | } | |
40125 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
40126 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
40127 | } | |
40128 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
40129 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
40130 | } | |
40131 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40132 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
40133 | } | |
40134 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40135 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
40136 | } | |
40137 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40138 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
40139 | } | |
40140 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40141 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40142 | } | |
40143 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40144 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40145 | } | |
40146 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
40147 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40148 | } | |
40149 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40150 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40151 | } | |
40152 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40153 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40154 | } | |
40155 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40156 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40157 | } | |
40158 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40159 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40160 | } | |
40161 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
40162 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40163 | } | |
40164 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40165 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40166 | } | |
40167 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
40168 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40169 | } | |
40170 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40171 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40172 | } | |
40173 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40174 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40175 | } | |
40176 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40177 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40178 | } | |
40179 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40180 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40181 | } | |
40182 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40183 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40184 | } | |
40185 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
40186 | return (void *)((wxObject *) ((wxImage *) x)); | |
40187 | } | |
40188 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
40189 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40190 | } | |
40191 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40192 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40193 | } | |
40194 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40195 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40196 | } | |
40197 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40198 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40199 | } | |
40200 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40201 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40202 | } | |
41f1cec7 RD |
40203 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40204 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40205 | } | |
d14a1e28 RD |
40206 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
40207 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40208 | } | |
40209 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40210 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40211 | } | |
40212 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40213 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40214 | } | |
40215 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
40216 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40217 | } | |
40218 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40219 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40220 | } | |
40221 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40222 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40223 | } | |
40224 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40225 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40226 | } | |
40227 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40228 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40229 | } | |
40230 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40231 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40232 | } | |
40233 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40234 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40235 | } | |
40236 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40237 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40238 | } | |
40239 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40240 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40241 | } | |
40242 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40243 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40244 | } | |
40245 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
40246 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40247 | } | |
40248 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40249 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40250 | } | |
40251 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40252 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40253 | } | |
40254 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40255 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40256 | } | |
40257 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40258 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40259 | } | |
40260 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40261 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40262 | } | |
40263 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40264 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40265 | } | |
40266 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40267 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40268 | } | |
40269 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40270 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40271 | } | |
40272 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40273 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40274 | } | |
40275 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40276 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40277 | } | |
40278 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40279 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40280 | } | |
40281 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40282 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40283 | } | |
40284 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40285 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40286 | } | |
40287 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
40288 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40289 | } | |
40290 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40291 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40292 | } | |
40293 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40294 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40295 | } | |
40296 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40297 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40298 | } | |
40299 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40300 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40301 | } | |
40302 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40303 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40304 | } | |
40305 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40306 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40307 | } | |
40308 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
40309 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40310 | } | |
40311 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40312 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40313 | } | |
40314 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40315 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40316 | } | |
40317 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40318 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40319 | } | |
40320 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
40321 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40322 | } | |
40323 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
40324 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40325 | } | |
40326 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
40327 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40328 | } | |
40329 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40330 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40331 | } | |
40332 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40333 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40334 | } | |
40335 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40336 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40337 | } | |
40338 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40339 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40340 | } | |
40341 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40342 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40343 | } | |
40344 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
40345 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40346 | } | |
40347 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40348 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40349 | } | |
40350 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40351 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40352 | } | |
40353 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40354 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40355 | } | |
40356 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40357 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40358 | } | |
40359 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40360 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40361 | } | |
40362 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40363 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40364 | } | |
40365 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40366 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40367 | } | |
40368 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
40369 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40370 | } | |
40371 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
40372 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
40373 | } | |
40374 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
40375 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40376 | } | |
40377 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
40378 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40379 | } | |
40380 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
40381 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40382 | } | |
40383 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
40384 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40385 | } | |
40386 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
40387 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40388 | } | |
40389 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
40390 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40391 | } | |
40392 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
40393 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
40394 | } | |
2f4c0a16 RD |
40395 | 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}}; |
40396 | 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}}; | |
40397 | 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}}; | |
40398 | 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}}; | |
40399 | 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}}; | |
40400 | 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}}; | |
40401 | 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}}; | |
40402 | 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}}; | |
40403 | 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}}; | |
40404 | 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}}; | |
40405 | 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}}; | |
40406 | 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}}; | |
40407 | 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}}; | |
40408 | 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}}; | |
40409 | 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}}; | |
40410 | 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}}; | |
40411 | 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}}; | |
40412 | 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}}; | |
40413 | 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}}; | |
40414 | 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}}; | |
40415 | 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}}; | |
40416 | 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}}; | |
40417 | 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}}; | |
40418 | 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}}; | |
40419 | 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}}; | |
40420 | 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}}; | |
40421 | 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}}; | |
40422 | 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}}; | |
40423 | 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}}; | |
40424 | 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}}; | |
40425 | 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}}; | |
40426 | 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}}; | |
40427 | 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}}; | |
40428 | 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}}; | |
40429 | 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}}; | |
40430 | 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}}; | |
40431 | 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}}; | |
40432 | 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}}; | |
40433 | 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}}; | |
40434 | 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}}; | |
40435 | 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}}; | |
40436 | 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}}; | |
40437 | 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}}; | |
40438 | 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}}; | |
40439 | 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}}; | |
40440 | 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}}; | |
40441 | 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}}; | |
40442 | 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}}; | |
40443 | 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}}; | |
40444 | 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}}; | |
40445 | 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}}; | |
40446 | 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}}; | |
40447 | 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}}; | |
40448 | 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}}; | |
40449 | 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}}; | |
40450 | 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}}; | |
40451 | 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}}; | |
40452 | 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}}; | |
40453 | 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}}; | |
40454 | 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}}; | |
40455 | 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}}; | |
40456 | 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}}; | |
40457 | 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}}; | |
40458 | 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}}; | |
40459 | 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}}; | |
40460 | 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}}; | |
40461 | 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}}; | |
40462 | 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}}; | |
40463 | 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}}; | |
40464 | 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}}; | |
40465 | 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}}; | |
40466 | 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}}; | |
40467 | 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}}; | |
40468 | 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}}; | |
40469 | 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}}; | |
40470 | 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}}; | |
40471 | 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}}; | |
40472 | 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}}; | |
40473 | 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}}; | |
40474 | 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}}; | |
40475 | 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}}; | |
40476 | 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}}; | |
40477 | 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}}; | |
40478 | 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}}; | |
40479 | 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}}; | |
40480 | 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}}; | |
40481 | 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}}; | |
40482 | 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}}; | |
40483 | 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}}; | |
40484 | 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}}; | |
40485 | 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}}; | |
40486 | 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}}; | |
40487 | 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}}; | |
40488 | 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}}; | |
40489 | 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}}; | |
40490 | 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}}; | |
40491 | 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}}; | |
40492 | 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}}; | |
40493 | 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}}; | |
40494 | 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}}; | |
40495 | 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}}; | |
40496 | 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}}; | |
40497 | 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}}; | |
40498 | 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}}; | |
40499 | 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}}; | |
40500 | 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}}; | |
40501 | 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}}; | |
40502 | 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}}; | |
40503 | 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}}; | |
40504 | 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}}; | |
40505 | 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}}; | |
40506 | 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}}; | |
40507 | 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}}; | |
40508 | 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 |
40509 | |
40510 | static swig_type_info *swig_types_initial[] = { | |
40511 | _swigt__p_wxLayoutConstraints, | |
40512 | _swigt__p_wxRealPoint, | |
40513 | _swigt__p_wxSizerItem, | |
40514 | _swigt__p_wxGBSizerItem, | |
40515 | _swigt__p_wxScrollEvent, | |
40516 | _swigt__p_wxIndividualLayoutConstraint, | |
40517 | _swigt__p_wxSizer, | |
40518 | _swigt__p_wxBoxSizer, | |
40519 | _swigt__p_wxStaticBoxSizer, | |
40520 | _swigt__p_wxGridBagSizer, | |
40521 | _swigt__p_wxAcceleratorEntry, | |
40522 | _swigt__p_wxUpdateUIEvent, | |
40523 | _swigt__p_wxMenu, | |
40524 | _swigt__p_wxEvent, | |
40525 | _swigt__p_wxGridSizer, | |
40526 | _swigt__p_wxFlexGridSizer, | |
40527 | _swigt__p_wxInitDialogEvent, | |
40528 | _swigt__p_wxItemContainer, | |
40529 | _swigt__p_wxNcPaintEvent, | |
40530 | _swigt__p_wxPaintEvent, | |
40531 | _swigt__p_wxSysColourChangedEvent, | |
40532 | _swigt__p_wxMouseCaptureChangedEvent, | |
40533 | _swigt__p_wxDisplayChangedEvent, | |
40534 | _swigt__p_wxPaletteChangedEvent, | |
40535 | _swigt__p_wxControl, | |
40536 | _swigt__p_wxFont, | |
40537 | _swigt__p_wxMenuBarBase, | |
40538 | _swigt__p_wxSetCursorEvent, | |
40539 | _swigt__p_wxFSFile, | |
40540 | _swigt__p_wxCaret, | |
40541 | _swigt__p_wxRegion, | |
40542 | _swigt__p_wxPoint2D, | |
40543 | _swigt__p_int, | |
40544 | _swigt__p_wxSize, | |
40545 | _swigt__p_wxDC, | |
40546 | _swigt__p_wxPySizer, | |
40547 | _swigt__p_wxNotifyEvent, | |
40548 | _swigt__p_wxPyEvent, | |
40549 | _swigt__p_wxPropagationDisabler, | |
40550 | _swigt__p_wxAppTraits, | |
40551 | _swigt__p_wxArrayString, | |
40552 | _swigt__p_wxShowEvent, | |
40553 | _swigt__p_wxToolTip, | |
02a34c4c | 40554 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
40555 | _swigt__p_wxIconizeEvent, |
40556 | _swigt__p_wxActivateEvent, | |
40557 | _swigt__p_wxMoveEvent, | |
40558 | _swigt__p_wxSizeEvent, | |
40559 | _swigt__p_wxQueryNewPaletteEvent, | |
40560 | _swigt__p_wxWindowCreateEvent, | |
40561 | _swigt__p_wxIdleEvent, | |
40562 | _swigt__p_wxMenuItem, | |
40563 | _swigt__p_wxStaticBox, | |
40564 | _swigt__p_long, | |
40565 | _swigt__p_wxTIFFHandler, | |
40566 | _swigt__p_wxXPMHandler, | |
40567 | _swigt__p_wxPNMHandler, | |
40568 | _swigt__p_wxJPEGHandler, | |
40569 | _swigt__p_wxPCXHandler, | |
40570 | _swigt__p_wxGIFHandler, | |
40571 | _swigt__p_wxPNGHandler, | |
40572 | _swigt__p_wxANIHandler, | |
40573 | _swigt__p_wxMemoryFSHandler, | |
40574 | _swigt__p_wxEvtHandler, | |
40575 | _swigt__p_wxCURHandler, | |
40576 | _swigt__p_wxICOHandler, | |
40577 | _swigt__p_wxBMPHandler, | |
40578 | _swigt__p_wxImageHandler, | |
40579 | _swigt__p_wxFileSystemHandler, | |
40580 | _swigt__p_wxPyFileSystemHandler, | |
40581 | _swigt__p_wxInternetFSHandler, | |
02a34c4c | 40582 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
40583 | _swigt__p_wxRect, |
40584 | _swigt__p_wxGBSpan, | |
40585 | _swigt__p_wxPropagateOnce, | |
40586 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 40587 | _swigt__p_char, |
d14a1e28 RD |
40588 | _swigt__p_wxGBPosition, |
40589 | _swigt__p_wxImage, | |
40590 | _swigt__p_wxFrame, | |
40591 | _swigt__p_wxScrollWinEvent, | |
40592 | _swigt__p_wxImageHistogram, | |
40593 | _swigt__p_byte, | |
40594 | _swigt__p_wxPoint, | |
40595 | _swigt__p_wxCursor, | |
40596 | _swigt__p_wxObject, | |
40597 | _swigt__p_wxPyInputStream, | |
40598 | _swigt__p_wxOutputStream, | |
40599 | _swigt__p_wxInputStream, | |
40600 | _swigt__p_wxDateTime, | |
40601 | _swigt__p_wxKeyEvent, | |
40602 | _swigt__p_wxNavigationKeyEvent, | |
40603 | _swigt__p_wxWindowDestroyEvent, | |
40604 | _swigt__p_wxWindow, | |
40605 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
40606 | _swigt__p_wxFileSystem, |
40607 | _swigt__p_wxBitmap, | |
40608 | _swigt__p_wxMenuEvent, | |
40609 | _swigt__p_wxContextMenuEvent, | |
40610 | _swigt__p_unsigned_char, | |
40611 | _swigt__p_wxCloseEvent, | |
40612 | _swigt__p_wxEraseEvent, | |
40613 | _swigt__p_wxMouseEvent, | |
40614 | _swigt__p_wxPyApp, | |
40615 | _swigt__p_wxCommandEvent, | |
40616 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 40617 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
40618 | _swigt__p_wxChildFocusEvent, |
40619 | _swigt__p_wxFocusEvent, | |
40620 | _swigt__p_wxDropFilesEvent, | |
40621 | _swigt__p_wxControlWithItems, | |
40622 | _swigt__p_wxColour, | |
40623 | _swigt__p_wxValidator, | |
40624 | _swigt__p_wxPyValidator, | |
40625 | 0 | |
40626 | }; | |
40627 | ||
40628 | ||
40629 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40630 | ||
40631 | static swig_const_info swig_const_table[] = { | |
2f4c0a16 | 40632 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
40633 | |
40634 | #ifdef __cplusplus | |
40635 | } | |
40636 | #endif | |
40637 | ||
40638 | #ifdef __cplusplus | |
40639 | extern "C" | |
40640 | #endif | |
40641 | SWIGEXPORT(void) SWIG_init(void) { | |
40642 | static PyObject *SWIG_globals = 0; | |
40643 | static int typeinit = 0; | |
40644 | PyObject *m, *d; | |
40645 | int i; | |
40646 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
40647 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40648 | d = PyModule_GetDict(m); | |
40649 | ||
40650 | if (!typeinit) { | |
40651 | for (i = 0; swig_types_initial[i]; i++) { | |
40652 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
40653 | } | |
40654 | typeinit = 1; | |
40655 | } | |
40656 | SWIG_InstallConstants(d,swig_const_table); | |
40657 | ||
40658 | ||
40659 | #ifndef wxPyUSE_EXPORT | |
40660 | // Make our API structure a CObject so other modules can import it | |
40661 | // from this module. | |
40662 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
40663 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
40664 | Py_XDECREF(cobj); | |
40665 | #endif | |
40666 | ||
2f4c0a16 RD |
40667 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
40668 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
40669 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
40670 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
40671 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
40672 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
40673 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
40674 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
40675 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
40676 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
40677 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
40678 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
40679 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
40680 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
40681 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
40682 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
40683 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
40684 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
40685 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
40686 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
40687 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
40688 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
40689 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
40690 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
40691 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
40692 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
40693 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
40694 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
40695 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
40696 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
40697 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
40698 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
40699 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
40700 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
40701 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
40702 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
40703 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
40704 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
40705 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
40706 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
40707 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
40708 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
40709 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
40710 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
40711 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
40712 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
40713 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
40714 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
40715 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
40716 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
40717 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
40718 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
40719 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
40720 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
40721 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
40722 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
40723 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
40724 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
40725 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
40726 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
40727 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
40728 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
40729 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
40730 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
40731 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
40732 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
40733 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
40734 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
40735 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
40736 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
40737 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
40738 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
40739 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
40740 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
40741 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
40742 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
40743 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
40744 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
40745 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
40746 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
40747 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
40748 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
40749 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
40750 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
40751 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
40752 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
40753 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
40754 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
40755 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
40756 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
40757 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
40758 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
40759 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
40760 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
40761 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
40762 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
40763 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
40764 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
40765 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
40766 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
40767 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
40768 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
40769 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
40770 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
40771 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
40772 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
40773 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
40774 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
40775 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
40776 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
40777 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
40778 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
40779 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
40780 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
40781 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
40782 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
40783 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
40784 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
40785 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
40786 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
40787 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
40788 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
40789 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
40790 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
40791 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
40792 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
40793 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
40794 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
40795 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
40796 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
40797 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
40798 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
40799 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
40800 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
40801 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
40802 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
40803 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
40804 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
40805 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
40806 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
40807 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
40808 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
40809 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
40810 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
40811 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
40812 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
40813 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
40814 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
40815 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
40816 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
40817 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
40818 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
40819 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
40820 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
40821 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
40822 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
40823 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
40824 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
40825 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
40826 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
40827 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
40828 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
40829 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
40830 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
40831 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
40832 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
40833 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
40834 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
40835 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
40836 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
40837 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
40838 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
40839 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
40840 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
40841 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
40842 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
40843 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
40844 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
40845 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
40846 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
40847 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
40848 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
40849 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
40850 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
40851 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
40852 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
40853 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
40854 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
40855 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
40856 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
40857 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
40858 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
40859 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
40860 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
40861 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
40862 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
40863 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
40864 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
40865 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
40866 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
40867 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
40868 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
40869 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
40870 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
40871 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
40872 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
40873 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
40874 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
40875 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
40876 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
40877 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
40878 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
40879 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
40880 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
40881 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
40882 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
40883 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
40884 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
40885 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
40886 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
40887 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
40888 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
40889 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
40890 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
40891 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
40892 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
40893 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
40894 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
40895 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
40896 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
40897 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
40898 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
40899 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
40900 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
40901 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
40902 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
40903 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
40904 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
40905 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
40906 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
40907 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
40908 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
40909 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
40910 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
40911 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
40912 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
40913 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
40914 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
40915 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
40916 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
40917 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
40918 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
40919 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
40920 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
40921 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
40922 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
40923 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
40924 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
40925 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
40926 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
40927 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
40928 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
40929 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
40930 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
40931 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
40932 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
40933 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
40934 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
40935 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
40936 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
40937 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
40938 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
40939 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
40940 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
40941 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
40942 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
40943 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
40944 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
40945 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
40946 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
40947 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
40948 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
40949 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
40950 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
40951 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
40952 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
40953 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
40954 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
40955 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
40956 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
40957 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
40958 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
40959 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
40960 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
40961 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
40962 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
40963 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
40964 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
40965 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
40966 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
40967 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
40968 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
40969 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
40970 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
40971 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
40972 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
40973 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
40974 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
40975 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
40976 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
40977 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
40978 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
40979 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
40980 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
40981 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
40982 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
40983 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
40984 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
40985 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
40986 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
40987 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
40988 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
40989 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
40990 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
40991 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
40992 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
40993 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
40994 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
40995 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
40996 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
40997 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
40998 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
40999 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
41000 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
41001 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
41002 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
41003 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
41004 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
41005 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
41006 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
41007 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
41008 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
41009 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
41010 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
41011 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
41012 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
41013 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
41014 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
41015 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
41016 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
41017 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
41018 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
41019 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
41020 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
41021 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
41022 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
41023 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
41024 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
41025 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
41026 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
41027 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
41028 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
41029 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
41030 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
41031 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
41032 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
41033 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
41034 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
41035 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
41036 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
41037 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
41038 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
41039 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
41040 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
41041 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
41042 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
41043 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
41044 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
41045 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
41046 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
41047 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
41048 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
41049 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
41050 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
41051 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
41052 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
41053 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
41054 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
41055 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
41056 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
41057 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
41058 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
41059 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
41060 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
41061 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
41062 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
41063 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
41064 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
41065 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
41066 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
41067 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
41068 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
41069 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
41070 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
41071 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
41072 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
41073 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
41074 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
41075 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
41076 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
41077 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
41078 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
41079 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
41080 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
41081 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
41082 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
41083 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
41084 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
41085 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
41086 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
41087 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
41088 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
41089 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
41090 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
41091 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
41092 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
41093 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
41094 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
41095 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
41096 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
41097 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
41098 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
41099 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
41100 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
41101 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
41102 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
41103 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
41104 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
41105 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
41106 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
41107 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
41108 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
41109 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
41110 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
41111 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
41112 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
41113 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
41114 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
41115 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
41116 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
41117 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
41118 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
41119 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
41120 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
41121 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
41122 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
41123 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
41124 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
41125 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
41126 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
41127 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
41128 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
41129 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
41130 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
41131 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
41132 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
41133 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
41134 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
41135 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
41136 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
41137 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
41138 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
41139 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
41140 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
41141 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
41142 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
41143 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
41144 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
41145 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
41146 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
41147 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
41148 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
41149 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
41150 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
41151 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
41152 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
41153 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
41154 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
41155 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
41156 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
41157 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
41158 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
41159 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
41160 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
41161 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
41162 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
41163 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
41164 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
41165 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
41166 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
41167 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
41168 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
41169 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
41170 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
41171 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
41172 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
41173 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
41174 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
41175 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
41176 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
41177 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
41178 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
41179 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
41180 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
41181 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
41182 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
41183 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
41184 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
41185 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
41186 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
41187 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
41188 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
41189 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
41190 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
41191 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
41192 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
41193 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
41194 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
41195 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
41196 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
41197 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
41198 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
41199 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
41200 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
41201 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
41202 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
41203 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
41204 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 41205 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
cbd72d4f | 41206 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
2f4c0a16 RD |
41207 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
41208 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
41209 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
41210 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
41211 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
41212 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
41213 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
41214 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
41215 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
41216 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
41217 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
41218 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
41219 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
41220 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
41221 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
41222 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
41223 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
41224 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
41225 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
41226 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
41227 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
41228 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
41229 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
41230 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
41231 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
41232 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
41233 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
41234 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
41235 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
41236 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
41237 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
41238 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
41239 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
41240 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
41241 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
41242 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
41243 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
41244 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
41245 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
41246 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
41247 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
41248 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
41249 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
41250 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
41251 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
41252 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
41253 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
41254 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
41255 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
41256 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
41257 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
41258 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
41259 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
2f4c0a16 RD |
41260 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
41261 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
41262 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
41263 | |
41264 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
41265 | ||
41266 | ||
41267 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
41268 | ||
41269 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
41270 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
41271 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
41272 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
41273 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
41274 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
2f4c0a16 RD |
41275 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
41276 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
41277 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
41278 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
41279 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
41280 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
41281 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
41282 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
41283 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
41284 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
41285 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
41286 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
41287 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
41288 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
41289 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
41290 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
41291 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
41292 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
41293 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
41294 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
41295 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
41296 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
41297 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
41298 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
41299 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
41300 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
41301 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
41302 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
41303 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
41304 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
41305 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
41306 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
41307 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
41308 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
41309 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
41310 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
41311 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
41312 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
41313 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
41314 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
41315 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
41316 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
41317 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
41318 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
41319 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
41320 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
41321 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
41322 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
41323 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
41324 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
41325 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
41326 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
41327 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
41328 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
41329 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
41330 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
41331 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
41332 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
41333 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
41334 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
41335 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
41336 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
41337 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
41338 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
41339 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
41340 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
41341 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
41342 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
41343 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
41344 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
41345 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
41346 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
41347 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
41348 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
41349 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
41350 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
41351 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
41352 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
41353 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
41354 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
41355 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
41356 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
41357 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
41358 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
41359 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
41360 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
41361 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
41362 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
41363 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
41364 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
41365 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
41366 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
41367 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
41368 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
41369 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
41370 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
41371 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
41372 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
41373 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
41374 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
41375 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
41376 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
41377 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
41378 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
41379 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
41380 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
41381 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
41382 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
41383 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
41384 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
41385 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
41386 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
41387 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
41388 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
41389 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
41390 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
41391 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
41392 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
41393 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
41394 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
41395 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
41396 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
41397 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
41398 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
41399 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
41400 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
41401 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
2f4c0a16 RD |
41402 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
41403 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
41404 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
41405 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
41406 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
41407 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
41408 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
41409 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
41410 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
41411 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
41412 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
41413 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
41414 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
41415 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
41416 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 41417 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 41418 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 41419 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
cbd72d4f | 41420 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
2f4c0a16 RD |
41421 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
41422 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
41423 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 41424 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
2f4c0a16 RD |
41425 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
41426 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
41427 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
41428 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
41429 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
41430 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
41431 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
41432 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
41433 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
41434 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
41435 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
41436 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
41437 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
41438 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
41439 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
41440 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
41441 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
41442 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
41443 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
41444 | |
41445 | // Initialize threading, some globals and such | |
41446 | __wxPyPreStart(d); | |
41447 | ||
41448 | ||
41449 | // Although these are defined in __version__ they need to be here too so | |
41450 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
41451 | // versions match. | |
41452 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
41453 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
41454 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
41455 | ||
41456 | } | |
41457 |